AnsweredAssumed Answered

gstreamer external subtitles srt

Question asked by Lachezar Nikolov on Jan 6, 2014
Latest reply on Mar 31, 2014 by Yixing Kong

Hello

 

I have written about my problems with embedded subtitles https://community.freescale.com/thread/317604 . However I also have problem with playing external subtitles. The file containing the video is an mkv file. I can play its video with no problem. The subtitles are in a .srt file. I can play it on my linux box with

gst-launch-0.10 filesrc location = /mnt/hgfs/work/test_videos/Tales.from.Earthsea\[h264.dts\]\[niizk\].mkv ! decodebin2 name=dec ! subtitleoverlay name=overlay ! ffmpegcolorspace ! autovideosink  filesrc location = /mnt/hgfs/work/test_videos/Tales.from.Earthsea.srt name=subfile ! subparse ! overlay.

However when I try to play the file on my i.MX6 board with

gst-launch-0.10 filesrc location = /mnt/sdb1/kur/Tales.from.Earthsea\[h264.dts\]\[niizk\].mkv ! decodebin2 name=dec ! subtitleoverlay name=overlay ! ffmpegcolorspace ! mfw_v4lsink  filesrc location = /mnt/sdb1/kur/Tales.from.

Earthsea.srt name=subfile ! subparse ! overlay.

It exits immediately with the following printed:

MFW_GST_V4LSINK_PLUGIN 3.0.5 build on Oct 22 2013 15:33:00.

Setting pipeline to PAUSED ...

Pipeline is PREROLLING ...

ERROR: from element /GstPipeline:pipeline0/GstFileSrc:subfile: Internal data flow error.

Additional debug info:

gstbasesrc.c(2582): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:subfile:

streaming task paused, reason not-negotiated (-4)

ERROR: pipeline doesn't want to preroll.

Setting pipeline to NULL ...

Total rendered:0

Aiur: 3.0.5

Core: MKVPARSER_01.04.01  build on Dec 10 2012 15:43:34

  mime: video/x-matroska ; video/webm

  file: /usr/lib/imx-mm/parser/lib_mkv_parser_arm11_elinux.so

Content Info:

  URI:

       file:///mnt/sdb1/kur/Tales.from.Earthsea[h264.dts][niizk].mkv

  Idx File:

       /root/.aiur/.mnt.sdb1.kur.Tales.from.Earthsea[h264.dts][niizk].mkv.aidx

  Seekable  : Yes

  Size(byte): 2100598489

 

 

[--->FINALIZE aiurdemux

Freeing pipeline ...

[--->FINALIZE v4l_sink

I have no Idea what that means. Can somebody help with this?

I attach the subtitles file in case it is needed for identifying the problem.

Outcomes