[FFmpeg-trac] #2413(documentation:new): Wrong complex filter graph example
FFmpeg
trac at avcodec.org
Fri Mar 29 09:14:32 CET 2013
#2413: Wrong complex filter graph example
-------------------------------------+-------------------------------------
Reporter: littlebat | Type: defect
Status: new | Priority: normal
Component: | Version: git-
documentation | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
The complex filter graph example at: http://ffmpeg.org/ffmpeg-filters.html
#Filtering-Introduction , use the command line "ffmpeg -i input -vf "[in]
split [T1], [T2] overlay=0:H/2 [out]; [T1] crop=iw:ih/2:0:ih/2, vflip
[T2]" output", I can't get the effect in document says "The result will be
that in output the top half of the video is mirrored onto the bottom half.
"
The detail console output is:
mdx at debian:~/test$ /opt/ffmpeggit/bin/ffmpeg -i test.mp4 -vf "[in] split
[T1], [T2] overlay=0:H/2 [out]; [T1] crop=iw:ih/2:0:ih/2, vflip [T2]"
output.mp4
ffmpeg version N-51433-g551f683 Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 29 2013 10:01:04 with gcc 4.4.5 (Debian 4.4.5-8)
configuration: --prefix=/opt/ffmpeggit --enable-static --disable-shared
--enable-gpl --enable-version3 --enable-nonfree --enable-fontconfig
--enable-libass --enable-libfreetype --enable-swscale --enable-postproc
--enable-pthreads --enable-libfaac --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libopenjpeg --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --extra-
cflags=-I/opt/custom/include --extra-ldflags=-L/opt/custom/lib
libavutil 52. 22.101 / 52. 22.101
libavcodec 55. 2.100 / 55. 2.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 48.105 / 3. 48.105
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf55.0.100
Duration: 00:00:05.04, start: 0.000000, bitrate: 378 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D),
yuv420p, 176x144 [SAR 1:1 DAR 11:9], 323 kb/s, 12.50 fps, 12.50 tbr, 12800
tbn, 25 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono,
fltp, 49 kb/s
Metadata:
handler_name : SoundHandler
[Parsed_overlay_1 @ 0xa3a0d00] Overlay area with coordinates x1:0 y1:36
x2:176 y2:180 is not completely contained within the output with size
176x72
[libx264 @ 0xa396860] using SAR=1/1
[libx264 @ 0xa396860] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
SlowCTZ SlowAtom
[libx264 @ 0xa396860] profile High, level 1.0
[libx264 @ 0xa396860] 264 - core 129 r36057 0a9132b - H.264/MPEG-4 AVC
codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 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=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf55.0.100
Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
176x72 [SAR 1:1 DAR 22:9], q=-1--1, 12800 tbn, 12.50 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono,
s16, 128 kb/s
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> libx264)
Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
frame= 42 fps=0.0 q=0.0 size= 0kB time=00:00:03.41 bitrate=
0.1kbits/sframe= 58 fps= 57 q=26.0 size= 5kB time=00:00:04.66
bitrate= 9.4kbits/frame= 63 fps= 24 q=-2.0 Lsize= 81kB
time=00:00:05.01 bitrate= 132.8kbits/s
video:39kB audio:38kB subtitle:0 global headers:0kB muxing overhead
4.653034%
[libx264 @ 0xa396860] frame I:2 Avg QP:15.48 size: 152
[libx264 @ 0xa396860] frame P:55 Avg QP:23.73 size: 689
[libx264 @ 0xa396860] frame B:6 Avg QP:26.75 size: 244
[libx264 @ 0xa396860] consecutive B-frames: 81.0% 19.0% 0.0% 0.0%
[libx264 @ 0xa396860] mb I I16..4: 93.6% 4.5% 1.8%
[libx264 @ 0xa396860] mb P I16..4: 5.0% 6.8% 2.5% P16..4: 42.0% 28.9%
11.6% 0.0% 0.0% skip: 3.1%
[libx264 @ 0xa396860] mb B I16..4: 0.6% 0.0% 0.0% B16..8: 48.8% 13.9%
2.7% direct: 5.8% skip:28.2% L0:36.6% L1:27.7% BI:35.7%
[libx264 @ 0xa396860] 8x8 transform intra:38.6% inter:56.8%
[libx264 @ 0xa396860] coded y,uvDC,uvAC intra: 33.7% 74.5% 39.2% inter:
43.4% 73.1% 30.2%
[libx264 @ 0xa396860] i16 v,h,dc,p: 43% 21% 29% 7%
[libx264 @ 0xa396860] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 16% 47% 1% 3%
3% 2% 2% 3%
[libx264 @ 0xa396860] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 22% 22% 1% 4%
5% 4% 2% 3%
[libx264 @ 0xa396860] i8c dc,h,v,p: 51% 21% 22% 6%
[libx264 @ 0xa396860] Weighted P-Frames: Y:38.2% UV:34.5%
[libx264 @ 0xa396860] ref P L0: 65.2% 17.5% 14.1% 2.6% 0.6%
[libx264 @ 0xa396860] ref B L0: 98.1% 1.9%
[libx264 @ 0xa396860] kb/s:62.92
I used the command below to get the result said in online document:
/opt/ffmpeggit/bin/ffmpeg -i test.mp4 -vf "[in] split
[T1],crop=iw:ih/2:0:0,vflip,[T2] overlay=0:H/2 [out]; [T1]fifo[T2]"
output2.mp4
Attachments:
1, input file: test.mp4
2, the wrong output file: output.mp4
3, the right output file: output2.mp4
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2413>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list