Opened 2 months ago

Closed 2 months ago

Last modified 2 months ago

#7434 closed defect (invalid)

Timestamps are unset in a packet for stream 0. Deprecated?

Reported by: barhom Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

timeout 7s multicat -uU @239.200.19.244:3301 input.ts
This input.ts is recorded from satellite from a channel called "ERI TV" being broadcasted on Nilesat. I do not control the source.

I am trying to segment this channel by the following

ffmpeg -i udp://239.200.19.244:3301 -c copy -f hls /tmp/removeme/playlist.m3u8

The HLS segmenter runs fine and produces segments being written to /tmp/removeme/.
The problem is that the playlist.m3u8 EXTINF data contains wrong information about the segments

cat playlist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:0
#EXT-X-MEDIA-SEQUENCE:43
#EXTINF:0.320000,
playlist43.ts
#EXTINF:0.320000,
playlist44.ts
#EXTINF:0.320000,
playlist45.ts
#EXTINF:0.320000,
playlist46.ts
#EXTINF:0.400000,
playlist47.ts

The segment-length should be a few seconds, not 0.32s to 0.4s as is shown above.

The problem probably has something to do with that ffmpeg outputs the following error message

[hls @ 0x55a762d467c0] 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 @ 0x55a762d16a40] 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}}}


I found that a temporary fix would be to include -fflags +genpts.
Is this to be recommended? What is the downside of my doing -fflags +genpts on all my segmentation?
Should this work without +genpts?

Thanks for the response. input.ts is attached

Attachments (1)

input.ts (1.8 MB) - added by barhom 2 months ago.
ERI TV

Download all attachments as: .zip

Change History (3)

Changed 2 months ago by barhom

ERI TV

comment:1 follow-up: Changed 2 months ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed

-fflags +genpts is the correct work-around.
Please understand that this is a bug tracker, please post all usage questions on the user mailing list.

comment:2 in reply to: ↑ 1 Changed 2 months ago by barhom

Replying to cehoyos:

-fflags +genpts is the correct work-around.
Please understand that this is a bug tracker, please post all usage questions on the user mailing list.

This bug report was never meant to be considered a question. I know very well to email the mailing list.
This was to be considered to check the input.ts to see ffmpeg is unable to read the timestamps from the input.ts so that -fflags +genpts is not required.

Note: See TracTickets for help on using tickets.