Page 1 of 1
Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 12:33 pm
by Bosse_B
I am currently using a Windows application in order to download video from play services like SVTplay and others.
I would rather like to be able to let the Pi itself download the mp4 file to its disk than processing it on Windows first.
Is that possible? I know that the Windows application uses ffmpeg in the background but I have no idea how it is done.
The best solution would be to have a command line interface (so I can do it while remotely logged on via SSH) and supply an URL to some function that finds the stream on the page and downloads it.
Maybe there are already Debian programs that can do this and can be run on a Pi?
Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 1:33 pm
by fruitoftheloom
Bosse_B wrote:I am currently using a Windows application in order to download video from play services like SVTplay and others.
I would rather like to be able to let the Pi itself download the mp4 file to its disk than processing it on Windows first.
Is that possible? I know that the Windows application uses ffmpeg in the background but I have no idea how it is done.
The best solution would be to have a command line interface (so I can do it while remotely logged on via SSH) and supply an URL to some function that finds the stream on the page and downloads it.
Maybe there are already Debian programs that can do this and can be run on a Pi?

youtube-dl
https://rg3.github.io/youtube-dl/supportedsites.html
https://rg3.github.io/youtube-dl
Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 3:38 pm
by Bosse_B
Well,
youtube is not the main source of the childrens programs I want to "record"...
I need something that works on play sites like SVTPlay etc where one can navigate to a specific program and then start playback in the browser window. What I want is some way to catch the streamed video to disk.
THe Windows application works like this:
- Navigate in the browser to the page with the play button on
- Copy the URL
- Paste it into the box in the Windows application and hit "Get"
- Now that page is analyzed to find the actual stream and possibly also the subtitles link
- Hit "Download" and the application retrieves the video stream and the subtitle file
I would like to have a native Pi program that can be commanded via the command line (no GUI).
Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 3:48 pm
by gkreidl
That's exactly how youtube-dl works. But I don't know if that website is supported.
Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 3:50 pm
by DirkS
gkreidl wrote:That's exactly how youtube-dl works. But I don't know if that website is supported.
SVTPlay is in the list that FotL links to in his post...
Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 3:53 pm
by fruitoftheloom
Bosse_B wrote:Well,
youtube is not the main source of the childrens programs I want to "record"...
I need something that works on play sites like SVTPlay etc where one can navigate to a specific program and then start playback in the browser window. What I want is some way to catch the streamed video to disk.
THe Windows application works like this:
- Navigate in the browser to the page with the play button on
- Copy the URL
- Paste it into the box in the Windows application and hit "Get"
- Now that page is analyzed to find the actual stream and possibly also the subtitles link
- Hit "Download" and the application retrieves the video stream and the subtitle file
I would like to have a native Pi program that can be commanded via the command line (no GUI).
youtube-dl supports SVTPlay according to the link I posted, why bring Youtube into the response, where did that come from

Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 4:13 pm
by Bosse_B
fruitoftheloom wrote:
youtube-dl supports SVTPlay according to the link I posted, why bring Youtube into the response, where did that come from

Well in the response was firstly a line starting with an emoticon and then youtube.
Following that were two links both having youtube in the address.
Since I already have a plugin for FireFox to download Youtube content I posted as I did thinking this was something similar.
I did not follow the links due to the youtube being mentioned. Sorry for that.
But now I understand that the support is wider than youtube after all so I will dig into this ASAP. Right now I have to do other things, but later tonight...

Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 4:30 pm
by gkreidl
Bosse_B wrote:fruitoftheloom wrote:
youtube-dl supports SVTPlay according to the link I posted, why bring Youtube into the response, where did that come from

Well in the response was firstly a line starting with an emoticon and then youtube.
Following that were two links both having youtube in the address.
Since I already have a plugin for FireFox to download Youtube content I posted as I did thinking this was something similar.
I did not follow the links due to the youtube being mentioned. Sorry for that.
But now I understand that the support is wider than youtube after all so I will dig into this ASAP. Right now I have to do other things, but later tonight...

youtube-dl from the repository doesn't work. Search the forum for working solutions.
Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 5:33 pm
by Bosse_B
I had a look at the youtube-dl website and got immediately confused about the
strange way to install packages "for all UNIX users (Linux, OS X etc)".
Is there no apt-get functionality to install youtube-dl???
And which forum do I search? This one or some other youtube-dl-related forum?
Re: Downloading videos from stream to disk?
Posted: Tue Sep 08, 2015 6:22 pm
by gkreidl
Code: Select all
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/bin/youtube-dl
sudo chmod a+x /usr/bin/youtube-dl
and don't forget to update it quite often with: