[FFmpeg-user] ffmpeg creates white frames at end of encode

Frederico Cengarle frederico.cengarle at mels-studios.com
Mon Jan 28 18:46:13 EET 2019


Hi Carl,

thanks for the quick reply.  I did also try the internal aac encoder but still have the same issue….seems for some reason that the audio track end up being longer than the video (even if I use the -shortest cmd)

Here my console output

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\fcengarle>ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate
=48000 -i \\psf\Home\Desktop\Tedst\SEE_ALEXA65_IO_v001_dnx.mov<smb://psf/Home/Desktop/Tedst/SEE_ALEXA65_IO_v001_dnx.mov>  -pix_fmt yuv420p
 -vcodec libx264 -profile:v main -color_primaries 1 -color_trc 1 -colorspace 1 -
b:v 10M -c:a aac -b:a 192k -movflags faststart -shortest \\psf\Home\Desktop\Teds<smb://psf/Home/Desktop/Teds>
t\output\SEE_ALEXA65_IO_v001_dnx.mov
ffmpeg version 3.3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (Rev1, Built by MSYS2 project)
  configuration: --enable-pic --enable-small --enable-stripping --enable-optimiz
ations --disable-debug --disable-doc --enable-libx264 --enable-libx265 --enable-
libspeex --enable-libfdk-aac --enable-libvpx --enable-libmp3lame --enable-openss
l --enable-libmfx --enable-gpl --enable-nonfree
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, lavfi, from 'anullsrc=channel_layout=stereo:sample_rate=48000':
  Duration: N/A, start: 0.000000, bitrate: 768 kb/s
    Stream #0:0: Audio: pcm_u8, 48000 Hz, stereo, u8, 768 kb/s
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '\\psf\Home\Desktop\Tedst\SEE_ALEXA65_IO<smb://psf/Home/Desktop/Tedst/SEE_ALEXA65_IO>
_v001_dnx.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf57.71.100
  Duration: 00:00:05.44, start: 0.000000, bitrate: 10270 kb/s
    Stream #1:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x
1080 [SAR 1:1 DAR 16:9], 10183 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (d
efault)
    Metadata:
      handler_name    : DataHandler
      encoder         : Lavc57.89.100 libx264
      timecode        : 03:05:00:09
    Stream #1:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 19
2 kb/s (default)
    Metadata:
      handler_name    : DataHandler
    Stream #1:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
    Metadata:
      handler_name    : DataHandler
      timecode        : 03:05:00:09
Stream mapping:
  Stream #1:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (pcm_u8 (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 05323f80] using SAR=1/1
