Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Propper method to stop recording of finished live stream from youtube #21085
Comments
|
Live streams are handled by ffmpeg, address this to them. |
I would like to ask you about the propper method to stop recording of live stream from youtube.
I am downloading live stream from youtube with simple command:
youtube-dl.exe -o "D:\stream.mp4" "https://www.youtube.com/watch?v=sVMRgZQfsSM"When the stream is finished (stream is no more available on youtube) in console I have something like this:
It is reapating about trying to download "seg.ts" and "index.m3u8" for reading.
It takes forever to repeat.
Then when I try to stop recording whith CTRL+C (pressed one time) I get:
...and the file it produces is unusable cannot be played by any video player.
How should I stop recording of live stream when it is finished? It does not stop by itself and CTRL+C method does not work for me.
When I stop recording with CTRL+C during the stream goes on everything is fine. The output file is just OK.
Problem is present with all versions of youtube-dl I have been using from old ones to the current release.
I saw issue #15717 but on my Windows 7 pressing CTRL+C one time does not wark as intended.
Can you please show me the propper method to stop recording of finished live stream from youtube or how to make it to stop automaticaly when it is finished.