|
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.
|