[FFmpeg-trac] #3229(avcodec:open): ffplay shows bad images
FFmpeg
trac at avcodec.org
Mon Dec 16 10:50:18 CET 2013
#3229: ffplay shows bad images
------------------------------------+-----------------------------------
Reporter: hxuanyu | Owner:
Type: defect | Status: open
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: mjpeg | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Changes (by cehoyos):
* status: new => open
* component: undetermined => avcodec
* version: unspecified => git-master
* keywords: => mjpeg
* reproduced: 0 => 1
Old description:
> used ffplay to play 2 videos (both MJPEG encoded AVI file, generated by
> same program).
>
> While the video having relative low resolution plays correctly, the
> higher resolution one show bad images.
>
> below is the output of bad file
>
> $ ffplay.exe bad.avi
> ffplay version N-58485-ga12b4bd Copyright (c) 2003-2013 the FFmpeg
> developers
> built on Nov 26 2013 22:01:46 with gcc 4.8.2 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
> --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
> --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc
> --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
> --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-
> libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab
> --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
> --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs
> --enable-libxvid --enable-zlib
> libavutil 52. 55.100 / 52. 55.100
> libavcodec 55. 44.100 / 55. 44.100
> libavformat 55. 21.102 / 55. 21.102
> libavdevice 55. 5.101 / 55. 5.101
> libavfilter 3. 91.100 / 3. 91.100
> libswscale 2. 5.101 / 2. 5.101
> libswresample 0. 17.104 / 0. 17.104
> libpostproc 52. 3.100 / 52. 3.100
> [avi @ 04012d40] Stream #1: not enough frames to estimate rate; consider
> increasing probesize
> Input #0, avi, from 'bad.avi':
> Duration: 00:00:06.03, start: 0.000000, bitrate: 40053 kb/s
> Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc), 468x312,
> 30 fps, 30 tbr, 30 tbn, 30 tbc
> Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2
> channels, s16, 1411 kb/s
> [swscaler @ 040d66e0] deprecated pixel format used, make sure you did set
> range correctly
> 2.14 A-V: -0.023 fd= 0 aq= 24KB vq= 1767KB sq= 0B f=0/0
> 4.58 A-V: -0.024 fd= 0 aq= 20KB vq= 1753KB sq= 0B f=0/0
>
> Samples files are here
> https://dl.dropboxusercontent.com/u/89678527/good.avi
> https://dl.dropboxusercontent.com/u/89678527/bad.avi
>
> and please see attached screen shot
New description:
used ffplay to play 2 videos (both MJPEG encoded AVI file, generated by
same program).
While the video having relative low resolution plays correctly, the higher
resolution one show bad images.
below is the output of bad file
{{{
$ ffplay.exe bad.avi
ffplay version N-58485-ga12b4bd Copyright (c) 2003-2013 the FFmpeg
developers
built on Nov 26 2013 22:01:46 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-
librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-
aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
libavutil 52. 55.100 / 52. 55.100
libavcodec 55. 44.100 / 55. 44.100
libavformat 55. 21.102 / 55. 21.102
libavdevice 55. 5.101 / 55. 5.101
libavfilter 3. 91.100 / 3. 91.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[avi @ 04012d40] Stream #1: not enough frames to estimate rate; consider
increasing probesize
Input #0, avi, from 'bad.avi':
Duration: 00:00:06.03, start: 0.000000, bitrate: 40053 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc), 468x312,
30 fps, 30 tbr, 30 tbn, 30 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2
channels, s16, 1411 kb/s
[swscaler @ 040d66e0] deprecated pixel format used, make sure you did set
range correctly
2.14 A-V: -0.023 fd= 0 aq= 24KB vq= 1767KB sq= 0B f=0/0
4.58 A-V: -0.024 fd= 0 aq= 20KB vq= 1753KB sq= 0B f=0/0
}}}
Samples files are here
https://dl.dropboxusercontent.com/u/89678527/good.avi
https://dl.dropboxusercontent.com/u/89678527/bad.avi
and please see attached screen shot
--
Comment:
Looks much nicer with {{{mplayer -vc mjpeg}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3229#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list