Difference in these two pipelines

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

Difference in these two pipelines

Dylan Broome
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 ?

Regards,
Dylan



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

Re: Difference in these two pipelines

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


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