View Single Post
Posts: 4 | Thanked: 9 times | Joined on Aug 2011
#5
Your best bet would be to use gstreamer, as it has access to the dsp acceleration for encoding to h.264. First you will need to install "gstreamer0.10-tools"

This (single) line should get you started:
Code:
gst-launch v4l2camsrc device=/dev/video0 ! dsph264enc ! avimux ! filesink location=test.avi
I know this might look confusing, but gstreamer does for video and audio what bash does stdin and stdout. To break this command down:
  1. Get video input from camera
  2. Encode it to h264 using the dsp
  3. mux it to avi format
  4. store to a file
    Now that you can get video encoded by the dsp, basic searches on the web will help you do the reset, e.g. how to get audio, and mux it into the same avi file. You can also display the video while it is encoding.

    Enjoy.
    P.S. if you know how to adjust the colours and focus of the camera let me know.



Last edited by brandon; 2011-08-27 at 00:55. Reason: format of text
 

The Following User Says Thank You to brandon For This Useful Post: