Difference in these two pipelines

Thiago Santos thiago.sousa.santos at collabora.com
Tue Apr 22 13:51:22 PDT 2014


On 04/22/2014 03:55 AM, Dylan Broome wrote:
> Hi all,
>
> Im trying to decode a video/subtitle stream, overlay the subtitles on 
> the video via textoverlay and save the resulting video.
>
> (using gstreamer 1.2.0)
>
> I figured this should be the pipeline :
>
> gst-launch-1.0 filesrc location=rear_2014-04-02_0.mkv ! matroskademux 
> name=demux ! h264parse ! imxvpudec ! textoverlay name=overlay ! 
> imxvpuenc_h264 bitrate=1024 ! h264parse ! matroskamux ! filesink 
> location=debug.mkv demux. ! katedec ! overlay.
>
> This does not convert the subtitles properly. The following pipeline 
> does work :
>
> gst-launch-1.0 filesrc location=rear_2014-04-02_0.mkv ! matroskademux 
> name=demux ! h264parse ! imxvpudec ! textoverlay name=overlay ! 
> imxvpuenc_h264 bitrate=1024 ! h264parse ! matroskamux ! filesink 
> location=debug.mkv filesrc location=rear_2014-04-02_0.mkv ! 
> matroskademux ! katedec ! overlay.
>
> As you can see I use 2 filesrcs and 2 matroskademuxs. What am I doing 
> wrong in the first pipeline? Is this possible to do with only 1 
> filesrc/demux ?
Yes, but you need to have queues after the matroskademux src pads as 
otherwise you have a single thread driving 2 pads and it will lead to a 
deadlock. Adding the queues will make sure each branch has its own 
thread running.

Regards,

>
> Regards,
> Dylan
>
>
>
>
> _______________________________________________
> 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/20140422/37794c30/attachment.html>


More information about the gstreamer-devel mailing list