View Single Post
  #16  
Old 09-30-2014, 06:24 PM
BlueCop BlueCop is offline
Member
 
Join Date: May 2011
Posts: 44
BlueCop is on a distinguished road
Default

Re: How can I save this stream ?


here is a shell script I found that can save the itunes festival streams.

https://gist.github.com/TheMooseHut/...2c4fd0966babd9

I wrote a little script to generate chapter marks from song changes in file names. I also took the setlist to add the song titles for chapter marks. I have them for several shows. I adjusted them because some cut in the middle of speech, little too early or late. if anyone is interested.

here is one for pharrell. http://pastebin.com/Va8RpREi
if you save that as pharrellwilliams.txt
you can add the chapter marks with this command.
Quote:
ffmpeg -i pharrellwilliams.ts -f ffmetadata -i pharrellwilliams.txt -c copy pharrellwilliams.mkv
if shouldn't matter the input format but the output would need chapter support(ex. mkv).

the raw ts stream has some kind of timed id3 meta data. I haven't been able to find anything to parse these tags. If you download with ffmpeg then they are auto-stripped anyway though. I was hoping these would be song titles and/or timecodes. I am not sure.

The song number change in the file titles and the segment duration in the m3u8 is enough to calculate the chapter points though
Reply With Quote