LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-24-2008, 10:23 PM   #1
RussellChamp
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Rep: Reputation: 0
Streaming video over the network from a Linux server (YouTube-esque)


Hey all! Is there any package that I can use to stream video over a LAN from my Linux server to, say, a web browser on client machine in a YouTube-esque type of way?
I have a server running Ubuntu Linux that's chock-full of anime that I'd like to share with my not so tech savy friends at school over the network. Currently I just have them logging into a Samba share and copying/playing the videos from there but most of the video files require certain codecs to be installed and I wanted a system that'd be a bit easier (for them). There's a variety of file types from AVIs to MPGs to MKVs most with subtitle tracks. I do know that any of the files I have would be playable by mplayer.
So, anybody know of a package like this or is this just a dream situation that won't work?
 
Old 07-24-2008, 11:14 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
It's certainly possible. Something like this should achieve what you want: http://www.yolinux.com/TUTORIALS/Lin...Streaming.html
 
Old 07-25-2008, 08:07 AM   #3
Lowell1947
Member
 
Registered: May 2007
Location: Florida
Distribution: Ubuntu, SuSE10.2, LFS, Ubuntu Server (AMD64), Windows 7, Mac OSX
Posts: 30

Rep: Reputation: 16
I'm not exactly sure what you are asking, but I have been streaming video off my linux server for some time. I know that youtube streams their's in an flv format. When I stream mine I also have it in an flv format and it works fine. When using other formats it doesn't truly stream, rather it downloads the entire video to a tmp file then runs off that. Depending on the size of the file this can take some time.

I believe the secret to streaming video is the format you present it in. I take my videos in a number of different formats depending on the source, but I always convert them into flv to stream. A linux server can handle anything you wish to put out there, but it is the delay at the client end that determines whether the viewer is going to watch it to completion or give up on a long, slow presentation.

This is a presentation using flv off my home server running Ubuntu server. Marine Corps Tribute
 
Old 07-25-2008, 04:16 PM   #4
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
As Lowell suggests, convert the video files to Flash video (.flv). You can use ffmppeg - http://ffmpeg.mplayerhq.hu/ - to do that.

Than, have a look at JW FLV Player - http://www.jeroenwijering.com/?item=JW_FLV_Media_Player - which is a Flash movie player which you embed in a webpage for playback. So you'll need to run a webserver (like Apache) on your Linux box.

Then, if you also have support for a scripting language like PHP or perl on your server, you can code some dynamic pages for your video library.

Your user's will only need to have the Flash plugin installed, which (chances are) they have already.

That's one approach; there are probably many others
 
Old 07-27-2008, 04:40 PM   #5
RussellChamp
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Awesome, sleddog! Thanks for the suggestion! I'll definitely check that link out and the others above. However, I do get the feeling that if I really wanted this to work, I'd have to convert all my stuff to flv (and loose a lot of quality) which I really do NOT want to do.
I'm thinking that I'll just have to be happy with having people remotely log into the Samba share and remotely playing the files.
(BTW, I'm running an Ubuntu LAMP server so it has all that jazz like Apache, and PHP.)
 
Old 07-27-2008, 06:58 PM   #6
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
You won't necessarily lose a lot of quality, it depends on the parameters you set when doing the conversion. The video bitrate has probably the greatest impact on quality. As you'll be serving your video over a local network, as opposed to the Web, you can set a high bitrate and retain a lot of quality.
 
Old 07-28-2008, 08:38 AM   #7
RussellChamp
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sleddog View Post
You won't necessarily lose a lot of quality, it depends on the parameters you set when doing the conversion. The video bitrate has probably the greatest impact on quality. As you'll be serving your video over a local network, as opposed to the Web, you can set a high bitrate and retain a lot of quality.
Cool, yeah. I tried out the player and it works really well. I ended up working on it for a few hours last nigh and set up an audio stream with a playlist working off of an example that they had on the site. You can check out what I did here
EDIT: http://216.86.84.3/mp/music/SuperGreenX/ Unfortunately, not all of the features of the example followed over into my actual implementation. I'll have to see what went wrong, then.
I'll probably be adding a lot of my other free (as in speech and beer) music to the site and try and create some sort of navigation system.
Even though I'll be serving this over a local network, my campus's network supremely SUCKS so when I was streaming videos before (through the Samba share) people were commenting that there was a lot of lag. Hmmm... actually, maybe if I reduced the bitrate people would get better playback!

NEW QUESTION: Do you know of any conversion program were you can choose different audio tracks and that will also include subtitles in the final video? (Most of the videos that I want to server are Japanese style cartoons called "anime").

Once again, thanks for the suggestion! I'm really enjoying the software!

Last edited by RussellChamp; 07-28-2008 at 10:11 AM.
 
Old 08-01-2008, 02:35 AM   #8
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
OK, try VLC - it *may* have something to stream videos right inside it, but can't you just make a simple webpage in Nvu or somthing that has your videos in it? If you have Apache etc then it'll just play...?
I just saw something in Dynebolic called Ksubtitle, maybe that's what youre looking for?
 
Old 08-01-2008, 11:43 PM   #9
RussellChamp
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by resetreset View Post
OK, try VLC - it *may* have something to stream videos right inside it, but can't you just make a simple webpage in Nvu or somthing that has your videos in it? If you have Apache etc then it'll just play...?
I just saw something in Dynebolic called Ksubtitle, maybe that's what youre looking for?
VLC? No, no... I'm running a SERVER which means that there is no graphical interface to it and, as far as I know, VLC does not have a command line only interface.
I will try checking out Nvu and Dynebolic, though. Thanks!
 
Old 11-06-2008, 03:47 PM   #10
flibbertigibbet
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by RussellChamp View Post
VLC? No, no... I'm running a SERVER which means that there is no graphical interface to it and, as far as I know, VLC does not have a command line only interface.
I will try checking out Nvu and Dynebolic, though. Thanks!
Clearly, you have not actually checked out VLC. They had a server software VLS that allowed you to set up some streams, but you had the command line ability in previous versions of VLC and you can stream and setup VOD (Video on Demand) currently.
There is a web management service that runs also. So you can set up your play lists and allow others to stream from it. The rest of the management of the server is set up through telnet commands. You should really check it out.

But other than that I recommend using the FLV conversion, or running a http server and using php and a script like from http://phpmotion.com/

Last edited by flibbertigibbet; 11-06-2008 at 03:54 PM.
 
Old 11-06-2008, 03:51 PM   #11
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
flash and flv support h.264+aac so you can have very high quality video/audio for your streaming. Most sites just use really low bit rates to decrease the bandwidth used per stream.
 
  


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
Capturing streaming media from youtube.com dv502 General 3 03-06-2007 03:20 PM
php video streaming CMS - youtube paul_mat Linux - Software 0 01-16-2007 06:30 AM
linux - streaming video server & clients greenmuzz Programming 1 12-21-2006 08:40 AM
Streaming Video files on LAN Network sendilkumar Linux - Networking 10 11-05-2006 11:22 PM
setting up video streaming over overlay network using ragzy Linux - Software 1 04-27-2004 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:30 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