converting the input captured through ffmpeg & webcam !
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
If 'ffmpeg -i vids' or 'mediainfo vids' returns anything that even remotely looks like a video stream then (c)VLC, mplayer or Xine should be able to play it. I use ffmpeg mostly as converter and not to stream video.
I don't understand why you are creating a stream, if you want a video file.
ffmpeg -b 100k -an -f video4linux2 -s 320:240 -i /dev/video0 -vcodec mjpeg -r 10 -y test.avi
However, it may be better using another tool to create the video, or to control the camera to set a higher resolution, frame rate, or bit rate.
The -s option here will resize the original stream, not cause the camera to stream at that size. Part of your problem may also be that you didn't indicate a container format. For an mjpeg video stream, you can use .avi for example.
You might want to look at the examples for ffserver. For playing feeds, vlc is probably the best. I used it at work to check on audio levels in a cable headend. The digital video were udp streams at the internal switch.
I think it would be better to use a pipe as an input for ffmpeg. Then transcode the video and save it as a file, instead of saving the stream dump and trying to work with that.