AnsweredAssumed Answered

gstreamer streaming video + audio

Question asked by Zhen Cong Tee on Jul 17, 2014
Latest reply on Aug 20, 2014 by Marco Madrigal

Hi,

I am trying to stream 2 videos, where 1 video is with sound, and the 2nd video is without sound.

The 2 video will be resized and be placed at different location at the display.

 

In order to stream 2 videos, below is the gst-launch command that i use:

     gst-launch filesrc location=a.mp4 typefind=true ! aiurdemux ! vpudec ! mfw_isink axis-left=0 axis-top=0 disp-width=640 disp-height=480 & Gst-launch filesrc location=b.mp4 typefind=true ! aiurdemux ! vpudec ! mfw_isink axis-left=640 axis-top=0 disp-width=640 disp-height=480

 

However, the pipeline above only stream the video and no audio available. How can i include the streaming of audio for the a.mp4? I tried:

     gst-launch filesrc location=a.mp4 typefind=true ! aiurdemux ! vpudec ! mfw_isink axis-left=0 axis-top=0 disp-width=640 disp-height=480 & gst-launch filesrc location=a.mp4 typefind=true ! aiurdemux ! beepdec ! alsasink & gst-launch filesrc location=b.mp4 typefind=true ! aiurdemux ! vpudec ! mfw_isink axis-left=640 axis-top=0 disp-width=640 disp-height=480

but the video and audio of the a.mp4 is not in sync.

 

Any idea what i am missing here?

I cannot use gplay or playbin2, as i need to stream 2 video at the same time, and need to resize and reposition the video.

 

Thank you.

 

Regards,

Zhen Cong Tee

Outcomes