Recording to QT format

Ian Davidson id012c3076 at blueyonder.co.uk
Tue Dec 18 08:43:59 PST 2012


You may have noticed a few posts from me recently regarding recording to 
AVI format.  From my perspective, the important part of the process is 
to get the information _recorded_ so that I can edit the recorded 
material and write to a DVD - so it does not have to be AVI.  I would be 
happy with OGG or MPEG so long as I can carry the file to another 
machine and edit it.

I have successfully made a recording using
gst-launch-1.0 -e v4l2src norm=PAL ! 
'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' 
! queue ! mux. alsasrc num-buffers=440 ! audioconvert ! 
'audio/x-raw,rate=44100,channels=2' ! queue ! mux. avimux name=mux ! 
filesink location=test.avi
- although I have not attempted to verify that the audio is in sync with 
the video.

I then tried to change from AVI to QT using
gst-launch-1.0 -e v4l2src norm=PAL ! 
'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' 
! videoconvert ! queue ! mux. alsasrc num-buffers=440 ! audioconvert ! 
'audio/x-raw,rate=44100,channels=2' ! queue ! mux. qtmux name=mux ! 
filesink location=test.mov
- but when I play the video, I do not hear any audio.

I have inspected qtmux to verify that it can take an audio input. 
(Check). So what have I done wrong to lose the audio?

Would I be better to choose OGG or MPEG?  I am thinking that the 
multifilesink would be a useful thing to use.

I have attempted to use oggmux as in the following command
gst-launch-1.0 -e v4l2src norm=PAL ! 
'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' 
! videoconvert ! queue ! mux. alsasrc num-buffers=440 ! audioconvert ! 
'audio/x-raw,rate=44100,channels=2' ! queue ! mux. oggmux name=mux ! 
filesink location=test.ogg
- but it fails to link mux to the (video) queue.

Your help, as ever, is appreciated.

Ian
-- 
--
Ian Davidson
--
Facts used in this message may or may not reflect an underlying 
objective reality. Facts are supplied for personal use only.
Recipients quoting supplied information do so at their own risk. Facts 
supplied may vary in whole or part from widely accepted standards.
While painstakingly researched, facts may or may not be indicative of 
actually occurring events or natural phenomena.
The author accepts no responsibility for personal loss or injury 
resulting from memorisation and subsequent use.


More information about the gstreamer-devel mailing list