chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 582 forks source link

The video length keeps getting corrupted #1623

Open kgorinson opened 7 years ago

kgorinson commented 7 years ago

For example, I'm downloading a kitten video with the command:

livestreamer --hls-live-edge 99800 --hls-segment-threads 5 -o ~/Desktop/test123.ts https://www.youtube.com/watch?v=2xAoAHgVr3w best

I'm monitoring the length of the video with the commnd

ffmpeg -i $1 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//

00:24:10.01 00:26:10.01 00:28:25.01 ... 01:13:07.00 21:33:43.72

So it's fine until there's some sort of issue with the stream, in this case that happens after about an hour

here's a link to a ts recording with a messed up length. 21 hours when in actuality it's 1 hour and change. I have no idea how to get it back to normal.

https://www.dropbox.com/s/umh7s3kega42lbg/Mason0812.ts?dl=0

I can convert the file with Handbrake and it's fine but I'm looking for a way to fix the video length without converting.

https://www.dropbox.com/s/k7rk3axqvg4ta8y/Mason0812%201.mp4?dl=0

cdrage commented 7 years ago

Hi, please use https://github.com/streamlink/streamlink as Livestreamer has been abandoned by @chrippa

No amount of talking to him (his twitter / email / work) has amount to any communication to the community.