[FFmpeg-user] segment muxer deprecation warning: "Timestamps are unset in a packet for stream 0"

Peter B. pb at das-werkstatt.com
Mon Mar 22 14:05:29 EET 2021


Hi everyone!

I'm using FFmpeg's segment muxer to split MPEG-TS recordings.

It works as expected, but I get the following deprecation warning:

------------------
[segment @ 0x55bfa3c540c0] Timestamps are unset in a packet for stream 
0. This is deprecated and will stop working in the future. Fix your code 
to set the timestamps properly
------------------

Whom is this warning for, and which "code" needs to be changed "to set 
the timestamps properly"?



Any information is greatly appreciated :)
Thanks in advance!
Peter B.


FFmpeg commandline and complete uncut console output:

------------------
$ ffmpeg-git -i orf1.ts -c copy -map 0 -copy_unknown -f segment 
-segment_time 85 out/orf1-%02d.ts

ffmpeg version N-101663-g7b10083933 Copyright (c) 2000-2021 the FFmpeg 
developers
   built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
   configuration: --prefix=/usr/local --enable-gpl --enable-nonfree 
--enable-version3 --enable-postproc --enable-ffplay --enable-swscale 
--enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib 
--enable-decoder=png --enable-encoder=png --enable-openssl 
--samples=../fate-suite --enable-libfreetype --enable-libopenjpeg 
--disable-decoder=jpeg2000 --enable-libvpx --enable-libvorbis 
--enable-libx264 --enable-libx265
   libavutil      56. 71.100 / 56. 71.100
   libavcodec     58.135.100 / 58.135.100
   libavformat    58. 77.100 / 58. 77.100
   libavdevice    58. 14.100 / 58. 14.100
   libavfilter     7.111.100 /  7.111.100
   libswscale      5. 10.100 /  5. 10.100
   libswresample   3. 10.100 /  3. 10.100
   libpostproc    55. 10.100 / 55. 10.100
[h264 @ 0x55bfa306d7c0] sps_id 0 out of range
[h264 @ 0x55bfa306d7c0] non-existing PPS 1 referenced
[h264 @ 0x55bfa306d7c0] sps_id 0 out of range
[h264 @ 0x55bfa306d7c0] non-existing PPS 1 referenced
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 1 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 1 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] sps_id 0 out of range
[h264 @ 0x55bfa306d7c0] non-existing PPS 2 referenced
[h264 @ 0x55bfa306d7c0] sps_id 0 out of range
[h264 @ 0x55bfa306d7c0] non-existing PPS 2 referenced
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 1 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 1 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 2 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 2 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 2 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 1 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[h264 @ 0x55bfa306d7c0] non-existing PPS 2 referenced
     Last message repeated 1 times
