Page 1 of 1

use omxplayer to streaming youtube

Posted: Thu Jun 28, 2018 9:27 am
by cazz
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.

Re: use omxplayer to streaming youtube

Posted: Thu Jun 28, 2018 10:23 am
by gkreidl
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.

Re: use omxplayer to streaming youtube

Posted: Thu Jun 28, 2018 10:57 am
by cazz
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

Re: use omxplayer to streaming youtube

Posted: Thu Jun 28, 2018 11:05 am
by gkreidl
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.

Re: use omxplayer to streaming youtube

Posted: Thu Jun 28, 2018 11:31 am
by Laurens-wuyts
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

Re: use omxplayer to streaming youtube

Posted: Thu Jun 28, 2018 3:47 pm
by cazz
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.

Re: use omxplayer to streaming youtube

Posted: Wed Jul 25, 2018 1:31 pm
by dividuum
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.

Re: use omxplayer to streaming youtube

Posted: Sun Aug 05, 2018 11:05 pm
by useruseruser
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