Our custom board using the DM355 has an added sound codec for capturing audio. Using gstreamer for capturing audio and video both work fine, but I can't seem to mux the output into a single file - of any format - that I can play with a PC application.
video:
gst-launch -v v4l2src always-copy=FALSE do-timestamp=TRUE ! 'video/x-raw-yuv,width=1280,height=720,framerate=15/1' ! TIVidenc1 codecName=mpeg4enc engineName=codecServer contiguousInputFrame=TRUE frameRate=15 ! filesink location=$1.m4v
audio:
gst-launch-0.10 alsasrc device=hw:0 ! audio/x-raw-int,rate=48000,channels=2,depth=16 ! wavenc ! filesink location=$1.wav
But if I try and mux the result into say an AVI file, the result is corrupted:
gst-launch v4l2src ! 'video/x-raw-yuv,width=1280,height=720,framerate=15/1' ! TIVidenc1 codecName=mpeg4enc engineName=codecServer contiguousInputFrame=TRUE frameRate=15 ! mux. alsasrc device=hw:0 ! audio/x-raw-int,rate=48000,channels=2,depth=16 ! queue ! audioconvert ! queue ! mux. avimux name=mux ! filesink location=test.avi
gstreamer doesn't complain and captures *something* but the end result is a corrupt file.
Any suggestions?