Pic in pic with videomixer but i haven't audio
Mike Mitchell
mike.mitchell at panometric.net
Wed Oct 5 10:37:19 PDT 2011
Ivan,
Your latest pipeline didn't make sense to me. So I applied my handy debug
wrapper and generated a few pictures of your pipeline. See attached. This
helped me make some changes to fix the mux. My example replaces your DV
source but you can plug that back in and it should fly.
*Mike Mitchell*
*
*
#!/bin/bash -x
export GST_DEBUG_DUMP_DOT_DIR=$PWD/gstdot
rm $GST_DEBUG_DUMP_DOT_DIR/*.dot $GST_DEBUG_DUMP_DOT_DIR/*.png
# Original first source for min.sink0
#dv1394src ! decodebin ! ffvideoscale ! video/x-raw-yuv,width=320,
height=240 ! queue ! mix.sink_0 \
gst-launch -evt --gst-plugin-spew \
videotestsrc ! video/x-raw-yuv,width=320, height=240 ! queue ! mix.sink_0 \
videotestsrc ! video/x-raw-yuv,width=1024, height=720 ! queue ! mix.sink_1 \
videomixer name=mix sink_0::zorder=1 sink_0::sync=false sink_1::xpos=0
sink_1::ypos=0 sink_1::alpha=1 sink_1::zorder=0 ! ffmpegcolorspace ! jpegenc
! queue ! avimux0. \
alsasrc device=hw 0 ! audio/x-raw-int,channels=2,rate=44100 ! audioconvert !
faac ! queue ! avimux0. \
avimux name=avimux0 ! filesink location=conference.avi \
# Debug Code shows result file and graphic of pipeline.
ls -al $GST_DEBUG_DUMP_DOT_DIR
echo "Press ENTER to continue ..."
read WAIT
for f in $GST_DEBUG_DUMP_DOT_DIR/* ;
do
dot -T png $f >$f.png;
done
eog $GST_DEBUG_DUMP_DOT_DIR/*.png
exit
On Fri, Sep 30, 2011 at 2:27 PM, Ivan Bortolin <ivan2212000 at yahoo.it> wrote:
> I try this solution.
>
> gst-launch -e dv1394src ! decodebin ! ffvideoscale ! video/x-raw-yuv,
> width=320, height=240 ! mix.sink_0 videotestsrc ! video/x-raw-yuv,
> width=1024, height=720 ! mix.sink_1 videomixer name=mix sink_0::zorder=1
> sink_0::sync=false sink_1::xpos=0 sink_1::ypos=0 sink_1::alpha=1
> sink_1::zorder=0 ! ffmpegcolorspace ! jpegenc ! mux. alsasrc device=hw 0 !
> audio/x-raw-int,channels=2,rate=44100 ! audioconvert ! queue ! faac mux.
> avimux name=mux ! queue ! filesink location=vli.avi
>
> But after 3 seconds i have this error:
>
> gstbaseaudiosrc.c(828): gst_base_audio_src_create
> (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
> Dropped 12064 samples. This is most likely because downstream can't keep
> up and is consuming samples too slowly.
>
> What can i do? Thank
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Pic-in-pic-with-videomixer-but-i-haven-t-audio-tp3859731p3861278.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111005/3f7b9e62/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Conference_revised.png
Type: image/png
Size: 210283 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111005/3f7b9e62/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Conference_error.png
Type: image/png
Size: 162313 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111005/3f7b9e62/attachment-0003.png>
More information about the gstreamer-devel
mailing list