Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I have a server that delivers media via HTTP (or FTP). If I click on a link, it downloads to /tmp and then plays in vlc, but what I want is for it to run vlc and give it the URL so that it will play it as a stream. I am generating the HTML and I'm using thttpd for the server. If I do it manually (Copy Link Location, paste into vlc) it works fine, but I'd like click-and-play. I've Googled for hours and can't even see the topic addressed. This is possible, right?
If it's your (private) server, consider setting up IceCast...full details on install and setting up are on the site! Dunnow what distro you got, but have a peek in the repo, it's bound to be in there...
If it's your (private) server, consider setting up IceCast...full details on install and setting up are on the site! Dunnow what distro you got, but have a peek in the repo, it's bound to be in there...
Happy listening
Thor
Thanks, but actually I was wanting to stream video.
But even with Icecast, what program would be reading it in the browser?
That's the problem I have is making it stream on the client side.
that version is old! latest right now is 1.1.9
Also, you could install mozilla-vlc package. It's a plug-in, and might let you do play your videos while they download instead of waiting for the end of the download.
Another way of achieving what you want could be to download a playlist file that holds the URL for your media, instead of the media file itself. But you'll need to research what exact format vlc supports for this.
OK, but I don't get how upgrading to a newer version would help.
The problem is in getting Firefox to do the correct thing.
Quote:
Originally Posted by 16pide
Also, you could install mozilla-vlc package. It's a plug-in, and might let you do play your videos while they download instead of waiting for the end of the download.
Nope. I already have that installed and it downloads to /tmp, then plays.
Quote:
Originally Posted by 16pide
Another way of achieving what you want could be to download a playlist file that holds the URL for your media, instead of the media file itself. But you'll need to research what exact format vlc supports for this.
OK, but how would that make it stream? Will that give a playlist to vlc?
Would that not expect that the media to play was on the local machine?
I will investigate that though. Thanks.
The idea is that getting the xspf file takes under a second (a few lines of xml). Then vlc gets it from the browser, analyses it, finds a http url in it, and then plays that http url while downloading it.
I tried it (my post above), and could start viewing my video immediately which is what I think you're looking for.
if your version 1.0.6 of vlc does not work with that xspf standard, then upgrade to 1.1.9
The idea is that getting the xspf file takes under a second (a few lines of xml). Then vlc gets it from the browser, analyses it, finds a http url in it, and then plays that http url while downloading it.
I tried it (my post above), and could start viewing my video immediately which is what I think you're looking for.
if your version 1.0.6 of vlc does not work with that xspf standard, then upgrade to 1.1.9
Yes, I tried it and it works well enough. Not perfect, I'd still like to hand the URL to the program, but it works, it is quick as you say, and I don't think it will accumulate and bunch of crap in /tmp. So I will go with this method until I find the ideal solution.
Thanks Dugan! That would be really great if it worked, but it doesn't.
Do I have to be running Gnome? I'm running XFCE but it runs Gnome compatibility libraries.
Thanks Dugan! That would be really great if it worked, but it doesn't.
Do I have to be running Gnome? I'm running XFCE but it runs Gnome compatibility libraries.
Oh I see an error above. I did not replace foo with vlc in second line. Let me try again...
Thanks ruario, and thanks again dugan.
Both of these work now. The Opera setting works, and after I typed the gconftool correctly, that worked too for Firefox.
It now invokes vlc with the URL.
The only problem is, vlc doesn't know how to deal with a URL that starts with "vlc://..." so not sure what to do.
It won't let me invoke a bash script, which I can use to change the vlc to http, so I may have to write a little program.
But that's a whole different problem.
This mission is accomplished.
In that case U suspect the fix that dugan gave you would actually have been enough for Opera as well, since it passes off unknown protocols to the desktop environment but it doesn't hurt actually setting it within Opera. Also this would be the best way to do it for someone who ran Opera and a simple window manager, rather than a full desktop environment.
In that case U suspect the fix that dugan gave you would actually have been enough for Opera as well, since it passes off unknown protocols to the desktop environment but it doesn't hurt actually setting it within Opera. Also this would be the best way to do it for someone who ran Opera and a simple window manager, rather than a full desktop environment.
I will say that Opera was easier to set up.
Ultimately I also want this to work with Macbook, so probably the XSPF will be the way to go there.
It think it will be easier to set up for a given browser to tell it handle .xspf rather than a protocol.
I'm glad I learned both ways to do it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.