Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ request: how to repair a "raw" hls (live)stream #26540

Open
ke352802081770314 opened this issue Sep 7, 2020 · 2 comments
Open

FAQ request: how to repair a "raw" hls (live)stream #26540

ke352802081770314 opened this issue Sep 7, 2020 · 2 comments
Labels

Comments

@ke352802081770314
Copy link

@ke352802081770314 ke352802081770314 commented Sep 7, 2020

Checklist

  • [ x] I'm asking a question
  • [ x] I've looked through the README and FAQ for similar questions
  • [ x] I've searched the bugtracker for similar questions including closed ones

Question

Unfortunately I didn't find this issue covered in the FAQ and searching open and closed bugs for some keywords diodn't result in relevant content, google searching neither. I am sure it happens to people every now and then, so I think it is worth addressing. Thank you for your consideration.

I captured a livestream from twitch.com and unfortunately the process terminated ungracefully, so the "fixing" which is done when pressing Ctrl-C or when the livestream finishes didn't happen. Now I have a .mp4 file, presumably containing HLS slices, which is not understood by the player (I use MPlayer 1.4 from mplayerhq.hu, via the debian-multimedia package).
Can the file be "repaired" or is the captured content lost?
I guess I should have used --hls-use-mpegts but I didn't.

@ke352802081770314
Copy link
Author

@ke352802081770314 ke352802081770314 commented Sep 7, 2020

What I actually did,. based on web search results, was timeout -s INT 65m youtube-dl -q -f "best[height<=720]" https://www.twitch.tv/SOMECHANNEL because I expected to not be there to stop the stream and the livestream continued for several hours, but then I was there and pressed Ctrl-C at the actual end of the segment I wanted, and timeout when receiving Ctrl-C apparently killed the youtube-dl fiercely not allowing it to shut down properly.
If there is a preferred method to achieve a time limit/maximum duration for a livestream grab, this would also be a good FAQ item, since youtube-dl does not have such an option (like ffmpeg -t) as far as I can see.

@blackjack4494
Copy link

@blackjack4494 blackjack4494 commented Sep 7, 2020

ffmpeg should be able to help here or some video editing software (maybe davinci resolve or so)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.