Opened 4 years ago
Last modified 4 years ago
#8739 new defect
HLS playlist version 4
Reported by: | krs_vital | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
i have a command that generates 2 hls streams:
/usr/local/bin/ffmpeg -dts_delta_threshold 3600 -err_detect ignore_err -rtpflags +skip_rtcp+h264_mode0 -rtsp_flags +prefer_tcp -rtsp_transport tcp -i rtsp://172.17.201.29:554/h264_2 -y -sn -dn -hls_time 6 -map 0:v -ignore_unknown -strict -2 -use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename /store/records/97hYJ/%Y/%m/%d/%H/%s.ts -f hls -vcodec copy -acodec copy /hls/tmp/97hYJ.m3u8 -map 0:v -f hls -hls_wrap 10 -hls_time 1 -hls_segment_size 4 -hls_flags +delete_segments+split_by_time -hls_segment_filename /hls/live/97hYJ/%d.ts -vcodec copy -acodec copy /hls/live/97hYJ/index.m3u8
cat ./index.m3u8
#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:1
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:0.993378,
#EXT-X-BYTERANGE:314336@0
2.ts
#EXTINF:1.006900,
#EXT-X-BYTERANGE:250228@0
3.ts
#EXTINF:0.982967,
#EXT-X-BYTERANGE:311892@0
4.ts
#EXTINF:1.003689,
#EXT-X-BYTERANGE:244212@0
5.ts
#EXTINF:0.996233,
#EXT-X-BYTERANGE:305312@0
6.ts
first stream playlist generating with version 3 format, but second stream generating playlist with version 4, why? how can i force change to version 3?
hls.js player doesn support version 4
with version 4 #EXT-X-MEDIA-SEQUENCE: doesnt change ant allways set to 0
Change History (5)
comment:1 by , 4 years ago
follow-up: 3 comment:2 by , 4 years ago
i dont understand why #EXT-X-MEDIA-SEQUENCE doesn't have to change in version 4
ffmpeg set tag #EXT-X-MEDIA-SEQUENCE to 0 allways while segments are constantly changing, why????
comment:3 by , 4 years ago
Replying to krs_vital:
i dont understand why #EXT-X-MEDIA-SEQUENCE doesn't have to change in version 4
ffmpeg set tag #EXT-X-MEDIA-SEQUENCE to 0 allways while segments are constantly changing, why????
Your made two issue in one ticket, this is the second problem, and i found a new problem when use hls_segment_size, all of the problems are happened in hls_segment_size mode.
follow-up: 5 comment:4 by , 4 years ago
Will you plans to suppurt apple LHLS? #8742 closed with no answer...
Replying to krs_vital:
Looks you have used the BYTERANGE mode. The first dose not use BYTERANGE mode.
reference link about the BYTERANGE with version tag description:
https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-7