[FFmpeg-user] inconsistent ffmpeg results when running same command on different machines
Frank Schwieterman
fschwiet at gmail.com
Sun Aug 11 23:51:49 CEST 2013
I am running the same ffmpeg command against the same input data on PC
and Mac, but am seeing slight differences in the output. I suspect the
ffmpeg configuration is different... Is it possible to configure things
such that I'd get the same result from both machines? Can I reasonably get
a binary match? I suspect I'll need to keep ffmpeg versions in sync (which
I can do) and keep the configurations in sync (which I'll have to learn).
Some tracing of the command ran are below, I am clipping 100ms from a
300ms video as a test. Attached are files with the actual console output.
on my Mac:
ffmpeg returned 0 with result hashed as
db19391b6dc9299c4b85ea6850adfb4146854fdf when invoked with [
"-nostats",
"-y",
"-i",
"/Users/user/src/videoplayer/media/300ms.mp4",
"-ss",
0.1,
"-to",
0.2,
"/Users/user/src/videoplayer/temp/media/97c1ff6f-08ec-4c2c-a762-135109bc0996.mp4"
]
on my PC:
ffmpeg returned 0 with result hashed as
34654f2aa267ea9f63d94ae0cd024dcac7240414 when invoked with [
"-nostats",
"-y",
"-i",
"C:\\src\\videoplayer\\media\\300ms.mp4",
"-ss",
0.1,
"-to",
0.2,
"C:\\src\\videoplayer\\temp\\media\\7ae5530f-6893-4cec-9c69-1d4a7c90dab8.mp4"
]
-------------- next part --------------
opffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 25 2013 13:33:41 with Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
configuration: --prefix=/opt/boxen/homebrew/Cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
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 '/Users/user/src/videoplayer/media/300ms.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.63.104
Duration: 00:00:00.33, start: 0.030667, bitrate: 8488 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 9189 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 136 kb/s
Metadata:
handler_name : SoundHandler
[libx264 @ 0x7ff461908e00] using SAR=1/1
[libx264 @ 0x7ff461908e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x7ff461908e00] profile High, level 4.0
[libx264 @ 0x7ff461908e00] 264 - core 125 - 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=6 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=25 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 '/Users/user/src/videoplayer/temp/media/97c1ff6f-08ec-4c2c-a762-135109bc0996.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.63.104
Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 11988 tbn, 29.97 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
frame= 3 fps=0.0 q=-1.0 Lsize= 132kB time=00:00:00.11 bitrate=9528.7kbits/s dup=6 drop=0
video:128kB audio:2kB subtitle:0 global headers:0kB muxing overhead 1.026052%
[libx264 @ 0x7ff461908e00] frame I:1 Avg QP:25.48 size: 83580
[libx264 @ 0x7ff461908e00]
frame P:1 Avg QP:28.10 size: 31075
[libx264 @ 0x7ff461908e00] frame B:1 Avg QP:29.18 size: 16077
[libx264 @ 0x7ff461908e00] consecutive B-frames: 33.3% 66.7% 0.0% 0.0%
[libx264 @ 0x7ff461908e00] mb I I16..4: 21.5% 53.8% 24.7%
[libx264 @ 0x7ff461908e00] mb P I16..4: 5.1% 5.6% 2.1% P16..4: 39.4% 14.2% 5.1% 0.0% 0.0% skip:28.5%
[libx264 @ 0x7ff461908e00] mb B I16..4: 0.4% 0.2% 0.2% B16..8: 40.4% 8.0% 1.6% direct: 1.8% skip:47.4% L0:37.4% L1:54.4% BI: 8.1%
[libx264 @ 0x7ff461908e00] 8x8 transform intra:52.4% inter:67.0%
[libx264 @ 0x7ff461908e00] coded y,uvDC,uvAC intra: 54.2% 69.9% 24.2% inter: 13.9% 18.0% 0.2%
[libx264 @ 0x7ff461908e00] i16 v,h,dc,p: 31% 34% 8% 26%
[libx264 @ 0x7ff461908e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 25% 13% 6% 5% 6% 7% 7% 8%
[libx264 @ 0x7ff461908e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 24% 12% 6% 5% 6% 5% 5% 5%
[libx264 @ 0x7ff461908e00] i8c dc,h,v,p: 44% 25% 23% 7%
[libx264 @ 0x7ff461908e00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7ff461908e00] kb/s:10448.10
-------------- next part --------------
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 28 2013 00:34:08 with gcc 4.8.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --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-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
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 'C:\src\videoplayer\media\300ms.mp4':
Metadata:
major_brand :
isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.63.10
4
Duration: 00:00:00.33, start:
0.030667, bitrate: 8488 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 9189 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 136 kb/s
Metadata:
handler_name : SoundHandler
[libx264 @ 0000000002246da0] using SAR=1/1
[libx264 @ 0000000002246da0] using cpu capabilities: MMX2 SSE2Fast SSEMisalign LZCNT
[libx264 @ 0000000002246da0] profile High, level 4.0
[libx264 @ 0000000002246da0] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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=6 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=25 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 'C:\src\videoplayer\temp\media\7ae5530f-6893-4cec-9c69-1d4a7c90dab8.mp4':
Metadata:
major_brand : isom
minor_version :
512
compatible_brands: isomiso2avc1mp41
encoder :
Lavf54.63.104
Stream #0:0
(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1
, 11988 tbn
, 29.97 tbc
Metadata:
handler_name :
VideoHandler
Stream #0:1
(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
Metadata:
handler_name :
SoundHandler
Stream mapping:
Stream #0:0 -> #0:0
(h264 -> libx264)
Stream #0:1 -> #0:1
(aac -> libvo_aacenc)
Press [q] to stop, [?] for help
frame= 3 fps=0.0 q=-1.0 Lsize= 133kB time=00:00:00.12 bitrate=8851.7kbits/s dup=6 drop=0
video:129kB audio:3kB subtitle:0 global headers:0kB muxing overhead 1.029447%
[libx264 @ 0000000002246da0] frame I:1 Avg QP:25.51 size: 83461
[libx264 @ 0000000002246da0] frame P:1 Avg QP:27.85 size: 30995
[libx264 @ 0000000002246da0] frame B:1 Avg QP:28.70 size: 16517
[libx264 @ 0000000002246da0] consecutive B-frames: 33.3% 66.7% 0.0% 0.0%
[libx264 @ 0000000002246da0] mb I I16..4: 23.5% 51.7% 24.9%
[libx264 @ 0000000002246da0] mb P I16..4: 4.8% 5.6% 2.3% P16..4: 40.2% 14.2% 4.8% 0.0% 0.0% skip:28.2%
[libx264 @ 0000000002246da0] mb B I16..4: 0.5% 0.3% 0.3% B16..8: 40.8% 8.5% 1.5% direct: 1.7% skip:46.5% L0:37.2% L1:54.1% BI: 8.7%
[libx264 @ 0000000002246da0] 8x8 transform intra:50.6% inter:66.4%
[libx264 @ 0000000002246da0] coded y,uvDC,uvAC intra: 54.0% 70.2% 24.0% inter: 14.1% 18.0% 0.3%
[libx264 @ 0000000002246da0] i16 v,h,dc,p: 35% 33% 7% 24%
[libx264 @ 0000000002246da0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 22% 15% 6% 5% 6% 7% 7% 8%
[libx264 @ 0000000002246da0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 24% 13% 5% 5% 6% 6% 5% 5%
[libx264 @ 0000000002246da0] i8c dc,h,v,p: 44% 26% 23% 7%
[libx264 @ 0000000002246da0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000002246da0] kb/s:10467.36
More information about the ffmpeg-user
mailing list