LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 07-27-2008, 08:54 AM   #1
tuxulin
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
is there a way to stream avi, mpg files


im currently using gnump3d to stream audio files
what it does is simple. it list all audio files and stream them over the
net without downloading first.

im looking for a program that can do the same / similar as above but with movie clips like avi, mpeg files.

ie when someone in china click on my "clip.mpeg" link here in sweden
that he/she can watch all the movie clip without downloading it first.

help me out
thanks
 
Old 07-27-2008, 10:32 AM   #2
explodingzebras
Member
 
Registered: Oct 2007
Location: UK
Distribution: Ubuntu
Posts: 63

Rep: Reputation: 18
Smile

hey, i use VLC media player for streaming video, though it isnt exactly intuitive but does the job well an is cross platform. For audio, I use firefly (an open source itunes compatible media server).
 
Old 07-27-2008, 12:18 PM   #3
tuxulin
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for the reply explodingzebras
i had a look on streaming my vids with vlc
but cannot get my head around it.

if there is a tuts on how to get this done
then let me know untill then ill see if i can
figure it out

thanks again
Tuxulin
 
Old 08-19-2008, 02:30 PM   #4
fritzfox
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Sorry if this is a few days too old, and if you have already figured it out!

There are a few ways I have discovered to stream avi's in Linux, and with VLC.

The most simple is to change the web server's mime type for avi (or other) movies, e.g. for lighttpd, edit the config file to include:
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".avi" => "application/x-vlc-plugin"
)

This is assuming that you are using Firefox with the VLC plugin installed (not installed by default when installing VLC). This method will stream the avi, but also has the drawback that there are no controls, and the movie just plays in fullscreen when you click on it (no way to pause--all you can do is click 'back' in Firefox).

You can also write html with properly formatted links to the files, using the same mime type "application/x-vlc-plugin" or equivalent IE ActiveX control. This method is illustrated in great detail by a website I am not allowed to post on this forum until I have made one post-- see next post. This site shows how to deal with both IE and Firefox.

The third method (that has nothing to do with Linux) is to just open the URL of the movie in VLC. Goto "File"->"Open Network Stream...", click on "HTTP/HTTPS/FTP/MMS", then enter the URL to the right. Optional caching is available below, before you click on "OK" and open file for streaming.

The fourth method is to install Jinzora on your web server. It requires LAMP, and transcodes your files for streaming if needed. Probably has a lot more overhead than the previous methods. I don't know how easy it is to set up...but probably works with a lot more than just VLC.

Take care,
--Fritz
 
Old 08-19-2008, 02:31 PM   #5
fritzfox
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
The site I was not allowed to post in my first post was <http://altair.videolan.org/~dionoea/vlc-plugin-demo/>.
--Fritz
 
Old 08-21-2008, 03:31 PM   #6
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 9
Posts: 127

Rep: Reputation: 15
Maybe you'll prove me wrong - but I understood that an AVI file has vital file information at the end of the file. This makes it very difficult to play such a file in a 'streaming manner' because the player does not know enough about the file until it has read it all.

If you can prove me wrong, I don't mind.

Ian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mpg, avi files don't work on Macintosh. kaz2100 Linux - General 1 05-25-2006 01:51 PM
cannot play .avi .wmv, mpg files WRXHokie Linux - Software 22 12-05-2005 08:57 PM
How to play windows avi, mpg files on OSS Linux 10.0? idefix Linux - General 10 12-05-2005 08:12 PM
stream desktop as mpg/avi? lukebeales Linux - Software 1 07-04-2005 06:37 AM
RealPlayer wont open mpg or avi or wmv files madmax04 Linux - Newbie 2 09-28-2004 02:19 PM


All times are GMT -5. The time now is 07:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration