Thread
:
Grab audio/video with meconder.
View Single Post
brandon
2011-08-27 , 00:53
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:
Get video input from camera
Encode it to h264 using the dsp
mux it to avi format
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
Quote & Reply
|
The Following User Says Thank You to brandon For This Useful Post:
trlopes1974
brandon
View Public Profile
Find all posts by brandon