[FFmpeg-user] Same binary and same command 1 byte difference first frame

Andrew Sinclair ajsinclair at gmail.com
Fri Aug 31 03:57:32 EEST 2018


Hi,

Bit of a long shot here in case anyone may know, I am running the same
binary of ffmpeg on the same docker image on 2 different hosts and as a
result I get a different sized first I frame (out by 1 byte) between the 2
hosts, anyone have any idea how that could happen or know any settings I
could try to make the frames identical? I tried crf and disabling asm on
x264

ffmpeg -f lavfi -i color=c=black:s=864x360 -frames 54 -r 24000/1001 -c:v
h264 -profile:v baseline -crf 50 -level 3.0 -b:v 703765 -y
24000_1001_703765_864x360_video_boltbuildbase.mp4
ffmpeg version n4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --prefix=src/ffmpeg_build --pkg-config-flags=--static
--extra-cflags=-I/src/ffmpeg_build/include
--extra-ldflags=-Lsrc/ffmpeg_build/lib --extra-libs='-lpthread -lm'
--bindir=src/bin --enable-gpl --enable-libfdk-aac --enable-libx264
--enable-libx265 --enable-nonfree
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, lavfi, from 'color=c=black:s=864x360':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 864x360 [SAR
1:1 DAR 12:5], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x55d04cbc1100] using SAR=1/1
[libx264 @ 0x55d04cbc1100] using cpu capabilities: none!
[libx264 @ 0x55d04cbc1100] profile Constrained Baseline, level 3.0, 4:2:0,
8-bit
[libx264 @ 0x55d04cbc1100] 264 - core 157 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0
ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=11 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=23
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=50.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '24000_1001_703765_864x360_video_boltbuildbase.mp4':
  Metadata:
    encoder         : Lavf58.12.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
864x360 [SAR 1:1 DAR 12:5], q=-1--1, 703 kb/s, 23.98 fps, 24k tbn, 23.98 tbc
    Metadata:
      encoder         : Lavc58.18.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/703000 buffer size: 0 vbv_delay: -1
Past duration 0.614372 too large
Past duration 0.655327 too large
Past duration 0.696281 too large
Past duration 0.737267 too large
Past duration 0.778221 too large
Past duration 0.819176 too large
Past duration 0.860130 too large
Past duration 0.901085 too large
Past duration 0.942039 too large
Past duration 0.983025 too large
frame=   54 fps=0.0 q=-1.0 Lsize=       3kB time=00:00:02.21 bitrate=
11.6kbits/s dup=0 drop=1 speed=4.56x
video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 48.702503%
[libx264 @ 0x55d04cbc1100] frame I:1     Avg QP:42.00  size:   958
[libx264 @ 0x55d04cbc1100] frame P:53    Avg QP:42.06  size:    11
[libx264 @ 0x55d04cbc1100] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x55d04cbc1100] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%
0.0%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 0x55d04cbc1100] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter:
0.0% 0.0% 0.0%
[libx264 @ 0x55d04cbc1100] i16 v,h,dc,p: 96%  0%  4%  0%
[libx264 @ 0x55d04cbc1100] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x55d04cbc1100] kb/s:5.48


More information about the ffmpeg-user mailing list