[FFmpeg-user] Problem with TS file

Gabriele Greco gabriele.greco at wyscout.com
Tue Feb 11 15:12:39 EET 2020


>
> And with a closer look at your ffprobe console output, we see this
> relevant error:
> > [mpegts @ 0x7ff544004a00] Could not find codec parameters for stream 0
> (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
> > Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
>

Sorry about not pasting the log, thought that the one of ffprobe was enough
to understand the problem...

So the problem are the default values for probesize and analyzeduration.

probesize defaults to 500k, analyze duration to 5 secs. I think I can
easily raise those values in my pipeline without big size effects, except
for a small delay...

but, also when the decoder find the format hints it needs, it seems that
the file misses something:

shelob-2 $ ./ffmpeg -analyzeduration 2000000000 -probesize 25000000 -i
~/Desktop/WORK_FXSC_01_20200208_Y-FMvsKOBE.ts -c copy test.mkv
ffmpeg version N-96711-gdd81f73946 Copyright (c) 2000-2020 the FFmpeg
developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --disable-videotoolbox --disable-audiotoolbox
--enable-libx264 --enable-libfdk-aac --enable-nonfree --enable-gpl
  libavutil      56. 39.100 / 56. 39.100
  libavcodec     58. 68.100 / 58. 68.100
  libavformat    58. 38.100 / 58. 38.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 75.100 /  7. 75.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[h264 @ 0x7f9b6d80d000] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7f9b6d80d000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f9b6d80d000] non-existing PPS 0 referenced
[h264 @ 0x7f9b6d80d000] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7f9b6d80d000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f9b6d80d000] non-existing PPS 0 referenced
[h264 @ 0x7f9b6d80d000] decode_slice_header error
[h264 @ 0x7f9b6d80d000] no frame!
[h264 @ 0x7f9b6d80d000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f9b6d80d000] non-existing PPS 0 referenced
[h264 @ 0x7f9b6d80d000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f9b6d80d000] non-existing PPS 0 referenced
[h264 @ 0x7f9b6d80d000] decode_slice_header error
[h264 @ 0x7f9b6d80d000] no frame!
[h264 @ 0x7f9b6d80d000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f9b6d80d000] non-existing PPS 0 referenced
[h264 @ 0x7f9b6d80d000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f9b6d80d000] non-existing PPS 0 referenced
[h264 @ 0x7f9b6d80d000] decode_slice_header error
[h264 @ 0x7f9b6d80d000] no frame!
[....]
    Last message repeated 7 times
Input #0, mpegts, from
'/Users/gabry/Desktop/WORK_FXSC_01_20200208_Y-FMvsKOBE.ts':
  Duration: 02:25:38.63, start: 1.400000, bitrate: 6775 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97
tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F),
48000 Hz, stereo, fltp, 256 kb/s
Output #0, matroska, to 'test.mkv':
  Metadata:
    encoder         : Lavf58.38.100
    Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(tv,
progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr,
1k tbn, 90k tbc
    Stream #0:1(eng): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz,
stereo, fltp, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x7f9b6d80d000] non-existing PPS 1 referenced
    Last message repeated 13 times
[NULL @ 0x7f9b6d80d000] non-existing PPS 1 referenced:25.01
bitrate=6166.7kbits/s speed= 170x
    Last message repeated 13 times
[NULL @ 0x7f9b6d80d000] non-existing PPS 1 referenced3:00.22
bitrate=6248.9kbits/s speed= 180x
[NULL @ 0x7f9b6d80d000] non-existing PPS 1 referenced4:33.80
bitrate=6226.9kbits/s speed= 182x
    Last message repeated 1 times
[NULL @ 0x7f9b6d80d000] non-existing PPS 1 referenced6:06.39
bitrate=6250.3kbits/s speed= 183x
    Last message repeated 1 times
[NULL @ 0x7f9b6d80d000] non-existing PPS 1 referenced7:32.92
bitrate=6250.8kbits/s speed= 179x
    Last message repeated 8 times
[NULL @ 0x7f9b6d80d000] non-existing PPS 1 referenced9:11.98
bitrate=6242.2kbits/s speed= 180x

... so I'm still worrying if the source file is correct (I do not like all
those missing picture parameter set references). We are gonna receive a lot
of similar files from a (paid) video supplier, so if the format is somewhat
broken I have to make them fix it.


> > any attachments) shall be considered confidential and/or privileged
> > material and meant to be only for the abovementioned persons and/or
> We will have you arrested for sharing your information here! ;-)
>

... sadly that footer is added AFTER i send my mails, so I have no way to
remove it, it's a stupid company policy.

-- 



*Bye, Gabry*

-- 


Le informazioni contenute nella presente comunicazione e i relativi 
allegati possono essere riservate e sono, comunque, destinate 
esclusivamente alle persone o alla Società sopraindicati e non sono da 
considerarsi comunicazioni personali, quindi eventuali risposte potranno 
essere conosciute da persone appartenenti all’azienda. La diffusione, 
distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi 
soggetto diverso dal destinatario è proibita ai sensi dell’art. 616 c.p. I 
dati forniti verranno trattati ai sensi dell'art. 13 del Regolamento UE 
2016/679 (normativa sulla privacy). Se ha ricevuto questo messaggio per 
errore Ti preghiamo di distruggerlo e di informarci immediatamente 
contattandoci mandando una mail a privacy at wyscout.com 
<mailto:privacy at wyscout.com>. Copia integrale dell’informativa potrà essere 
visionata presso le nostre sedi. 

Any information herein included (even 
any attachments) shall be considered confidential and/or privileged 
material and meant to be only for the abovementioned persons and/or 
Company, therefore such communication is intended to be for the addressee 
only. Such information is not personal, that is why this e-mail and any 
replies may be known exclusively by people belonging to the company. It is 
expressively not allowed communicate, disclose and/or copy any 
documentation transmitted by a person other than the recipient, according 
to the Italian Criminal Code, Section 616 and the Regulation EU 2016/679. 
Your provided data are processed in accordance with Regulation EU 2016/679 
(Data Protection Law), Section 13. A full copy of the relevant information 
notice is available at the company’s registered office upon request. If you 
received this in error, please destroy it and inform us immediately by 
sending an e-mail to the following e-mail address privacy at wyscout.com 
<mailto:privacy at wyscout.com>. A full copy of the relevant information 
notice is available at the company’s registered office upon request.


More information about the ffmpeg-user mailing list