Ticket #2273 (open enhancement)
no option to set file name format inside the generated m3u8 file
| Reported by: | mpapp | Owned by: | |
|---|---|---|---|
| Priority: | wish | Component: | avformat |
| Version: | git-master | Keywords: | segment m3u8 |
| Cc: | daniele@… | Blocked By: | |
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | yes |
Description
Summary of the bug:
How to reproduce:
This is relevant when using segment option in ffmpeg I cannot see such option For vlc, there is an option ,index-url=http://37.188.125.31/demo/medium-########.ts} which specifies in what format the filenames are saved inside the m3u8. I am sorry if I missed it.
Change History
comment:1 in reply to: ↑ description Changed 3 months ago by saste
- Status changed from new to open
- Reproduced by developer set
- Component changed from FFmpeg to avformat
- Keywords segment m3u8 added
- Version changed from unspecified to git-master
- Analyzed by developer set
- Type changed from defect to enhancement
comment:2 Changed 3 months ago by mpapp
yes, a -segment_list_prefix " http://37.188.125.31/demo/"
if that means this.e.g.
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10,
http://37.188.125.31/demo/demo-high-medium-00000001.ts
#EXTINF:10,
http://37.188.125.31/demo/demo-high-medium-00000002.ts
#EXTINF:10,
http://37.188.125.31/demo/demo-high-medium-00000003.ts
#EXTINF:10,
http://37.188.125.31/demo/demo-high-medium-00000004.ts
#EXTINF:10,
http://37.188.125.31/demo/demo-high-medium-00000005.ts
#EXTINF:10,
http://37.188.125.31/demo/demo-high-medium-00000006.ts
#EXTINF:10,
http://37.188.125.31/demo/demo-high-medium-00000007.ts
#EXT-X-ENDLIST
which would replace any directory prefix deduced from medium-%03d.ts
There is a practical reason , of course.
OK, supposed you want to generate m3u8 for web use.
Then the filenames inside in m3u8 should be referenced someone differently using http... way.
Some video players like it this way. (E.g. IPhone) So if you want to serve the net, you need this.
It would be useful not only for http requests but I want to use different way of referencing files.
E.g. if I use use full path e.g. /root/video/medium-%03d.ts, then the files will also contain /root/video... prefix as it is implemented right now.
-segment_list_prefix "" would remove those prefixes...



Replying to mpapp:
Your request is not clear. I suppose you want an option like:
Correct?
Or do you want the name in the M3U8 to be *different* from the segment filename (not only the prefix)?
Can you elaborate what this would be useful for?