New submission from blindbunny ffmpegbugs.10.noonee...@spamgourmet.com:
My goal is to recode an input video in one go into two/multiple output videos of
different frame sizes. Due to issue1957 I use the libavfilter filters for that.
The problem is that only the last specified -vf option is applied to the first
output file. The remaining output files do not get any of the specified -vf
filters applied.
ffmpeg -y -i src.mkv -vf 'scale=120:90' -vcodec libx264 -vpre hq -crf 20 -an -sn
sd.mkv -vf 'scale=240:180' -vcodec libx264 -vpre hq -crf 20 -an -sn hd.mkv
FFmpeg version SVN-r23596, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 15 2010 00:20:19 with gcc 4.4.3
configuration: --enable-shared --enable-nonfree --enable-gpl --enable-postproc
--enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-libx264
--extra-ldflags=-L/usr/local/lib
libavutil 50.19. 0 / 50.19. 0
libavcodec52.76. 0 / 52.76. 0
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[matroska @ 0x95b8510]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 18.00
(18/1) - 25.00 (25/1)
Input #0, matroska, from 'src.mkv':
Duration: 00:00:00.40, start: 0.00, bitrate: N/A
Stream #0.0(eng): Video: h264, yuv420p, 720x576 [PAR 17:12 DAR 85:48], 1k
fps, 25 tbr, 1k tbn, 180k tbc
[scale @ 0x95bd340]w:720 h:576 fmt:yuv420p - w:240 h:180 fmt:yuv420p flags:0x2
[libx264 @ 0x95ba6b0]using SAR=17/12
[libx264 @ 0x95ba6b0]using cpu capabilities: MMX2 Cache64
[libx264 @ 0x95ba6b0]profile High, level 1.2
[libx264 @ 0x95ba6b0]264 - core 98 r62 0cd5d69 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=1 ref=4
deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1
interlaced=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=2 b_bias=0
direct=3 weightb=1 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=20.0 qcomp=0.60 qpmin=10
qpmax=51 qpstep=4 ip_ratio=1.41 aq=1:1.00
[libx264 @ 0x95ba120]using SAR=17/12
[libx264 @ 0x95ba120]using cpu capabilities: MMX2 Cache64
[libx264 @ 0x95ba120]profile High, level 3.0
[libx264 @ 0x95ba120]264 - core 98 r62 0cd5d69 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=1 ref=4
deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1
interlaced=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=2 b_bias=0
direct=3 weightb=1 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=20.0 qcomp=0.60 qpmin=10
qpmax=51 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, matroska, to 'sd.mkv':
Metadata:
encoder : Lavf52.68.0
Stream #0.0(eng): Video: libx264, yuv420p, 240x180 [PAR 17:12 DAR 17:9],
q=10-51, 200 kb/s, 1k tbn, 25 tbc
Output #1, matroska, to 'hd.mkv':
Metadata:
encoder : Lavf52.68.0
Stream #1.0(eng): Video: libx264, yuv420p, 720x576 [PAR 17:12 DAR 85:48],
q=10-51, 200 kb/s, 1k tbn, 25 tbc
Stream mapping:
Stream #0.0 - #0.0
Stream #0.0 - #1.0
Press [q] to stop encoding
frame=9 fps= 0 q=28.0 Lq=25.0 size= 1kB time=0.32 bitrate=
36.3kbits/s dup=0 drop=2
video:6kB audio:0kB global headers:0kB muxing overhead -76.603287%
[libx264 crud follows...]
As you can see, the -vf options are intended to create sd.mkv with 120x90 and
hd.mkv with 240x180, but the result is sd.mkv with 240x180 and hd.mkv with the
resolution of the source material of 720x576 - at least I hope I'm using the
command line options correctly here...
--
messages: 10799
priority: normal
status: new
substatus: new
title: -vf options for different output files are handled incorrectly
type: bug
FFmpeg issue tracker iss...@roundup.ffmpeg.org
https://roundup.ffmpeg.org/issue2006