Opened 12 years ago

Last modified 9 years ago

#1199 open enhancement

Playlist support

Reported by: burek Owned by:
Priority: wish Component: avformat
Version: git-master Keywords:
Cc: nfxjfg@googlemail.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Would it be too difficult to add the playlist support in FFmpeg in such way that it would help replace using "for", "while" and other loops, in batch scripts? Here is an example of possible implementation:

ffmpeg -f playlist -i list.m3u -acodec copy -vcodec copy -f mp4 %1.new.mp4

This would have an effect of looping through the entire list.m3u file, reading each file from the playlist and remuxing it into mp4 format, saving it to a new file name, using a file name pattern (just like -f image2 does with "img%03d.png"), where %1 might represent the original file name.

I'm willing to make a patch for this enhancement, I just need a little push in the right direction. Which files should I look at, to edit them? I'll try to write it and submit the patch here.

This enhancement could also be used with ffplay, to play a playlist instead of one file.

Change History (7)

comment:1 by Roger Pack, 12 years ago

I presume this was never implemented (yet)? I.e. ffmpeg *shouldn't* yet work for
$ ffplay -i http://audio-ogg.ibiblio.org:8000/wcpe.ogg.m3u
?

(for followers, in the meantime you can just parse m3u files manually: http://ffmpeg.gusari.org/viewtopic.php?f=12&t=614)

Last edited 12 years ago by Roger Pack (previous) (diff)

comment:2 by Elon Musk, 11 years ago

Component: undeterminedavformat
Status: newopen
Version: unspecifiedgit-master

in reply to:  description comment:3 by Carl Eugen Hoyos, 11 years ago

Replying to burek:

This enhancement could also be used with ffplay, to play a playlist instead of one file.

Doesn't this work with the concat demuxer?

comment:4 by Elon Musk, 11 years ago

Playlist syntax (not just for m3u but for pls and others is different) and concat
demuxer added probing for different signature from m3u8, but code from concat could be used/base for playlist "demuxers"

comment:5 by Carl Eugen Hoyos, 10 years ago

Example stream from ticket #3612:
http://fmhanako.jp/radio/824.asx

comment:6 by MB, 9 years ago

Would be really useful to have this feature for .m3u, .pls and .asx.

comment:7 by gjdfgh, 9 years ago

Cc: nfxjfg@googlemail.com added

There is a very old Libav branch that adds playlist support: http://git.khirnov.net/cgit.cgi/libav/log/?h=playlists

Please discuss this with elenril on #libav-devel. (And be civil. Anyone discussing ffmpeg vs. libav here please fuck off.)

Note: See TracTickets for help on using tickets.