[FFmpeg-trac] #3631(undetermined:new): Aspect ratio change in the middle of a video stream
FFmpeg
trac at avcodec.org
Sat May 10 16:15:23 CEST 2014
#3631: Aspect ratio change in the middle of a video stream
-------------------------------------+-------------------------------------
Reporter: mar | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: aspect | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by mar):
Yes, of course. Here is the ffplay output of out_001.jpeg:
{{{
D:\media\ffmpegtest>C:\Programme\ffmpeg\ffplay.exe -i out_001.jpeg
ffplay version N-63013-g4cdea92 Copyright (c) 2003-2014 the FFmpeg
developers
built on May 6 2014 22:02:02 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-
libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-
libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
libwavp
ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable
-decklink --enable-zlib
libavutil 52. 81.100 / 52. 81.100
libavcodec 55. 60.103 / 55. 60.103
libavformat 55. 37.102 / 55. 37.102
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 5.100 / 4. 5.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from 'out_001.jpeg': vq= 0KB sq= 0B f=0/0
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc), 250x200 [SAR 16:15 DAR 4:3],
25 tbr
, 25 tbn, 25 tbc
[swscaler @ 02d7d020] deprecated pixel format used, make sure you did set
range
correctly
13.77 M-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
}}}
And this is out_007.jpeg
{{{
D:\media\ffmpegtest>C:\Programme\ffmpeg\ffplay.exe -i out_007.jpeg
ffplay version N-63013-g4cdea92 Copyright (c) 2003-2014 the FFmpeg
developers
built on May 6 2014 22:02:02 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-
libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-
libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
libwavp
ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable
-decklink --enable-zlib
libavutil 52. 81.100 / 52. 81.100
libavcodec 55. 60.103 / 55. 60.103
libavformat 55. 37.102 / 55. 37.102
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 5.100 / 4. 5.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from 'out_007.jpeg': vq= 0KB sq= 0B f=0/0
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc), 250x200 [SAR 64:45 DAR 16:9],
25 tb
r, 25 tbn, 25 tbc
[swscaler @ 02d79460] deprecated pixel format used, make sure you did set
range
correctly
2.48 M-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
}}}
The aspect ratio in the video changes from 5:4 to 16:9 (a matter of fact).
The first image (out_001.jpeg) is correct. It has a size of 250x200 pixel
with an aspect ratio of 5:4.
The second image (out_007.jpeg) is not correct. It is taken after the
aspect ratio change and has a wrong size of 250x200. It should have an
aspect ratio of 16:9 and a size of 356x200.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3631#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list