Video mixer pipeline missing when audio is added

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

Video mixer pipeline missing when audio is added

Richard
Hi All,

Just when I thought I could start coding the next gremlin occurs

gst-launch -e videomixer name=mix ! ffmpegcolorspace ! mpeg2enc !
mpegtsmux name=mux ! filesink location=/tmp/a.ts videotestsrc
pattern=1 ! video/x-raw-yuv,width=10,height=10,framerate=20/1 !
videorate ! videoscale ! videobox border-alpha=0 top=0 left=0 ! mix.
filesrc location=BBC1_DVBS.ts ! decodebin name=demux ! videoscale !
video/x-raw-yuv, width=320,height=288 ! videorate ! mix. demux. !
queue ! audioconvert ! lame bitrate=64 ! mux.

The above is the command that resizes the MPEG.TS stream and
videomixes SNOW on the top of the picture (this is later to be
replaced with an image)... and then adds the audio track.
Theoretically quite simple but in the above command does not show the
PiP SNOW when the audio track is added. If I remove the audio pipeline
then PiP works (but obviously without audio)

I dont understand why adding the audio track to the MPEGTSMUX the
VideoTestSrc pipeline does not work.

Any ideas?

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

Re: Video mixer pipeline missing when audio is added

Richard
For the sake of others who might find it interesting (and not myself
sending mails for the sake of it) the Zorder in the VideoMixer is
important. I dont know how it thumb-sucks the ordering but being
explicit solved the problems.

gst-launch -e videomixer name=mix sink_0::zorder=1 sink_1::zorder=0 !
ffmpegcolorspace ! videoscale ! video/x-raw-yuv, width=320,height=288
! mpeg2enc quantisation=16 ! mpegtsmux name=mux ! filesink
location=/tmp/a.ts videotestsrc pattern=0 !
video/x-raw-yuv,width=100,height=100,framerate=25/1 ! videoscale !
videobox border-alpha=0 top=0 left=0 ! mix. filesrc
location=BBC1_DVBS.ts ! decodebin2 name=demux ! mix. demux. ! queue !
audioconvert ! lame bitrate=64 ! mux.


Richard

On 13 April 2012 21:56, Richard <[hidden email]> wrote:

> Hi All,
>
> Just when I thought I could start coding the next gremlin occurs
>
> gst-launch -e videomixer name=mix ! ffmpegcolorspace ! mpeg2enc !
> mpegtsmux name=mux ! filesink location=/tmp/a.ts videotestsrc
> pattern=1 ! video/x-raw-yuv,width=10,height=10,framerate=20/1 !
> videorate ! videoscale ! videobox border-alpha=0 top=0 left=0 ! mix.
> filesrc location=BBC1_DVBS.ts ! decodebin name=demux ! videoscale !
> video/x-raw-yuv, width=320,height=288 ! videorate ! mix. demux. !
> queue ! audioconvert ! lame bitrate=64 ! mux.
>
> The above is the command that resizes the MPEG.TS stream and
> videomixes SNOW on the top of the picture (this is later to be
> replaced with an image)... and then adds the audio track.
> Theoretically quite simple but in the above command does not show the
> PiP SNOW when the audio track is added. If I remove the audio pipeline
> then PiP works (but obviously without audio)
>
> I dont understand why adding the audio track to the MPEGTSMUX the
> VideoTestSrc pipeline does not work.
>
> Any ideas?
>
> Richard
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel