Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Omxplayer does the business all right. I had a struggle for the audio. The winning line was
omxplayer -o hdmi <file>
It came up full size, full speed, and seemed to have capacity to spare. omxplayer isn't as talkative as mplayer, but p pauses and q quits. Omxplayer is actually installed in the Debian Wheezy install for the pi. So it can be done.
EDIT: the python script crashes on line 3 because it can't find the gtk module.
Last edited by business_kid; 12-25-2012 at 07:03 AM.
If Omxplayer won't stream
Then make a named pipe (mkfifo) and stream to it, out of it. Use omxplayer instead. Assuming that omxplayer will play from a pipe.
Omxplayer refuses standard input, pipes, etc, and only wants to see files. But as you pointed out, there's more that 1 way to do things if you are a little familiar with the Unix command line. I first tried this:
But that wasn't too good, because all the standard youtube-dl output went into the fifo as well. I don't really know what happened, but I saw nothing. So I opened a second terminal. In one I ran
Quote:
youtube-dl URL -o nutty.fifo
and in the other I put in
Quote:
omxplayer -o hdmi nutty.fifo
and simply waited for the youtube download to get under way, switched focus to the second terminal and hit return.
In it's right place, the fifo is such a powerful tool. The pipsqueak was fast enough to handle the download and the playback simultaneously, and for sites amenable to youtube-dl, that certainly seems to be the way to go.
A much higher hurdle is the nearby English channels. I'll look into that rtsp and rtmp stuff to see if I can make any progress there. How am I supposed to run the .php files?
#!/bin/sh
echo "Enter URL"
while read URL
do
omxplayer -o hdmi $(youtube-dl -g --cookies /tmp/cookie.txt "$URL")
done
Save it as video.sh, make it executable, launch it, paste in the URl when asked.
Quote:
How am I supposed to run the .php files?
I don't know what you mean by that. rtmpdump is a little command line app. (A binary) rtmp://host[ort]/playpath
Code:
Usage: omxplayer [OPTIONS] [FILE]
Options :
-h / --help print this help
-n / --aidx index audio stream index : e.g. 1
-o / --adev device audio out device : e.g. hdmi/local
-i / --info dump stream format and exit
-s / --stats pts and buffer stats
-p / --passthrough audio passthrough
-d / --deinterlace deinterlacing
-w / --hw hw audio decoding
-3 / --3d switch tv into 3d mode
-y / --hdmiclocksync adjust display refresh rate to match video
-t / --sid index show subtitle with index
-r / --refresh adjust framerate/resolution to video
--boost-on-downmix boost volume when downmixing
--font path subtitle font
(default: /usr/share/fonts/truetype/freefont/FreeSans.ttf)
--font-size size font size as thousandths of screen height
(default: 55)
--align left/center subtitle alignment (default: left)
Key Bindings
z Show Info
1 Increase Speed
2 Decrease Speed
j Previous Audio stream
k Next Audio stream
i Previous Chapter
o Next Chapter
n Previous Subtitle stream
m Next Subtitle stream
s Toggle subtitles
q Exit OMXPlayer
Space or p Pause/Resume
- Decrease Volume
+ Increase Volume
Left Arrow Seek -30
Right Arrow Seek +30
Down Arrow Seek -600
Up Arrow Seek +600
That bash script works all right. It's a bit disconcerting because you see no output for 10 seconds, before the video starts. so youtube is sorted.
I actually had the binaries of rtmpdump,compiled burt they were hidden in a directory I use to make slackware packages for installation. The intention was to add rtsp stuff there as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.