LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-08-2011, 03:51 PM   #1
grizcreative
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
I want to "push" video to a linux box hooked up to my tv


I have scoured google, and these forums, and yet I cannot find what I am looking for.

What I basically want to do is have a linux box hooked up to my HD tv and be able to "push" a video or an audio file to it from another computer in the house.

Ultimately I would like to push to multiple boxes and have them play in sync. I want to control this without having to go the the individual box and control the playback from there.

Any way this is possible? Or is this just a pipe dream?

Thank you in advance.
 
Old 06-08-2011, 03:59 PM   #2
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
Instead of trying to "push" the file, as you said. Why not just mount the remote drive using NFS, Samba, or something similar? Then on the Linux box, you'd just load up your file as if it were stored locally, and hit "play".
 
0 members found this post helpful.
Old 06-09-2011, 03:09 PM   #3
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Quote:
Originally Posted by grizcreative View Post
What I basically want to do is have a linux box hooked up to my HD tv and be able to "push" a video or an audio file to it from another computer in the house.
Most streaming solutions are "pull" oriented; i.e. you choose the media source on the playback box. The simplest method to do that is what Chromezero suggested: just share the media directories on the other computer(s), mount them on the Linux box, and the Linux box can then play all those files.

Quote:
Originally Posted by grizcreative View Post
Ultimately I would like to push to multiple boxes and have them play in sync. I want to control this without having to go the the individual box and control the playback from there.
That's not a problem. You can control the playback remotely. For example, if you use VLC for playback on the Linux box, you can control it remotely using any browser, or by using a Telnet connection.

Quote:
Originally Posted by grizcreative View Post
Any way this is possible? Or is this just a pipe dream?
It is quite possible, and it may even be easy; it all depends on how you wish to control it all.

First, make sure you have VLC installed on all your boxes. VLC is able to both broadcast a stream, and play broadcast streams. Here is the VLC Streaming Howto.

Since you may have multiple playback devices playing the same stream, you should always use a multicast address to "broadcast to" and "playback from", instead of their actual IP addresses. You should "allocate" at least one multicast address from 224.0.0.103 to 224.0.0.250 to each machine that can "push" media. Using a multicast address means the "pusher" will only send one data stream to all recipients; your network equipment (switches, routers) will split and direct a copy of the stream to each recipient automatically. This also means that each stream will use roughly the same bandwidth, regardless of the number of playback devices!

At this point, it's just a matter of telling each VLC instance involved what to do. You can use the WWW and Telnet interfaces built into VLC to remotely control each VLC, or the GUI to control VLC locally. I recommend checking out the VLC Play Howto, especially the Basic Use Interfaces section.

If you need to have a polished interface tailored to your own needs, I recommend installing Apache on an always-on Linux box, and writing some PHP or Python CGI scripts to control all this in one-click manner, using a browser on any of your machines. You could have a page for each "pusher" box that lists the media available on that box; clicking on one would open up a detail page, where you could tick the checkboxes corresponding to the playback devices you want to play that media. The listing would need at least one script; the detail page one; and the final "do it" needs one script to do the remote connections to make sure VLC is running and starts playback from the used "pusher". Although this needs a bit of an effort to set up, it would be pretty easy and efficient interface. It should work for any number of "pushers" and playback boxes, in any mix; and the configuration would be centralized on that machine, too.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Card Nvidia Driver Xlib: extension "GLX" missing on display ":0.0". HELP! badgerbox76 Linux - Newbie 35 03-08-2007 02:27 AM
Windows box shows "Network cable unplugged" when hooked up to my Linux router drkstr Linux - Networking 5 10-03-2006 04:44 PM
LXer: $100 PC project will "invigorate Linux desktop push" LXer Syndicated Linux News 0 01-30-2006 10:46 PM
Video Card Nvidia Driver Xlib: extension "GLX" missing on display ":0.0". badgerbox76 Linux - Games 13 01-11-2006 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration