cazz
Posts: 216
Joined: Wed Nov 14, 2012 9:01 pm
Location: Sweden

use omxplayer to streaming youtube

Thu Jun 28, 2018 9:27 am

Hi
I have install omxplayer and also use youtube-dl to get the address.
When I run

Code: Select all

omxplayer -s -o local "<address>"
it start to stream but just for some second, after that is exit the omxplayer

Is it some easy way from terminal to show youtube streaming.
/Cazz

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

Re: use omxplayer to streaming youtube

Thu Jun 28, 2018 10:23 am

cazz wrote:
Thu Jun 28, 2018 9:27 am
Hi
I have install omxplayer and also use youtube-dl to get the address.
When I run

Code: Select all

omxplayer -s -o local "<address>"
it start to stream but just for some second, after that is exit the omxplayer

Is it some easy way from terminal to show youtube streaming.
Try using youtube-dl with the "-f best" option to access the stream uri.
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

cazz
Posts: 216
Joined: Wed Nov 14, 2012 9:01 pm
Location: Sweden

Re: use omxplayer to streaming youtube

Thu Jun 28, 2018 10:57 am

Thanks for the replay

Is same thing it play 2 sec then freeze 1 sec and then stop

I trying to stream this video to a Raspberry Pi
https://www.youtube.com/watch?v=RtU_mdL2vBM
/Cazz

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

Re: use omxplayer to streaming youtube

Thu Jun 28, 2018 11:05 am

cazz wrote:
Thu Jun 28, 2018 10:57 am
Thanks for the replay

Is same thing it play 2 sec then freeze 1 sec and then stop

I trying to stream this video to a Raspberry Pi
https://www.youtube.com/watch?v=RtU_mdL2vBM
youtube-dl -g https://www.youtube.com/watch?v=RtU_mdL2vBM
ERROR: This video is unavailable.
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

User avatar
Laurens-wuyts
Posts: 716
Joined: Wed Aug 21, 2013 7:35 pm
Location: Belgium
Contact: Website

Re: use omxplayer to streaming youtube

Thu Jun 28, 2018 11:31 am

cazz wrote:
Thu Jun 28, 2018 10:57 am
Is same thing it play 2 sec then freeze 1 sec and then stop

I trying to stream this video to a Raspberry Pi
https://www.youtube.com/watch?v=RtU_mdL2vBM
It's probably because it's a live stream and not a video.
Youtube-dl can't download a video which doesn't exists yet. :)

Laurens

cazz
Posts: 216
Joined: Wed Nov 14, 2012 9:01 pm
Location: Sweden

Re: use omxplayer to streaming youtube

Thu Jun 28, 2018 3:47 pm

Ahhh it try to download the file :D
I just want to stream it, not download it but that is ok I did take a webcam source instead.
/Cazz

User avatar
dividuum
Posts: 147
Joined: Sun Jun 16, 2013 1:18 pm
Location: Germany
Contact: Website

Re: use omxplayer to streaming youtube

Wed Jul 25, 2018 1:31 pm

cazz wrote:
Thu Jun 28, 2018 10:57 am
Thanks for the replay

Is same thing it play 2 sec then freeze 1 sec and then stop

I trying to stream this video to a Raspberry Pi
https://www.youtube.com/watch?v=RtU_mdL2vBM
I'm the developer of info-beamer hosted, a digital signage system for the RPi. I've been playing around with live streaming recently and as it happens the url you want to stream is one that I also used for testing! The result is this live streaming package that you can install with a few clicks on a Pi running the info-beamer operating system. Even better: If your Pi is connected by HDMI to a TV with a remote, you can use its remote to switch between different channels that way. Under the hood, this uses streamlink to fetch the stream. Let me know if you have any questions.
info-beamer hosted - A user and programmer friendly digital signage platform for the Pi: https://info-beamer.com/hosted

useruseruser
Posts: 51
Joined: Fri Aug 01, 2014 11:34 pm

Re: use omxplayer to streaming youtube

Sun Aug 05, 2018 11:05 pm

TBOPlayer can do that in a very easy manner. Try it out. It can also find lyrics for your music tracks. https://github.com/KenT2/tboplayer

Return to “Graphics, sound and multimedia”