简体   繁体   中英

Receive video+audio with pipeline

My PIPELINE-DESCRIPTION only video works:

"rtspsrc protocols=tcp location=" + urlStream_ + " latency=300 ! decodebin3 ! autovideosink ! autoaudiosink";

But... I would like receive video+audio. I only receive it on the first frame and no audio:

"rtspsrc protocols=tcp location=" + urlStream_ + " latency=300 ! decodebin3 ! autovideosink ! autoaudiosink";

You will need to connect the autoaudiosink the the decodebin3 . Currently you are connecting the sink to the video sink - which obviously is bogus.

It it also advised to use a queue after each demuxer pad. Try:

"rtspsrc protocols=tcp location=" + urlStream_ + " latency=300 ! decodebin3 name=decodebin ! queue ! autovideosink decodebin. ! queue ! autoaudiosink";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM