selsta / hlsdl

C program to download VoD HLS (.m3u8) files
MIT License
636 stars 158 forks source link

Fallback to different playlist for bad segments #94

Closed vivook closed 3 years ago

vivook commented 3 years ago

I try to download a video. Playlist file contain URLs for 2 resolutions. But I can't get all segments for any playlist from server. I think best thing is if hlsdl try to use one playlist, but if it gets 403 or 404 for segment, retry same segment from other playlist. Maybe use ffmpeg to create final output video at main resolution? Or maybe add option to download each segment with metadata and I can rebuild video file?

vivook commented 3 years ago

Done with my PR