[FFmpeg-user] Cannot skip initial bytes of a file

Fang Yong wscanf at 126.com
Mon Dec 19 10:45:53 EET 2016


My video file have some initial bytes for my own file header. I try to play it with ffplay using the -skip_initial_bytes option. But it does not work.Here is the detail.

Did I use this option correctlly? or should I increase probesize?

➜  Downloads $ffmpeg -skip_initial_bytes 8 -i cache.output.mp4
ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-ffplay --disable-lzma --enable-vda
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd865800000] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[h264 @ 0x7fd865001000] Invalid nal size 159290
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 511590222
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -391050801
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1224072330
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 32381148
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 248906135
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 537612480
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 620581924
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1102680866
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 308369572
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1257709459
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -355472042
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1656963695
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1806751098
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1720016505
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1424389612
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -938718578
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1828105194
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 2060392767
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 422636247
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1689107192
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1106058329
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 458162881
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1692419039
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1540267551
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -372081251
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 955407506
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1079775041
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 808862211
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -985818671
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1467437711
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 54684121
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1730688408
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -289305377
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1387239564
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 225075851
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1559738940
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -662869797
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1171762705
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 319025987
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -350143502
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -261677640
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1681415403
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1758724489
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -2071357923
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1709921542
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1738172466
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1120341744
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1527908514
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1763119797
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1276352169
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 818067673
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 249320565
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 2032312955
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -578534875
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1395232334
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 455106853
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 914832508
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1618381079
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -490283222
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 116612493
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -234995184
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1370435826
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1585559534
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1642844359
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 103588890
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -245814915
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1843549083
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1458850179
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1921915774
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1360989425
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1586393244
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -128420269
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 33828559
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 372551634
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 781092671
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1492452836
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1119686364
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1434675042
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -151803150
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1178411496
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -309124191
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 418048181
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 784122301
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -560519404
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1341006703
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1811456906
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1009479109
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -19496868
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -2121718991
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 49142104
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -619924201
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -2063742288
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 712176185
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -1515856200
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 2144887763
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 965499340
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size -2095131681
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 151058157
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[h264 @ 0x7fd865001000] Invalid nal size 1154573945
[h264 @ 0x7fd865001000] Error splitting the input into NAL units.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd865800000] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd865800000] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 326x224, 149 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cache.output.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.41.100
  Duration: 00:00:08.50, start: 0.000000, bitrate: 152 kb/s
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 326x224, 149 kb/s, 20 fps, 20 tbr, 10240 tbn, 20480 tbc (default)
    Metadata:
      handler_name    : VideoHandler
At least one output file must be specified
➜  Downloads


More information about the ffmpeg-user mailing list