[h264 @ 0x55bfa306d7c0] decode_slice_header error
[h264 @ 0x55bfa306d7c0] no frame!
[mpegts @ 0x55bfa30422c0] start time for stream 0 is not set in 
estimate_timings_from_pts
[mpegts @ 0x55bfa30422c0] PES packet size mismatch
[mpegts @ 0x55bfa30422c0] Packet corrupt (stream = 2, dts = 7568052582).
[mpegts @ 0x55bfa30422c0] PES packet size mismatch
[mpegts @ 0x55bfa30422c0] Packet corrupt (stream = 3, dts = 7568049704).
[mpegts @ 0x55bfa30422c0] PES packet size mismatch
[mpegts @ 0x55bfa30422c0] Packet corrupt (stream = 4, dts = 7568057277).
[mpegts @ 0x55bfa30422c0] Could not find codec parameters for stream 5 
(Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 
'probesize' (5000000) options
[mpegts @ 0x55bfa30422c0] Could not find codec parameters for stream 6 
(Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 
'probesize' (5000000) options
[mpegts @ 0x55bfa30422c0] Could not find codec parameters for stream 7 
(Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 
'probesize' (5000000) options
Input #0, mpegts, from '20201210-VUBox/orf1.ts':
   Duration: 00:10:00.49, start: 83489.793133, bitrate: 9945 kb/s
   Program 5001
   Stream #0:1[0x7d1]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 
tbr, 90k tbn, 100 tbc
   Stream #0:2[0x7f9](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 
Hz, 5.1(side), fltp, 448 kb/s
   Stream #0:3[0x7fa](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 
Hz, 5.1(side), fltp, 448 kb/s
   Stream #0:4[0x835](ger,ger,ger): Subtitle: dvb_teletext ([6][0][0][0] 
/ 0x0006)
   Stream #0:5[0x1c8e]: Unknown: none ([5][0][0][0] / 0x0005)
   Stream #0:6[0x1c8f]: Unknown: none ([11][0][0][0] / 0x000B)
   Stream #0:7[0x1f41]: Unknown: none ([5][0][0][0] / 0x0005)
   Program 5003
   Program 5005
   Program 5006
   Program 5002
   Program 5101
   Program 5004
   Program 5007
   No Program
   Stream #0:0[0x12]: Data: epg
[segment @ 0x55bfa3c540c0] Opening 'out/orf1-00.ts' for writing
Output #0, segment, to 'out/orf1-%02d.ts':
   Metadata:
     encoder         : Lavf58.77.100
   Stream #0:0: Data: epg
   Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, 
bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 
tbr, 90k tbn, 50 tbc
   Stream #0:2(deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 
5.1(side), fltp, 448 kb/s
   Stream #0:3(eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 
5.1(side), fltp, 448 kb/s
   Stream #0:4(ger,ger,ger): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
   Stream #0:5: Unknown: none ([5][0][0][0] / 0x0005)
   Stream #0:6: Unknown: none ([11][0][0][0] / 0x000B)
   Stream #0:7: Unknown: none ([5][0][0][0] / 0x0005)
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
   Stream #0:2 -> #0:2 (copy)
   Stream #0:3 -> #0:3 (copy)
   Stream #0:4 -> #0:4 (copy)
   Stream #0:5 -> #0:5 (copy)
   Stream #0:6 -> #0:6 (copy)
   Stream #0:7 -> #0:7 (copy)
Press [q] to stop, [?] for help
[segment @ 0x55bfa3c540c0] Timestamps are unset in a packet for stream 
0. This is deprecated and will stop working in the future. Fix your code 
to set the timestamps properly
[mpegts @ 0x55bfa3b7a480] Stream 0, codec epg, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3b7a480] Stream 5, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3b7a480] Stream 6, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3b7a480] Stream 7, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[segment @ 0x55bfa3c540c0] Opening 'out/orf1-01.ts' for writingA speed= 
103x
[mpegts @ 0x55bfa3a27500] Stream 0, codec epg, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3a27500] Stream 5, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3a27500] Stream 6, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3a27500] Stream 7, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[segment @ 0x55bfa3c540c0] Opening 'out/orf1-02.ts' for writing/A 
speed=51.4x
[mpegts @ 0x55bfa3de0c40] Stream 0, codec epg, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3de0c40] Stream 5, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3de0c40] Stream 6, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3de0c40] Stream 7, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[segment @ 0x55bfa3c540c0] Opening 'out/orf1-03.ts' for writing/A 
speed=48.4x
[mpegts @ 0x55bfa3de0c40] Stream 0, codec epg, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3de0c40] Stream 5, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3de0c40] Stream 6, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3de0c40] Stream 7, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[segment @ 0x55bfa3c540c0] Opening 'out/orf1-04.ts' for writing/A 
speed=  47x
[mpegts @ 0x55bfa3a60880] Stream 0, codec epg, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3a60880] Stream 5, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3a60880] Stream 6, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3a60880] Stream 7, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[segment @ 0x55bfa3c540c0] Opening 'out/orf1-05.ts' for writing/A 
speed=46.6x
[mpegts @ 0x55bfa3298b00] Stream 0, codec epg, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3298b00] Stream 5, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3298b00] Stream 6, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3298b00] Stream 7, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[segment @ 0x55bfa3c540c0] Opening 'out/orf1-06.ts' for writing/A 
speed=46.2x
[mpegts @ 0x55bfa3890bc0] Stream 0, codec epg, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3890bc0] Stream 5, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3890bc0] Stream 6, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3890bc0] Stream 7, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa30422c0] PES packet size mismatch.29 bitrate=N/A 
speed=45.2x
[mpegts @ 0x55bfa30422c0] Packet corrupt (stream = 2, dts = 7568052582).
[mpegts @ 0x55bfa30422c0] PES packet size mismatch
[mpegts @ 0x55bfa30422c0] Packet corrupt (stream = 3, dts = 7568049704).
[mpegts @ 0x55bfa30422c0] PES packet size mismatch
[mpegts @ 0x55bfa30422c0] Packet corrupt (stream = 4, dts = 7568057277).
20201210-VUBox/orf1.ts: corrupt input packet in stream 4
[segment @ 0x55bfa3c540c0] Opening 'out/orf1-07.ts' for writing
[mpegts @ 0x55bfa3890bc0] Stream 0, codec epg, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3890bc0] Stream 5, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3890bc0] Stream 6, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
[mpegts @ 0x55bfa3890bc0] Stream 7, codec none, is muxed as a private 
data stream and may not be recognized upon reading.
frame=29973 fps=2145 q=-1.0 Lsize=N/A time=00:10:00.41 bitrate=N/A 
speed=  43x
video:536507kB audio:65593kB subtitle:20236kB other streams:59385kB 
global headers:0kB muxing overhead: unknown


More information about the ffmpeg-user mailing list