[FFmpeg-trac] #9760(undetermined:new): bad framed mpeg2 video coding
FFmpeg
trac at avcodec.org
Mon May 2 08:55:24 EEST 2022
#9760: bad framed mpeg2 video coding
-------------------------------------+-------------------------------------
Reporter: nonos92234 | Owner: (none)
Type: defect | Status: new
Priority: critical | Component:
| undetermined
Version: git-master | Resolution:
Keywords: mpeg2video | Blocked By:
m2v |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Description changed by nonos92234:
Old description:
> in one day, afternoon, i found my old DVD Discs of an animation, so i
> wanted to have it in my drive.
> i copied one of .VOB files and tried to compress it with ffmpeg, but
> decoded ffmpeg file has damaged frames
> that it is not just that... i even tried to play it with ffplay.exe and
> result is same...
> the thing is that all of players such as KMPlayer, Windows Media Player,
> mpv, and others can decode it correctly.
> looks like ffmpeg mpeg2 video decoder and encoder library is a crappy one
> for people who wants to using it for mpeg2 video framing (both decoding
> and encoding), it is really better to replace current mpeg2video library
> of ffmpeg with another one that AviDemux program using it, Becuase
> AviDemux can decode mpeg2 video same as input
>
> i attached a link for a small cut of origimal file (exact frame buffer
> that writed on DVD)
> https://www.mediafire.com/file/9cqxiir2a6nqrsq/mpeg2_vedio_sample.mpg/file
> [3.75mb]
> you can decode and encode it and see what happens to video frames
>
> i even tried to covert mpeg2 video from some games and broadcasting
> sources with ffmpeg and result is same! that means included mpeg2video
> codec in ffmpeg has problem
>
> you can encode uploaded video that i attached its link with ffmpeg and
> compare it in visual way with bare eyes, (no need bare eyes thought) and
> see the problem
> [[Image(https://s6.uupload.ir/files/sample_mpeg2video_sz3q.jpg)]]
>
> in this example, red-lighing frames will turning to a mess after
> encoding, even if playing original input file in ffplay.exe that using
> same functions to play files
> but thats not just that! all of files that decode from mpeg2video or
> convert to mpeg2video will ended up to this wierd lines between frame
> packets
New description:
in one day, afternoon, i found my old DVD Discs of an animation, so i
wanted to have it in my drive.
i copied one of .VOB files and tried to compress it with ffmpeg, but
decoded ffmpeg file has damaged frames
that it is not just that... i even tried to play it with ffplay.exe and
result is same...
the thing is that all of players such as KMPlayer, Windows Media Player,
mpv, and others can decode it correctly.
looks like ffmpeg mpeg2 video decoder and encoder library is a crappy one
for people who wants to using it for mpeg2 video framing (both decoding
and encoding), it is really better to replace current mpeg2video library
of ffmpeg with another one that AviDemux program using it, Becuase
AviDemux can decode mpeg2 video same as input
i attached a link for a small cut of origimal file (exact frame buffer
that writed on DVD)
https://www.mediafire.com/file/k16yni1pv5i2l9q/mpeg2_vedio_sample.mpg/file
[2.37mb]
you can decode and encode it and see what happens to video frames
i even tried to covert mpeg2 video from some games and broadcasting
sources with ffmpeg and result is same! that means included mpeg2video
codec in ffmpeg has problem
you can encode uploaded video that i attached its link with ffmpeg and
compare it in visual way with bare eyes, (no need bare eyes thought) and
see the problem
[[Image(https://s6.uupload.ir/files/sample_mpeg2video_sz3q.jpg)]]
in this example, red-lighing frames will turning to a mess after encoding,
even if playing original input file in ffplay.exe that using same
functions to play files
but thats not just that! all of files that decode from mpeg2video or
convert to mpeg2video will ended up to this wierd lines between frame
packets
--
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9760#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list