Using GStreamer to read a video file and a subtitle file

billault billault.matthieu at gmail.com
Fri Jul 6 07:32:43 PDT 2012


Dear all,

I need to use Gstreamer to read a video in the .avi format and subtitles in
.srt format.

First, i used to read the video only : 

gst-launch-0.10 \
        filesrc location=$@ ! \
        avidemux name=demux \
        demux.video_00 ! \
        queue ! \
        mfw_vpudecoder ! \
        v4l2sink  \
        demux.audio_00 ! \
        queue ! \
        mad ! \
        alsasink

witch works.
Then , i'm trying to add subtitles using subtitleoverlay :

gst-launch-0.10 \
        filesrc location=$1 ! \
        avidemux name=demux \
        demux.video_00 ! \
        queue ! \
        avisubtitle ! \
        subparse ! \
        subtitleoverlay name=overlay ! \
        ffmpegcolorspace ! \
        fakesink \
        demux.audio_00 ! \
        queue ! \
        mad ! \
        alsasink \
        filesrc location=$2 ! \
        queue ! \
        overlay.

but the programe freezes with this error : Subtitle sink is blocked but we
have no subtitle caps
I don't know if my subtitle file is wrong or i'm not using subtitleoverlay
properly.

best regards,

billault.

ps : sorry for my english, i'm french.


--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Using-GStreamer-to-read-a-video-file-and-a-subtitle-file-tp4655521.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list