[libx264 @ 05323f80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 05323f80] profile Main, level 4.0
[libx264 @ 05323f80] 264 - core 148 r2721M 72d53ab - H.264/MPEG-4 AVC codec - Co
pyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 de
block=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 chr
oma_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=23 scene
cut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=10000 ratetol=1.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to '\\psf\Home\Desktop\Tedst\output\SEE_ALEXA65_IO_v001_dnx.mov'<smb://psf/Home/Desktop/Tedst/output/SEE_ALEXA65_IO_v001_dnx.mov'>
:
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(bt709,
progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 10000 kb/s, 23.98 fps, 24k
tbn, 23.98 tbc (default)
    Metadata:
      handler_name    : DataHandler
      timecode        : 03:05:00:09
      encoder         : Lavc57.89.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/10000000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/
s
    Metadata:
      encoder         : Lavc57.89.100 aac
frame=   27 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=
frame=   47 fps= 21 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=
frame=   50 fps= 15 q=18.0 size=     416kB time=00:00:00.02 bitrate=159645.6kbit
frame=   51 fps= 12 q=18.0 size=     416kB time=00:00:00.04 bitrate=79823.2kbits
frame=   54 fps= 10 q=20.0 size=     745kB time=00:00:00.17 bitrate=35780.3kbits
frame=   56 fps=9.4 q=27.0 size=     865kB time=00:00:00.25 bitrate=27687.1kbits
frame=   58 fps=8.2 q=26.0 size=     974kB time=00:00:00.34 bitrate=23384.8kbits
frame=   61 fps=7.8 q=26.0 size=    1078kB time=00:00:00.46 bitrate=18824.4kbits
frame=   63 fps=7.1 q=26.0 size=    1149kB time=00:00:00.55 bitrate=16964.6kbits
frame=   66 fps=6.7 q=26.0 size=    1228kB time=00:00:00.68 bitrate=14735.3kbits
frame=   68 fps=6.5 q=25.0 size=    1319kB time=00:00:00.76 bitrate=14066.5kbits
frame=   70 fps=6.4 q=25.0 size=    1370kB time=00:00:00.85 bitrate=13155.3kbits
frame=   72 fps=6.2 q=24.0 size=    1466kB time=00:00:00.93 bitrate=12792.3kbits
frame=   74 fps=6.1 q=25.0 size=    1522kB time=00:00:01.00 bitrate=12432.9kbits
frame=   76 fps=6.0 q=24.0 size=    1622kB time=00:00:01.08 bitrate=12216.0kbits
frame=   78 fps=5.9 q=24.0 size=    1681kB time=00:00:01.17 bitrate=11739.7kbits
frame=   80 fps=5.8 q=24.0 size=    1789kB time=00:00:01.25 bitrate=11646.4kbits
frame=   82 fps=5.7 q=24.0 size=    1853kB time=00:00:01.34 bitrate=11293.5kbits
frame=   85 fps=5.7 q=24.0 size=    1998kB time=00:00:01.47 bitrate=11117.4kbits
frame=   87 fps=5.5 q=23.0 size=    2097kB time=00:00:01.55 bitrate=11030.8kbits
frame=   90 fps=5.4 q=23.0 size=    2214kB time=00:00:01.68 bitrate=10761.9kbits
frame=   92 fps=5.3 q=23.0 size=    2335kB time=00:00:01.77 bitrate=10804.5kbits
frame=   93 fps=5.1 q=23.0 size=    2374kB time=00:00:01.81 bitrate=10725.5kbits
frame=   96 fps=5.1 q=23.0 size=    2535kB time=00:00:01.92 bitrate=10817.8kbits
frame=   98 fps=5.0 q=23.0 size=    2614kB time=00:00:02.00 bitrate=10678.0kbits
frame=  100 fps=4.9 q=23.0 size=    2735kB time=00:00:02.09 bitrate=10718.6kbits
frame=  103 fps=4.9 q=23.0 size=    2882kB time=00:00:02.21 bitrate=10640.6kbits
frame=  106 fps=4.8 q=23.0 size=    3012kB time=00:00:02.34 bitrate=10513.3kbits
frame=  109 fps=4.7 q=23.0 size=    3173kB time=00:00:02.47 bitrate=10502.7kbits
frame=  112 fps=4.6 q=23.0 size=    3331kB time=00:00:02.60 bitrate=10484.5kbits
frame=  114 fps=4.5 q=23.0 size=    3409kB time=00:00:02.68 bitrate=10387.9kbits
frame=  117 fps=4.6 q=23.0 size=    3620kB time=00:00:02.81 bitrate=10532.0kbits
frame=  119 fps=4.5 q=23.0 size=    3692kB time=00:00:02.88 bitrate=10501.8kbits
frame=  122 fps=4.5 q=23.0 size=    3832kB time=00:00:03.00 bitrate=10435.7kbits
frame=  123 fps=4.4 q=23.0 size=    3902kB time=00:00:03.05 bitrate=10478.9kbits
frame=  126 fps=4.5 q=23.0 size=    4043kB time=00:00:03.17 bitrate=10419.0kbits
frame=  127 fps=4.4 q=23.0 size=    4114kB time=00:00:03.22 bitrate=10462.7kbits
[mov @ 008ac1c0] Starting second pass: moving the moov atom to the beginning of
the file
frame=  129 fps=3.2 q=-1.0 Lsize=    6573kB time=00:00:05.39 bitrate=9976.3kbits
/s speed=0.134x
video:6566kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 0.085785%
[libx264 @ 05323f80] frame I:2     Avg QP: 8.59  size:126866
[libx264 @ 05323f80] frame P:32    Avg QP:18.78  size: 69574
[libx264 @ 05323f80] frame B:95    Avg QP:21.14  size: 44659
[libx264 @ 05323f80] consecutive B-frames:  1.6%  0.0%  2.3% 96.1%
[libx264 @ 05323f80] mb I  I16..4: 55.2%  0.0% 44.8%
[libx264 @ 05323f80] mb P  I16..4: 13.4%  0.0% 19.6%  P16..4: 27.1% 18.3%  6.7%
 0.0%  0.0%    skip:14.9%
[libx264 @ 05323f80] mb B  I16..4:  5.7%  0.0%  5.9%  B16..8: 31.9% 17.3%  4.1%
 direct:11.3%  skip:23.7%  L0:47.6% L1:40.8% BI:11.6%
[libx264 @ 05323f80] final ratefactor: 17.84
[libx264 @ 05323f80] coded y,uvDC,uvAC intra: 46.9% 72.6% 27.4% inter: 30.9% 33.
4% 1.2%
[libx264 @ 05323f80] i16 v,h,dc,p: 23% 43% 16% 18%
[libx264 @ 05323f80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 31% 18%  4%  7%  4%  9%
 3%  5%
[libx264 @ 05323f80] i8c dc,h,v,p: 49% 35% 12%  4%
[libx264 @ 05323f80] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 05323f80] ref P L0: 38.9% 10.0% 29.3% 21.8%
[libx264 @ 05323f80] ref B L0: 74.5% 17.7%  7.8%
[libx264 @ 05323f80] ref B L1: 91.1%  8.9%
[libx264 @ 05323f80] kb/s:9995.85
[aac @ 008c5640] Qavg: 65536.000

C:\Users\fcengarle>



On Jan 28, 2019, at 11:02 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com<mailto:ceffmpeg at gmail.com>> wrote:

2019-01-28 16:47 GMT+01:00, Frederico Cengarle
<frederico.cengarle at mels-studios.com<mailto:frederico.cengarle at mels-studios.com>>:

ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000 -i Input
file  -pix_fmt yuv420p -vcodec libx264 -profile:v main -color_primaries 1
-color_trc 1 -colorspace 1 -b:v 10M -c:a libfdk_aac -b:a 192k -movflags
faststart –shortest output file

Is an external aac encoder necessary to reproduce the issue or is
it also reproducible with the native aac encoder?
Complete, uncut console output missing.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org<mailto:ffmpeg-user at ffmpeg.org>
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list