[FFmpeg-user] First frame is corrupted

Goran Obal obal.goran at gmail.com
Wed Oct 30 11:26:05 EET 2019


Try using a different pixel format, say yuv420p. Add -pix_fmt yuv420p
before output file in the command line.

On Wed, Oct 30, 2019 at 10:08 AM Michael Koch <astroelectronic at t-online.de>
wrote:

> Hi,
>
> I have a video which looks fine in FFplay and also in VLC, but after
> uploading to Facebook the first frame is corrupted, as can be seen here:
> https://www.facebook.com/100002490928195/videos/2597554727004199/
> I don't know if this is a problem in my file or not. The console output
> is below.
>
> Michael
>
>
> F:\2019_10_30_Sylvia>c://ffmpeg/ffmpeg -ss 300 -i P1000479.mov
> -filter_complex "
>
> colorlevels=rimin=0.015:gimin=0.005:bimin=0.015:rimax=0.26:gimax=0.26:bimax=0.26
> " -t 3 -q:v 1 -y sylvia.mp4
> ffmpeg version N-95216-ge6625ca41f Copyright (c) 2000-2019 the FFmpeg
> developers
>
>    built with gcc 9.2.1 (GCC) 20190918
>    configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfi
> g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d
> --enable-libb
> luray --enable-libfreetype --enable-libmp3lame
> --enable-libopencore-amrnb --enab
> le-libopencore-amrwb --enable-libopenjpeg --enable-libopus
> --enable-libshine --e
> nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
> --enable
> -libvpx --enable-libwavpack --enable-libwebp --enable-libx264
> --enable-libx265 -
> -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
> --enable-gmp --enab
> le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> --enable-libmysofa --en
> able-libspeex --enable-libxvid --enable-libaom --enable-libmfx
> --enable-ffnvcode
> c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec
> --enable-dxva2 -
> -enable-avisynth --enable-libopenmpt --enable-amf
>    libavutil      56. 35.100 / 56. 35.100
>    libavcodec     58. 59.101 / 58. 59.101
>    libavformat    58. 33.100 / 58. 33.100
>    libavdevice    58.  9.100 / 58.  9.100
>    libavfilter     7. 61.100 /  7. 61.100
>    libswscale      5.  6.100 /  5.  6.100
>    libswresample   3.  6.100 /  3.  6.100
>    libpostproc    55.  6.100 / 55.  6.100
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000460680] decoding for stream 0 failed
> Guessed Channel Layout for Input Stream #0.1 : stereo
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P1000479.mov':
>    Metadata:
>      major_brand     : qt
>      minor_version   : 537986816
>      compatible_brands: qt  pana
>      creation_time   : 2019-10-29T23:33:53.000000Z
>      com.panasonic.Semi-Pro.metadata.xml: <?xml version="1.0"
> encoding="UTF-8" st
> andalone="no" ?>
>                      : <ClipMain
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst
> ance" xmlns="urn:schemas-Professional-Plug-in:Semi-Pro:ClipMetadata:v1.0">
>                      :   <ClipContent>
>                      :
> <GlobalClipID>060A2B340101010501010D21130000005767E053
> 00BB5534547F1060C1650131</GlobalClipID>
>                      :     <Duration>12012</Duration>
>                      :     <EditUnit>1/25</EditUnit>
>                      :     <EssenceList>
>                      :       <Video>
>                      :         <Codec BitRate="200">H264_422_Intra</Codec>
>                      : <ActiveLine>1080</ActiveLine>
>                      : <ActivePixel>1920</ActivePixel>
>                      :         <BitDepth>10</BitDepth>
>                      :         <FrameRate>25p</FrameRate>
>                      : <TimecodeType>NonDrop</TimecodeType>
>                      : <StartTimecode>22:23:17:03</StartTimecode>
>                      :       </Video>
>                      :       <Audio>
>                      :         <Channel>2</Channel>
>                      : <SamplingRate>48000</SamplingRate>
>                      : <BitsPerSample>16</BitsPerSample>
>                      :       </Audio>
>                      :     </EssenceList>
>                      :     <ClipMetadata>
>                      :       <Rating>0</Rating>
>                      :       <Access>
>                      : <CreationDate>2019-10-29T23:33:53+02:00</CreationD
> ate>
>                      : <LastUpdateDate>2019-10-29T23:33:53+02:00</LastUpd
> ateDate>
>                      :       </Access>
>                      :       <Device>
>                      : <Manufacturer>Panasonic</Manufacturer>
>                      : <ModelName>DC-GH5S</ModelName>
>                      :       </Device>
>                      :       <Shoot>
>                      : <StartDate>2019-10-29T23:33:53+02:00</StartDate>
>                      :       </Shoot>
>                      :     </ClipMetadata>
>                      :   </ClipContent>
>                      :   <UserArea>
>                      :     <AcquisitionMetadata
> xmlns="urn:schemas-Professional-P
> lug-in:P2:CameraMetadata:v1.2">
>                      :       <CameraUnitMetadata>
>                      :         <Gamma>
>                      : <CaptureGamma>STANDARD</CaptureGamma>
>                      :         </Gamma>
>                      :         <Gamut>
>                      : <CaptureGamut>BT.709</CaptureGamut>
>                      :         </Gamut>
>                      :       </CameraUnitMetadata>
>                      :     </AcquisitionMetadata>
>                      :   </UserArea>
>                      : </ClipMain>
>                      :
>    Duration: 00:08:00.48, start: 0.000000, bitrate: 201724 kb/s
>      Stream #0:0(und): Video: h264 (High 4:2:2 Intra) (avc1 /
> 0x31637661), yuv422
> p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 200004 kb/s, 25 fps, 25
> tbr, 90k
>   tbn, 50 tbc (default)
>      Metadata:
>        creation_time   : 2019-10-29T23:33:53.000000Z
>        timecode        : 22:23:17:03
>      Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz,
> stereo, s1
> 6, 1536 kb/s (default)
>      Metadata:
>        creation_time   : 2019-10-29T23:33:53.000000Z
>        timecode        : 22:23:17:03
>      Stream #0:2(und): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
>      Metadata:
>        creation_time   : 2019-10-29T23:33:53.000000Z
>        timecode        : 22:23:17:03
> Stream mapping:
>    Stream #0:0 (h264) -> colorlevels (graph 0)
>    colorlevels (graph 0) -> Stream #0:0 (libx264)
>    Stream #0:1 -> #0:1 (pcm_s16be (native) -> aac (native))
> Press [q] to stop, [?] for help
> [libx264 @ 0000000000469040] -qscale is ignored, -crf is recommended.
> [libx264 @ 0000000000469040] using SAR=1/1
> [libx264 @ 0000000000469040] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2
> AVX FMA3 BMI2 AVX2
> [libx264 @ 0000000000469040] profile High 4:4:4 Predictive, level 4.0,
> 4:4:4, 10
> -bit
> [libx264 @ 0000000000469040] 264 - core 158 r2984 3759fcb - H.264/MPEG-4
> AVC cod
> ec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options:
> cabac=1 r
> ef=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_pski
> p=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0
> nr=0 decim
> ate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3
> b_pyramid=2 b_a
> dapt=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=81 qpstep=4 ip_ratio=1.40 aq=1:1.00
> frame=    6 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77
> bitrate=  -0.0kb
> Output #0, mp4, to 'sylvia.mp4':
>    Metadata:
>      major_brand     : qt
>      minor_version   : 537986816
>      compatible_brands: qt  pana
>      com.panasonic.Semi-Pro.metadata.xml: <?xml version="1.0"
> encoding="UTF-8" st
> andalone="no" ?>
>                      : <ClipMain
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst
> ance" xmlns="urn:schemas-Professional-Plug-in:Semi-Pro:ClipMetadata:v1.0">
>                      :   <ClipContent>
>                      :
> <GlobalClipID>060A2B340101010501010D21130000005767E053
> 00BB5534547F1060C1650131</GlobalClipID>
>                      :     <Duration>12012</Duration>
>                      :     <EditUnit>1/25</EditUnit>
>                      :     <EssenceList>
>                      :       <Video>
>                      :         <Codec BitRate="200">H264_422_Intra</Codec>
>                      : <ActiveLine>1080</ActiveLine>
>                      : <ActivePixel>1920</ActivePixel>
>                      :         <BitDepth>10</BitDepth>
>                      :         <FrameRate>25p</FrameRate>
>                      : <TimecodeType>NonDrop</TimecodeType>
>                      : <StartTimecode>22:23:17:03</StartTimecode>
>                      :       </Video>
>                      :       <Audio>
>                      :         <Channel>2</Channel>
>                      : <SamplingRate>48000</SamplingRate>
>                      : <BitsPerSample>16</BitsPerSample>
>                      :       </Audio>
>                      :     </EssenceList>
>                      :     <ClipMetadata>
>                      :       <Rating>0</Rating>
>                      :       <Access>
>                      : <CreationDate>2019-10-29T23:33:53+02:00</CreationD
> ate>
>                      : <LastUpdateDate>2019-10-29T23:33:53+02:00</LastUpd
> ateDate>
>                      :       </Access>
>                      :       <Device>
>                      : <Manufacturer>Panasonic</Manufacturer>
>                      : <ModelName>DC-GH5S</ModelName>
>                      :       </Device>
>                      :       <Shoot>
>                      : <StartDate>2019-10-29T23:33:53+02:00</StartDate>
>                      :       </Shoot>
>                      :     </ClipMetadata>
>                      :   </ClipContent>
>                      :   <UserArea>
>                      :     <AcquisitionMetadata
> xmlns="urn:schemas-Professional-P
> lug-in:P2:CameraMetadata:v1.2">
>                      :       <CameraUnitMetadata>
>                      :         <Gamma>
>                      : <CaptureGamma>STANDARD</CaptureGamma>
>                      :         </Gamma>
>                      :         <Gamut>
>                      : <CaptureGamut>BT.709</CaptureGamut>
>                      :         </Gamut>
>                      :       </CameraUnitMetadata>
>                      :     </AcquisitionMetadata>
>                      :   </UserArea>
>                      : </ClipMain>
>                      :
>      encoder         : Lavf58.33.100
>      Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661),
> yuv444p10le(progress
> ive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
> (default)
>
>      Metadata:
>        encoder         : Lavc58.59.101 libx264
>      Side data:
>        cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
>      Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> stereo, flt
> p, 128 kb/s (default)
>      Metadata:
>        creation_time   : 2019-10-29T23:33:53.000000Z
>        timecode        : 22:23:17:03
>        encoder         : Lavc58.59.101 aac
> frame=   12 fps= 10 q=0.0 size=       0kB time=00:00:00.42 bitrate=
> 0.9kbits/s
> frame=   18 fps= 11 q=0.0 size=       0kB time=00:00:00.42 bitrate=
> 0.9kbits/s
> frame=   24 fps= 11 q=0.0 size=       0kB time=00:00:00.91 bitrate=
> 0.4kbits/s
> frame=   30 fps= 11 q=0.0 size=       0kB time=00:00:00.91 bitrate=
> 0.4kbits/s
> frame=   36 fps= 11 q=0.0 size=       0kB time=00:00:01.38 bitrate=
> 0.3kbits/s
> frame=   42 fps= 11 q=0.0 size=       0kB time=00:00:01.38 bitrate=
> 0.3kbits/s
> frame=   47 fps=9.5 q=0.0 size=       0kB time=00:00:01.87 bitrate=
> 0.2kbits/s
> frame=   51 fps=9.3 q=40.0 size=       0kB time=00:00:01.87 bitrate=
> 0.2kbits/
> frame=   54 fps=8.5 q=40.0 size=     256kB time=00:00:01.87
> bitrate=1117.3kbits/
> frame=   56 fps=7.9 q=40.0 size=     256kB time=00:00:01.87
> bitrate=1117.3kbits/
> frame=   58 fps=7.6 q=40.0 size=     512kB time=00:00:02.34
> bitrate=1787.5kbits/
> frame=   61 fps=7.4 q=40.0 size=     768kB time=00:00:02.34
> bitrate=2681.2kbits/
> frame=   63 fps=7.0 q=40.0 size=    1024kB time=00:00:02.34
> bitrate=3574.9kbits/
> frame=   66 fps=6.9 q=40.0 size=    1024kB time=00:00:02.34
> bitrate=3574.9kbits/
> frame=   68 fps=6.6 q=40.0 size=    1280kB time=00:00:02.34
> bitrate=4468.5kbits/
> frame=   71 fps=6.5 q=40.0 size=    1536kB time=00:00:02.83
> bitrate=4434.9kbits/
> frame=   73 fps=6.2 q=40.0 size=    1792kB time=00:00:02.83
> bitrate=5174.0kbits/
> frame=   75 fps=6.1 q=40.0 size=    1792kB time=00:00:02.83
> bitrate=5174.0kbits/
> frame=   75 fps=5.8 q=40.0 size=    1792kB time=00:00:02.85
> bitrate=5135.4kbits/
> frame=   75 fps=3.4 q=-1.0 Lsize=    5973kB time=00:00:03.00
> bitrate=16266.0kbit
> s/s speed=0.135x
> video:5923kB audio:47kB subtitle:0kB other streams:0kB global
> headers:0kB muxing
>   overhead: 0.051694%
> [libx264 @ 0000000000469040] frame I:1     Avg QP:37.81  size:101484
> [libx264 @ 0000000000469040] frame P:69    Avg QP:37.95  size: 81197
> [libx264 @ 0000000000469040] frame B:5     Avg QP:38.07  size: 72009
> [libx264 @ 0000000000469040] consecutive B-frames: 90.7%  0.0% 4.0%  5.3%
> [libx264 @ 0000000000469040] mb I  I16..4:  1.3% 80.2% 18.5%
> [libx264 @ 0000000000469040] mb P  I16..4:  0.1% 20.4%  1.9% P16..4:
> 37.0% 25.4
> % 14.6%  0.0%  0.0%    skip: 0.7%
> [libx264 @ 0000000000469040] mb B  I16..4:  0.1%  8.8%  0.2% B16..8:
> 51.2%  9.7
> %  2.4%  direct:22.6%  skip: 4.8%  L0:48.6% L1:47.4% BI: 4.0%
> [libx264 @ 0000000000469040] 8x8 transform intra:90.7% inter:51.3%
> [libx264 @ 0000000000469040] coded y,u,v intra: 90.9% 5.6% 17.9% inter:
> 63.0% 2.
> 1% 9.7%
> [libx264 @ 0000000000469040] i16 v,h,dc,p: 18% 20% 44% 18%
> [libx264 @ 0000000000469040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8%  7% 35%
> 9% 10%
>   7%  8%  7%  9%
> [libx264 @ 0000000000469040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 11% 32%
> 10% 10%
>   7%  8%  5%  6%
> [libx264 @ 0000000000469040] Weighted P-Frames: Y:0.0% UV:0.0%
> [libx264 @ 0000000000469040] ref P L0: 54.3% 23.4% 22.3%
> [libx264 @ 0000000000469040] ref B L0: 80.3% 15.9%  3.9%
> [libx264 @ 0000000000469040] ref B L1: 93.0%  7.0%
> [libx264 @ 0000000000469040] kb/s:16170.97
> [aac @ 0000000002b5a800] Qavg: 172.406
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://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