Matroska $ ./ffmpeg -f lavfi -i testsrc -t 10 -c:v libx264 -preset veryfast test.mkv ffmpeg version N-71838-gd56245f Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-nonfree --enable-libdcadec --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-openssl --enable-opengl --disable-decoder=dca --target-os=mingw32 --arch=x86_64 --cc='ccache gcc' --cpu=amdfam10 --extra-cflags='-D_WIN32_WINNT=0x0600' --prefix=/mingw64 libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 35.101 / 56. 35.101 libavformat 56. 31.100 / 56. 31.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 000000000031cea0] using SAR=1/1 [libx264 @ 000000000031cea0] using cpu capabilities: MMX2 SSE2Fast LZCNT [libx264 @ 000000000031cea0] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit [libx264 @ 000000000031cea0] 264 - core 144 r2525 40bb568 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=6 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 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, matroska, to 'test.mkv': Metadata: encoder : Lavf56.31.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc56.35.101 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help frame= 250 fps=0.0 q=-1.0 Lsize= 51kB time=00:00:09.92 bitrate= 42.0kbits/s video:49kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.574364% [libx264 @ 000000000031cea0] frame I:1 Avg QP:17.40 size: 2860 [libx264 @ 000000000031cea0] frame P:77 Avg QP:14.84 size: 487 [libx264 @ 000000000031cea0] frame B:172 Avg QP:14.98 size: 51 [libx264 @ 000000000031cea0] consecutive B-frames: 8.0% 0.8% 0.0% 91.2% [libx264 @ 000000000031cea0] mb I I16..4: 64.3% 9.7% 26.0% [libx264 @ 000000000031cea0] mb P I16..4: 3.6% 1.8% 0.5% P16..4: 7.1% 3.8% 1.3% 0.0% 0.0% skip:82.1% [libx264 @ 000000000031cea0] mb B I16..4: 0.4% 0.1% 0.0% B16..8: 1.1% 0.1% 0.0% direct: 0.4% skip:98.0% L0:49.0% L1:50.5% BI: 0.5% [libx264 @ 000000000031cea0] 8x8 transform intra:24.7% inter:24.4% [libx264 @ 000000000031cea0] coded y,u,v intra: 10.5% 16.4% 12.4% inter: 0.8% 0.9% 0.7% [libx264 @ 000000000031cea0] i16 v,h,dc,p: 46% 42% 1% 12% [libx264 @ 000000000031cea0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 89% 2% 8% 0% 0% 0% 0% 0% 0% [libx264 @ 000000000031cea0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 50% 20% 0% 1% 1% 0% 1% 1% [libx264 @ 000000000031cea0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 000000000031cea0] kb/s:39.32 $ ./ffmpeg -i test.mkv ffmpeg version N-71838-gd56245f Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-nonfree --enable-libdcadec --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-openssl --enable-opengl --disable-decoder=dca --target-os=mingw32 --arch=x86_64 --cc='ccache gcc' --cpu=amdfam10 --extra-cflags='-D_WIN32_WINNT=0x0600' --prefix=/mingw64 libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 35.101 / 56. 35.101 libavformat 56. 31.100 / 56. 31.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, matroska,webm, from 'test.mkv': Metadata: ENCODER : Lavf56.31.100 Duration: 00:00:10.08, start: 0.080000, bitrate: 41 kb/s Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuv444p, 320x240 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 1k tbn, 50 tbc (default) Metadata: ENCODER : Lavc56.35.101 libx264 At least one output file must be specified MP4 $ ./ffmpeg -f lavfi -i testsrc -t 10 -c:v libx264 -preset veryfast test.mp4 ffmpeg version N-71838-gd56245f Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-nonfree --enable-libdcadec --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-openssl --enable-opengl --disable-decoder=dca --target-os=mingw32 --arch=x86_64 --cc='ccache gcc' --cpu=amdfam10 --extra-cflags='-D_WIN32_WINNT=0x0600' --prefix=/mingw64 libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 35.101 / 56. 35.101 libavformat 56. 31.100 / 56. 31.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 000000000031cea0] using SAR=1/1 [libx264 @ 000000000031cea0] using cpu capabilities: MMX2 SSE2Fast LZCNT [libx264 @ 000000000031cea0] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit [libx264 @ 000000000031cea0] 264 - core 144 r2525 40bb568 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=6 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 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 'test.mp4': Metadata: encoder : Lavf56.31.100 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc56.35.101 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help frame= 250 fps=0.0 q=-1.0 Lsize= 52kB time=00:00:09.92 bitrate= 43.2kbits/s video:49kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 7.455410% [libx264 @ 000000000031cea0] frame I:1 Avg QP:17.40 size: 2860 [libx264 @ 000000000031cea0] frame P:77 Avg QP:14.84 size: 487 [libx264 @ 000000000031cea0] frame B:172 Avg QP:14.98 size: 51 [libx264 @ 000000000031cea0] consecutive B-frames: 8.0% 0.8% 0.0% 91.2% [libx264 @ 000000000031cea0] mb I I16..4: 64.3% 9.7% 26.0% [libx264 @ 000000000031cea0] mb P I16..4: 3.6% 1.8% 0.5% P16..4: 7.1% 3.8% 1.3% 0.0% 0.0% skip:82.1% [libx264 @ 000000000031cea0] mb B I16..4: 0.4% 0.1% 0.0% B16..8: 1.1% 0.1% 0.0% direct: 0.4% skip:98.0% L0:49.0% L1:50.5% BI: 0.5% [libx264 @ 000000000031cea0] 8x8 transform intra:24.7% inter:24.4% [libx264 @ 000000000031cea0] coded y,u,v intra: 10.5% 16.4% 12.4% inter: 0.8% 0.9% 0.7% [libx264 @ 000000000031cea0] i16 v,h,dc,p: 46% 42% 1% 12% [libx264 @ 000000000031cea0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 89% 2% 8% 0% 0% 0% 0% 0% 0% [libx264 @ 000000000031cea0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 50% 20% 0% 1% 1% 0% 1% 1% [libx264 @ 000000000031cea0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 000000000031cea0] kb/s:39.32 $ ./ffmpeg -i test.mp4 ffmpeg version N-71838-gd56245f Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-nonfree --enable-libdcadec --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-openssl --enable-opengl --disable-decoder=dca --target-os=mingw32 --arch=x86_64 --cc='ccache gcc' --cpu=amdfam10 --extra-cflags='-D_WIN32_WINNT=0x0600' --prefix=/mingw64 libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 35.101 / 56. 35.101 libavformat 56. 31.100 / 56. 31.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.31.100 Duration: 00:00:10.00, start: 0.000000, bitrate: 42 kb/s Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 320x240 [SAR 1:1 DAR 4:3], 39 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: handler_name : VideoHandler At least one output file must be specified