what should I learn to capture , compress and stream videos under Linux?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
what should I learn to capture , compress and stream videos under Linux?
I now only have a small demo (without any comments )capturing webcams and displaying videos on localhost. It uses v4l2.
I am rather frustrated since it has no comments. I need to first understand v4l2 a bit with a more detailed tutorial,and I may need to understand how to compress static image /streaming video with an approach that is achievable.Many are talking about H.264 today, but I don't how to apply it on UVC.
So could you recommend some BOOKS , detailed tutorials or some open source project relating to this?
Do a search here on LQ. There are lots of threads on video capture, including capturing video-audio streams, capturing desktop, capturing a dvb:// stream, a dvd://, rtsp://, capturing a web cam stream.
Mplayer will play a stream, dump a stream to file, mencoder and ffmpeg will encode it, rtmpdump will dump to file, ffmpeg will stream, VLC will play streams etc.
Is your example not working, or do you just want to learn more about it?
I have a gumstix at home with a USB webcam, it uses ffmpeg to pull video from the camera and encode it using v4l2, then serve it via ffserver to localhost. The system then runs a web server which inserts the video feed into an html page that anybody (on the local network at least) can see on their web browser. It was pretty easy to set up, the hardest part was tweaking the encoder parameters so it didn't saturate the tiny CPU on the device.
The fun part was then attaching the camera to a pan/tilt servo setup which is attached the gumstix PWM outputs, and then controlling it all via php with up, down, left, right buttons next to the video on the html page.
Last edited by suicidaleggroll; 02-19-2013 at 01:16 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.