[gst-devel] how to create a pipeline to record video from camera?

Timothy Braun braunsquared at gmail.com
Wed Dec 22 09:38:15 CET 2010


H264 is encoded with x264enc element. 

Sent from my iPhone

On Dec 22, 2010, at 3:10 AM, wl2776 <wl2776 at gmail.com> wrote:

> 
> 
> michael young wrote:
>> 
>> And now , I want to record the video to a MP4 file with the h264 encoding
>> format  ,  How can I do ?
>> 
>> On Wed, Dec 22, 2010 at 2:26 PM, michael <mcygogo at gmail.com> wrote:
>> 
>>> tks, this is work:   gst-launch v4l2src device=/dev/video0 !
>>> 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! xvimagesink
>> 
>> 
> 
> Looks like you can't, because h264 encoder is unavailable. 
> gst-inspect | grep h264
> doesn't show it.
> However, general idea is to encode, then mux, and then save to a file.
> gst-launch v4l2src device=/dev/video0 !
> 'video/x-raw-yuv,width=640,height=480,framerate=30/1' !  ffenc_mpeg4 !
> mp4mux !filesink location=/home/user/file.
> 
> -- 
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/how-to-create-a-pipeline-to-record-video-from-camera-tp3134399p3160261.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with Google Apps:
> an online email calendar, and document program that's accessible from your 
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list