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.
I wanted to stream video from a capture card (in my case a bt878) into my web browser. It's an application I am working on. Can't really say more about why I am doing this. Anyhow, I am using linux. Tried vlc, mplayer, ffmpeg, and a whole bunch more but only xawtv seams to work. That's is why I was hoping that xawtv would work in a web page. I tried java media frame work and java 4 video 4 linux but I couldn't understand the api.
Just so I understand, what you're going for is a web page that has a streaming video playing...so hypothetically you want to hook up the card to the tv and stream tv on your site without the need for a media player on the other side? At the least you'll need flash...the easiest way I've found to do this (no tv at work) is to use vlc without any encoding and just stream the raw mp4 from my tv card onto a specified port. Then I just open the url in win media player and presto! I'm watching the hockey network from my cubicle
To embed into a webpage is a bit more of an undertaking. My tv card and the server were never the same machine, but I'd think if they were, you could have a soft link from a media player on the website to the /dev/video0. Not sure about how secure that'd be...I wouldn't think it'd be a big deal
VLC + VLC plugin would work. You just need to configure them correctly. VLC can act a a server and stream your v4l content as an asx or other kind of stream, then mplayerplugins or vlcplugins will capture the stream and display it.
You apparently lack the understanding of the client/server model and the whole inner working of applications in general. The only way to embed an x app into a web browser in creating a xembeded plugins for netscape or using a java VNC client, but are totally terrible solutions.
I wanted to stream video from a capture card (in my case a bt878) into my web browser. It's an application I am working on. Can't really say more about why I am doing this. Anyhow, I am using linux. Tried vlc, mplayer, ffmpeg, and a whole bunch more but only xawtv seams to work. That's is why I was hoping that xawtv would work in a web page. I tried java media frame work and java 4 video 4 linux but I couldn't understand the api.
Thanks
I think the bt878 is an analogue tuner card. That makes things somewhat tricky. You will need to encode the video into a digital format on-the-fly, and make a stream available on a web server. (Assuming you intend your solution to work when the capture card is on a different computer to the web browser). Then you will need to create a web page with some sort of viewer for the stream. (Flash, Java, or just rely on the browser to have an appropriate plugin.) I don't know too much about the details, although you may find either mencoder or vlc can handle creating the stream.
Just to make things more clear, here is no actual website. What I need to do is somehow attach the stream from a capture card to a web browser on a single machine. I can even use java or flash for that matter. I can't really elaborate on what I am doing as it would break the confidentiality between me and my client. I think I got the idea anyhow but if anyone would like to contribute anything else I am more than willing to listen. I guess one thing that could make things easier would be to get a digital capture card. Can anyone recommend a good not to expensive capture card? Also why is it that I can use Xawtv without problems and vlc seams to work like once in a blue moon?
By the way I would like to thank everyone for their replies.
Because you have not configured VLC correctly, but VLC is the solution here. It is the easiest one and the only decent one. Forget Java or Flash, just install vlc firefox plugin as a client and stream using vlc as a server.
Thanks agian Elv13 for the reply. I agree. I think the best way is to use vlc but I cannot get it to work. I did get this ffserver/ffmpeg/browser example working on my computer. http://wiki.goodrobot.com/wiki/WebcamStreamingFlash
Could you give me some insight on to use vlc especially with the web browser.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.