Bosse_B
Posts: 981
Joined: Thu Jan 30, 2014 9:53 am

Downloading videos from stream to disk?

Tue Sep 08, 2015 12:33 pm

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?
Bo Berglund
Sweden

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 1:33 pm

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
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Bosse_B
Posts: 981
Joined: Thu Jan 30, 2014 9:53 am

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 3:38 pm

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).
Bo Berglund
Sweden

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 3:48 pm

That's exactly how youtube-dl works. But I don't know if that website is supported.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 3:50 pm

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...

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 3:53 pm

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 :roll:
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Bosse_B
Posts: 981
Joined: Thu Jan 30, 2014 9:53 am

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 4:13 pm

fruitoftheloom wrote: youtube-dl supports SVTPlay according to the link I posted, why bring Youtube into the response, where did that come from :roll:
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. :oops:
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...
:)
Bo Berglund
Sweden

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 4:30 pm

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 :roll:
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. :oops:
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.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Bosse_B
Posts: 981
Joined: Thu Jan 30, 2014 9:53 am

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 5:33 pm

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?
Bo Berglund
Sweden

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Downloading videos from stream to disk?

Tue Sep 08, 2015 6:22 pm

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:

Code: Select all

sudo youtube-­dl ­-U
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “General discussion”