Hello!<br><br>I have the following script to start stream and record to avi file.<br>gst-launch-0.10 \<br> v4l2src device=/dev/video0 ! queue ! ffmpegcolorspace ! tee name=raw_camera \<br> v4l2src device=/dev/video1 ! queue ! ffmpegcolorspace ! tee name=raw_camera2 \<br>
raw_camera. ! videorate ! \<br> video/x-raw-yuv,framerate=20/1 ! tee name=t_video1 \<br> raw_camera2. ! videoscale ! video/x-raw-yuv,width=133,height=100 ! videorate ! \<br> video/x-raw-yuv,framerate=20/1 ! tee name=t_video2 \<br>
multifilesrc location="logo.png" caps="image/png,framerate=1/1" ! pngdec ! freeze ! alpha method=0 alpha=1 ! ffmpegcolorspace$<br> videomixer name=pip sink_0::xpos=0 sink_0::ypos=0 sink_0::zorder=0 sink_1::xpos=449 sink_1::ypos=334 sink_1::alpha=0.8 sink_1$<br>
alsasrc device=hw:0,0 ! queue ! audio/x-raw-int,rate=44100,depth=16,channels=2,signed$<br> t_video1. ! queue ! pip.sink_0 \<br> t_video2. ! queue ! pip.sink_1 \<br> t_logo. ! queue ! pip.sink_2 \<br>
t_video. ! queue ! vp8enc ! queue ! avimux name=mux ! filesink location=test.avi sync=false \<br> t_audio. ! audioconvert ! alawenc ! .mux<br><br>The problem is with mux component, which doesn't want to mix audio and video together and just drops frames. If i change last two lines to:<br>
t_video. ! queue ! vp8enc ! queue ! filesink location=test.vid sync=false \<br>
t_audio. ! audioconvert ! alawenc ! filesink location=test.snd sync=false<br>everything works fine, except that i don't get muxed audio and video. I can see in log that videframes have timestamps starting from 0, but audio has timestamps, from some higher numbers. Could this be the problem? Does anybody have any idea what could be the problem and why avimux doesn't mix streams? It's clearly problem with gstreamere and not hardware, because in case no. 2 cpu is not nearly fully loaded.<br>
<br>Have a nice day, Jaka Hudoklin.<br>