Tim Retout's www presence

Mon, 01 Mar 2010

Recording video with gstreamer

For future reference, here is the gstreamer pipeline I'm currently using to record videos (with audio) for YouTube:

gst-launch-0.10 \
v4l2src ! 'video/x-raw-yuv,width=800,height=600,framerate=20/1' \
! tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue \
! videorate ! 'video/x-raw-yuv,framerate=20/1' ! queue \
! mux. pulsesrc ! audio/x-raw-int,rate=48000,channels=2,depth=16 ! queue \
! audioconvert ! queue \
! mux. avimux name=mux ! filesink location=test6.avi

For some reason cheese becomes slow for me when I start recording. Probably the theora encoding? I need to investigate further.

I now have tickets for New York! And yay for Bosnia in 2011.

Posted: 01 Mar 2010 02:02 | Tags: , | Comments (1)

Comments

Posted by Alan Pope at Wed May 19 00:10:29 2010
Heh, that's a bit handy that script. I just fired it up on my Ubuntu box, forgetting that I have a webcam plugged into it, and near scared the life out of me looking at myself. Clearly time for bed :)

Name:


E-mail:


URL:


Comment:


Anti-spam question: What is the colour of both (hydrated) copper sulphate and (anhydrous) cobalt chloride?

< March 2010 >
SuMoTuWeThFrSa
  1 2 3 4 5 6
7 8 910111213
14151617181920
21222324252627
28293031   

Contact

Tim Retout tim@retout.co.uk
JabberID: tim@retout.co.uk

List of non-fail

Copyright © 2007, 2008, 2009 Tim Retout