Changelog
info
This page do not need and will not be translated to other laungages.
Update Report of mpegCoder
V3.2.4 @ 4/24/2022
Fix a bug when
tqdm<4.40.0
is installed. Previously, this problem should not trigger iftqdm>4.40.0
is installed, ortqdm
is not installed ( issue #5).Fix the same bug (mentioned by item 1) in the
setup.py
script.Add change logs to PyPI release branch.
V3.2.3 @ 4/22/2022:
- Fix a severe bug that causes the dependencies to be downloaded repeatedly.
V3.2.2 @ 4/22/2022:
- Fix a typo:
mpegCoder.__verion__
mpegCoder.__version__
.
V3.2.1 @ 4/22/2022:
Fix an issue caused by the missing dependency
libcrypto.so.1.1
. This fixture is only required by the Linux version.Format the PyPI release script.
V3.2.0 @ 4/8/2022:
Upgrade to
FFMpeg 5.0
version.Fix the const assignment bug caused by the codec configuration method.
(Only for Linux) Upgrade the dependencies of FFMpeg to the newest versions ( issue #4).
(About PyPI) Change the behavior of the PYPI
.whl
release. Now the dependencies will not be packed into.whl
directly. When usersimport mpegCoder
for the first time, the dependency will be automatically downloaded. Please ensure that you have the authority to modify thesite-packages
folder when you importmpegCoder
for the first time.
V3.1.0 @ 7/23/2021:
Support
str()
type for all string arguments.Support
http
,ftp
,sftp
streams forMpegServer
.Support
nthread
option forMpegDecoder
,MpegEncoder
,MpegClient
andMpegServer
.Fix a bug caused by the constructor
MpegServer()
.Clean up all
gcc
warnings of the source codes.Fix typos in docstrings.
V3.0.0 update report:
Fix a severe memory leaking bugs when using
AVPacket
.Fix a bug caused by using
MpegClient.terminate()
when a video is closed by the server.Support the
MpegServer
. This class is used for serving the online video streams.Refactor the implementation of the loggings.
Add
getParameter()
andsetParameter(configDict)
APIs toMpegEncoder
andMpegServer
.Move
FFMpeg
depedencies and theOutputStream
class to thecmpc
space.Fix dependency issues and cpp standard issues.
Upgrade to
FFMpeg 4.4
Version.Add a quick script for fetching the
FFMpeg
dependencies.
V2.05 update report:
Fix a severe bug that causes the memory leak when using
MpegClient
.This bug also exists inMpegDecoder
, but it seems that the bug would not cause memory leak in that case. (Although we have also fixed it now.)Upgrade to
FFMpeg 4.0
Version.
V2.01 update report:
Fix a bug that occurs when the first received frame may has a PTS larger than zero.
Enable the project produce the newest
FFMpeg 3.4.2
version and usePython 3.6.4
,numpy 1.14
.
V2.0 update report:
Revise the bug of the encoder which may cause the stream duration is shorter than the real duration of the video in some not advanced media players.
Improve the structure of the code and remove some unnecessary codes.
Provide a complete version of client, which could demux the video stream from a server in any network protocol.
V1.8 update report:
Provide options
(widthDst, heightDst)
to letMpegDecoder
could control the output size manually. To ensure the option is valid, we must use the methodsetParameter
beforeFFmpegSetup
. Now you could use this options to get a rescaled output directly:d = mpegCoder.MpegDecoder() # initialize
d.setParameter(widthDst=400, heightDst=300) # noted that these options must be set before 'FFmpegSetup'!
d.FFmpegSetup(b'i.avi') # the original video size would not influence the output
print(d) # examine the parameters. You could also get the original video size by 'getParameter'
d.ExtractFrame(0, 100) # get 100 frames with 400x300In another example, the set optional parameters could be inherited by encoder, too:
d.setParameter(widthDst=400, heightDst=300) # set optional parameters
...
e.setParameter(decoder=d) # the width/height would inherit from widthDst/heightDst rather than original width/height of the decoder.Noted that we do not provide
widthDst
/heightDst
ingetParameter
, because these 2 options are all set by users. There is no need to get them from the video metadata.Optimize some realization of Decoder so that its efficiency could be improved.
V1.7-linux update report:
Thanks to God, we succeed in this work!
A new version is avaliable for Linux. To implement this tool, you need to install some libraries firstly:
python3.5
numpy 1.13
If you want, you could install ffmpeg
on Linux: Here are some instructions
Check every pack which ffmpeg needs here: Dependency of FFmpeg
Use these steps to install ffmpeg instead of provided commands on the above site.
$ git clone https://git.ffmpeg.org/ffmpeg.git
$ cd ffmpeg
$ ./configure --prefix=host --enable-gpl --enable-libx264 --enable-libx265 --enable-shared --disable-static --disable-doc
$ make
$ make install
V1.7 update report:
Realize the encoder totally.
Provide a global option
dumpLevel
to control the log shown in the screen.Fix bugs in initialize functions.
V1.5 update report:
- Provide an incomplete version of encoder, which could encode frames as a video stream that could not be played by player.
V1.4 update report:
- Fix a severe bug of the decoder, which causes the memory collapsed if decoding a lot of frames.
V1.2 update report:
- Use numpy array to replace the native pyList, which improves the speed significantly.
V1.0 update report:
- Provide the decoder which could decode videos in arbitrary formats and arbitrary coding.