Subparse giving EOS in between for a external subtitle file

DeepakRohan deepak027rohan077 at gmail.com
Sat May 26 12:41:44 UTC 2018


Hi Guys,

     I have an application (gstreamer 1.6.3) where I add external subtitle
file with the existing audio-video playback.
Then when I add the external subtitle file attached with the mail.
Invictus.srt
<http://gstreamer-devel.966125.n4.nabble.com/file/t376334/Invictus.srt>  
Invictus.srt
<http://gstreamer-devel.966125.n4.nabble.com/file/t376334/Invictus.srt>  

I dont know if I was able to attach the external subtitle file properly or
not.

But after adding external subtitle (creating another link for adding
subtitle playback along with audio-video playback), the subtitle content was
visible till the 5mins 22sec.
After that subtitle stopped coming.

On debugging from gstreamer logs I found out that I get an EOS event from
subparse element with the below logs:

0:00:44.500556006   766 0xb4a15fb0 LOG                
subparse gstsubparse.c:1533:handle_buffer:<ext_subparser> Parsing line
'47'
0:00:44.501618672   766 0xb4a15fb0 LOG                
subparse gstsubparse.c:1533:handle_buffer:<ext_subparser> Parsing line
'00:05:25,616 --> 00:05:28,577'
0:00:44.502105339   766 0xb4a15fb0 LOG                
subparse gstsubparse.c:841:parse_subrip_time: parsing timestamp
'00:05:25,616'
0:00:44.502248672   766 0xb4a15fb0 LOG                
subparse gstsubparse.c:841:parse_subrip_time: parsing timestamp
'00:05:28,577'
0:00:44.502653339   766 0xb4a15fb0 INFO               
subparse gstsubparse.c:463:convert_encoding:<ext_subparser> invalid
UTF-8!
0:00:44.503177339   766 0xb4a15fb0 WARN               
subparse gstsubparse.c:484:convert_encoding:<ext_subparser> could not
convert string from 'ANSI_X3.4-1968' to UTF-8: Invalid byte sequence in
conversion input
0:00:44.503348339   766 0xb4a15fb0 LOG                
subparse gstsubparse.c:493:convert_encoding:<ext_subparser>
successfully converted 4096 characters from ANSI_X3.4-1968 to UTF-8
0:00:44.503795672   766 0xb4a15fb0 WARN               
subparse gstsubparse.c:484:convert_encoding:<ext_subparser> could not
convert string from 'ANSI_X3.4-1968' to UTF-8: Invalid byte sequence in
conversion input
0:00:44.503981672   766 0xb4a15fb0 LOG                
subparse gstsubparse.c:493:convert_encoding:<ext_subparser>
successfully converted 8192 characters from ANSI_X3.4-1968 to UTF-8
0:00:44.504401339   766 0xb4a15fb0 WARN               
subparse gstsubparse.c:484:convert_encoding:<ext_subparser> could not
convert string from 'ANSI_X3.4-1968' to UTF-8: Invalid byte sequence in
conversion input
0:00:44.504580339   766 0xb4a15fb0 LOG                
subparse gstsubparse.c:493:convert_encoding:<ext_subparser>
successfully converted 12288 characters from ANSI_X3.4-1968 to UTF-8.



And later  I also get below logs:
0:00:44.525600672   766 0xb4a15fb0 DEBUG              
subparse gstsubparse.c:1604:gst_sub_parse_sink_event: Handling eos
event
0:00:44.526058006   766 0xb4a15fb0 DEBUG              
subparse gstsubparse.c:1617:gst_sub_parse_sink_event: EOS. Pushing
remaining text (if any)

.



But the same external subtitle file plays fine on (PC) totem with gstreamer
version 1.2.4.

Also, if I convert the same file to utf-8 format online, then the converted
file plays properly till the end.

Let me know how to proceed along with this issue.

Thanks In Advance.
Rohan



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list