FFMPEG HLS Streaming: Older segment program date time also changing in playlist.m3u8 when re-streaming after discontinuity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FFMPEG HLS Streaming: Older segment program date time also changing in playlist.m3u8 when re-streaming after discontinuity

FFmpeg-users mailing list
Hi,

Following is the ffmpeg command used to stream the data.

ffmpeg -re -f avfoundation
-framerate 30 -i 0
-codec:v h264_videotoolbox -x264-params keyint=120:scenecut=0
-codec:a copy -f hls
-hls_list_size 60
-hls_time 10
-hls_flags delete_segments
-hls_flags +append_list
-hls_flags +discont_start
-hls_flags +program_date_time
-strftime 1
-strftime_mkdir 1
-hls_segment_filename
'%Y%m%dT%H%M%S%z.ts' playlist.m3u8

Following is the playlist.m3u8 content which generated for few seconds.


#EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:0

#EXT-X-DISCONTINUITY

#EXT-X-DISCONTINUITY

#EXTINF:10.000000,

#EXT-X-PROGRAM-DATE-TIME:2020-11-09T22:07:53.000+0530

20201109T220753+0530.ts

#EXTINF:10.000000,

#EXT-X-PROGRAM-DATE-TIME:2020-11-09T22:08:03.000+0530

20201109T220803+0530.ts

#EXT-X-ENDLIST

When the re-stream happens(in case of restarting the streaming service), the program date time of older segments(before #EXT-X-DISCONTINUITY) also get changed like below which is unexpected.


#EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:0

#EXT-X-DISCONTINUITY

#EXT-X-DISCONTINUITY

#EXTINF:10.000000,

#EXT-X-PROGRAM-DATE-TIME:2020-11-09T22:12:50.633+0530

20201109T220753+0530.ts

#EXTINF:10.000000,

#EXT-X-PROGRAM-DATE-TIME:2020-11-09T22:13:00.633+0530

20201109T220803+0530.ts

#EXT-X-DISCONTINUITY

#EXTINF:10.000000,

#EXT-X-PROGRAM-DATE-TIME:2020-11-09T22:13:12.000+0530

20201109T221312+0530.ts

#EXTINF:5.400000,

#EXT-X-PROGRAM-DATE-TIME:2020-11-09T22:13:22.000+0530

20201109T221322+0530.ts

#EXT-X-ENDLIST

Why the program date time of older segment should change? Should we add any arguments explicitly in ffmpeg command to handle this?

Regards,
Suriya V.










[cid:Redflex_6b470a42-cafa-498a-b934-6f5c1c549a62.jpg]<http://www.redflex.com/>


Suriya Velusamy | Software Engineer | Product Engineering | Redflex Group
E [hidden email]<mailto:[hidden email]>
4/293, Old Mahabalipuram Road, Perungudi, Chennai Tamil Nadu 600096, India

www.redflex.com<http://www.redflex.com>


Confidentiality Note: This e-mail, and any attachment to it, is intended only for the use of the individual(s) or entity named on the e-mail, and may contain confidential or proprietary information (including copyrighted materials). If the reader is not an authorized recipient, you are hereby notified that reading it or further distributing it (other than to the author or the intended recipient) is prohibited and is potentially an infringement of the rights of the sender or intended recipient. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system. Thank you.






_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".