Pic in pic with videomixer but i haven't audio

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Pic in pic with videomixer but i haven't audio

Ivan Bortolin
This post was updated on .
Hi, i want make a pic in pic for conference's streaming.
I write this cose:

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 ! queue ! tcpserversink port=5000

and this work wery well, but how i can put the audio from the alsasrc in this streaming?
Thank
Reply | Threaded
Open this post in threaded view
|

Re: Pic in pic with videomixer but i haven't audio

Ivan Bortolin
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
Reply | Threaded
Open this post in threaded view
|

Re: Pic in pic with videomixer but i haven't audio

Stefan Sauer
On 09/30/2011 11:27 PM, Ivan Bortolin 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

1.) aac in avi is not the best idea, use mp3 for avi or use aac in mp4
2.) look at your cpu load

Stefan
> --
> 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
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pic in pic with videomixer but i haven't audio

Mike Mitchell
In reply to this post by Ivan Bortolin
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 <[hidden email]> 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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

Conference_revised.png (281K) Download Attachment
Conference_error.png (216K) Download Attachment