<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 09/15/11 11:22, Jaka Hudoklin wrote:
<blockquote
cite="mid:CAK2-9nqrQTeq-Q2zwV1C4fjc07ksBg47T-Cf8OpvEx_97AYf7g@mail.gmail.com"
type="cite">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>
</blockquote>
<br>
This could be a bug in avimux (file a bug). Try also some more
modern format e.g. mp4mux.<br>
<br>
Stefan<br>
<blockquote
cite="mid:CAK2-9nqrQTeq-Q2zwV1C4fjc07ksBg47T-Cf8OpvEx_97AYf7g@mail.gmail.com"
type="cite">
<br>
Have a nice day, Jaka Hudoklin.<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>