subtitles on vlc

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

subtitles on vlc

Amit Kulkarni-5
Hello,

I got a video in another language and a matching .srt file for playing
subtitle on screen, when I play it in vlc. I get this in xterm

[0x154034af3a58] main xml reader error: XML reader not found
[0x154032471d58] main xml reader error: XML reader not found
[0x154037af2758] main xml reader error: XML reader not found
[0x15403b12f758] main xml reader error: XML reader not found
[0x154032471d58] main xml reader error: XML reader not found
[0x15403b12f758] main xml reader error: XML reader not found

How to get the subtitles working on vlc?

thanks
Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

David Coppa
On Fri, Jul 5, 2013 at 2:49 AM, Amit Kulkarni <[hidden email]> wrote:

> Hello,
>
> I got a video in another language and a matching .srt file for playing
> subtitle on screen, when I play it in vlc. I get this in xterm
>
> [0x154034af3a58] main xml reader error: XML reader not found
> [0x154032471d58] main xml reader error: XML reader not found
> [0x154037af2758] main xml reader error: XML reader not found
> [0x15403b12f758] main xml reader error: XML reader not found
> [0x154032471d58] main xml reader error: XML reader not found
> [0x15403b12f758] main xml reader error: XML reader not found

I have not tried to rebuild the port (yet), but this is strange, since
our vlc ports has xml2 support enabled...

Brad?

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

Alexey Suslikov
In reply to this post by Amit Kulkarni-5
Amit Kulkarni <amitkulz <at> gmail.com> writes:

> I got a video in another language and a matching .srt file for playing
> subtitle on screen, when I play it in vlc. I get this in xterm

Giving a fact you use different language (and port has libxml enabled)...

> [0x154034af3a58] main xml reader error: XML reader not found

... this may indicate xml reader instantiation failure - possibly due to
locale initialization failure.

Running under ktrace may give a clue.

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

David Coppa
On Fri, Jul 5, 2013 at 9:43 AM, Alexey E. Suslikov
<[hidden email]> wrote:

> Amit Kulkarni <amitkulz <at> gmail.com> writes:
>
>> I got a video in another language and a matching .srt file for playing
>> subtitle on screen, when I play it in vlc. I get this in xterm
>
> Giving a fact you use different language (and port has libxml enabled)...
>
>> [0x154034af3a58] main xml reader error: XML reader not found
>
> ... this may indicate xml reader instantiation failure - possibly due to
> locale initialization failure.
>
> Running under ktrace may give a clue.
>

Good point. Try with "ktrace -Bdi vlc".

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

Christian Weisgerber
In reply to this post by David Coppa
David Coppa <[hidden email]> wrote:

> > I got a video in another language and a matching .srt file for playing
> > subtitle on screen, when I play it in vlc. I get this in xterm
> >
> > [0x154034af3a58] main xml reader error: XML reader not found
>
> I have not tried to rebuild the port (yet), but this is strange, since
> our vlc ports has xml2 support enabled...

... and .srt isn't XML-based to begin with.

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

David Coppa
On Fri, Jul 5, 2013 at 4:06 PM, Christian Weisgerber <[hidden email]> wrote:

> David Coppa <[hidden email]> wrote:
>
>> > I got a video in another language and a matching .srt file for playing
>> > subtitle on screen, when I play it in vlc. I get this in xterm
>> >
>> > [0x154034af3a58] main xml reader error: XML reader not found
>>
>> I have not tried to rebuild the port (yet), but this is strange, since
>> our vlc ports has xml2 support enabled...
>
> ... and .srt isn't XML-based to begin with.

Uh. You're right :P

So, why is vlc barfing about xml reader errors?

Btw, a ktrace should be useful, as suggested before.

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

Alexey Suslikov
In reply to this post by Christian Weisgerber
Christian Weisgerber <naddy <at> mips.inka.de> writes:

>
> David Coppa <dcoppa <at> gmail.com> wrote:
>
> > > I got a video in another language and a matching .srt file for playing
> > > subtitle on screen, when I play it in vlc. I get this in xterm
> > >
> > > [0x154034af3a58] main xml reader error: XML reader not found
> >
> > I have not tried to rebuild the port (yet), but this is strange, since
> > our vlc ports has xml2 support enabled...
>
> ... and .srt isn't XML-based to begin with.

http://forum.videolan.org/viewtopic.php?f=13&t=39171
http://forum.videolan.org/viewtopic.php?f=13&t=103611

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

Juan Francisco Cantero Hurtado
In reply to this post by David Coppa
On Fri, Jul 05, 2013 at 09:38:59AM +0200, David Coppa wrote:

> On Fri, Jul 5, 2013 at 2:49 AM, Amit Kulkarni <[hidden email]> wrote:
> > Hello,
> >
> > I got a video in another language and a matching .srt file for playing
> > subtitle on screen, when I play it in vlc. I get this in xterm
> >
> > [0x154034af3a58] main xml reader error: XML reader not found
> > [0x154032471d58] main xml reader error: XML reader not found
> > [0x154037af2758] main xml reader error: XML reader not found
> > [0x15403b12f758] main xml reader error: XML reader not found
> > [0x154032471d58] main xml reader error: XML reader not found
> > [0x15403b12f758] main xml reader error: XML reader not found
>
> I have not tried to rebuild the port (yet), but this is strange, since
> our vlc ports has xml2 support enabled...
>
> Brad?

He's aware of this bug. I reported the bug to him a year ago.

--
Juan Francisco Cantero Hurtado http://juanfra.info

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

Amit Kulkarni-5
In reply to this post by David Coppa
On Fri, Jul 5, 2013 at 9:35 AM, David Coppa <[hidden email]> wrote:

> On Fri, Jul 5, 2013 at 4:06 PM, Christian Weisgerber <[hidden email]>
> wrote:
> > David Coppa <[hidden email]> wrote:
> >
> >> > I got a video in another language and a matching .srt file for playing
> >> > subtitle on screen, when I play it in vlc. I get this in xterm
> >> >
> >> > [0x154034af3a58] main xml reader error: XML reader not found
> >>
> >> I have not tried to rebuild the port (yet), but this is strange, since
> >> our vlc ports has xml2 support enabled...
> >
> > ... and .srt isn't XML-based to begin with.
>
> Uh. You're right :P
>
> So, why is vlc barfing about xml reader errors?
>
> Btw, a ktrace should be useful, as suggested before.
>
>
starting vlc -vvv test.flv I get this snip. (how do I enable USE xml like
the emerge gentoo folks tell of...)

 [0x79b4e2b5d58] main xml reader debug: no xml reader module matching "any"
could be loaded
[0x79b4e2b5d58] main xml reader debug: TIMER module_need() : 0.118 ms -
Total 0.118 ms / 1 intvls (Avg 0.118 ms)
[0x79b4e2b5d58] main xml reader error: XML reader not found
[0x79b53489f58] main xml reader debug: looking for xml reader module: 1
candidate
[0x79b53489f58] main xml reader debug: no xml reader module matching "any"
could be loaded


ktrace doesn't point to anything

 31539 vlc      GIO   fd 4 read 8 bytes
       "\M-8$0\0\0\0\0\0"
 31539 vlc      RET   read 4096/0x1000
 31539 vlc      CALL  mmap(0,4206592,0<PROT_NONE>,0x2<MAP_PRIVATE>,4,0)
...skipping...
       "[\^[[32;1m0xf80321fd958\^[[0m] "
 31539 vlc      RET   write 27/0x1b
 31539 vlc      CALL  write(2,140187732364368,30)
 31539 vlc      GIO   fd 2 wrote 30 bytes
       "main xml reader error: \^[[31;1m"
 31539 vlc      RET   write 30/0x1e
 31539 vlc      CALL  write(2,140187732364576,20)
 31539 vlc      GIO   fd 2 wrote 20 bytes
       "XML reader not found"
 31539 vlc      RET   write 20/0x14
 31539 vlc      CALL  write(2,140187732364352,27)
 31539 vlc      GIO   fd 2 wrote 27 bytes
       "[\^[[32;1m0xf80321fd958\^[[0m] "
 31539 vlc      RET   write 27/0x1b
 31539 vlc      CALL  write(2,140187732364368,30)
 31539 vlc      GIO   fd 2 wrote 30 bytes
       "main xml reader error: \^[[31;1m"
 31539 vlc      RET   write 30/0x1e
 31539 vlc      CALL  write(2,140187732364576,20)
 31539 vlc      GIO   fd 2 wrote 20 bytes
       "XML reader not found"
 31539 vlc      RET   write 20/0x14
 31539 vlc      CALL  write(2,17043118079549,5)
 31539 vlc      GIO   fd 2 wrote 5 bytes
       "\^[[0m
       "
 31539 vlc      RET   write 5
 31539 vlc      CALL  clock_gettime(CLOCK_REALTIME,140187732370968)
 31539 vlc      STRU  struct timespec { 1373070067.833428610 }

Anyway a kind soul sent me a diff to have ffmpeg to enable libass support,
the .srt file is then converted to .ass file (funny, no?). He also told me
that the patch has been submitted to Brad... I asked for him to post the
diff here, ao that it can get reviewed. I will start building it later.

Thanks for your help everybody!
Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

Brad Smith-14
On 05/07/13 8:36 PM, Amit Kulkarni wrote:
> starting vlc -vvv test.flv I get this snip. (how do I enable USE xml like
> the emerge gentoo folks tell of...)

You can't. It is already enabled.

>   [0x79b4e2b5d58] main xml reader debug: no xml reader module matching "any"
> could be loaded
> [0x79b4e2b5d58] main xml reader debug: TIMER module_need() : 0.118 ms -
> Total 0.118 ms / 1 intvls (Avg 0.118 ms)
> [0x79b4e2b5d58] main xml reader error: XML reader not found
> [0x79b53489f58] main xml reader debug: looking for xml reader module: 1
> candidate
> [0x79b53489f58] main xml reader debug: no xml reader module matching "any"
> could be loaded

I love the debug output; pretty useless.

>
> ktrace doesn't point to anything
>
>   31539 vlc      GIO   fd 4 read 8 bytes
>         "\M-8$0\0\0\0\0\0"
>   31539 vlc      RET   read 4096/0x1000
>   31539 vlc      CALL  mmap(0,4206592,0<PROT_NONE>,0x2<MAP_PRIVATE>,4,0)
> ...skipping...
>         "[\^[[32;1m0xf80321fd958\^[[0m] "
>   31539 vlc      RET   write 27/0x1b
>   31539 vlc      CALL  write(2,140187732364368,30)
>   31539 vlc      GIO   fd 2 wrote 30 bytes
>         "main xml reader error: \^[[31;1m"
>   31539 vlc      RET   write 30/0x1e
>   31539 vlc      CALL  write(2,140187732364576,20)
>   31539 vlc      GIO   fd 2 wrote 20 bytes
>         "XML reader not found"
>   31539 vlc      RET   write 20/0x14
>   31539 vlc      CALL  write(2,140187732364352,27)
>   31539 vlc      GIO   fd 2 wrote 27 bytes
>         "[\^[[32;1m0xf80321fd958\^[[0m] "
>   31539 vlc      RET   write 27/0x1b
>   31539 vlc      CALL  write(2,140187732364368,30)
>   31539 vlc      GIO   fd 2 wrote 30 bytes
>         "main xml reader error: \^[[31;1m"
>   31539 vlc      RET   write 30/0x1e
>   31539 vlc      CALL  write(2,140187732364576,20)
>   31539 vlc      GIO   fd 2 wrote 20 bytes
>         "XML reader not found"
>   31539 vlc      RET   write 20/0x14
>   31539 vlc      CALL  write(2,17043118079549,5)
>   31539 vlc      GIO   fd 2 wrote 5 bytes
>         "\^[[0m
>         "
>   31539 vlc      RET   write 5
>   31539 vlc      CALL  clock_gettime(CLOCK_REALTIME,140187732370968)
>   31539 vlc      STRU  struct timespec { 1373070067.833428610 }
>
> Anyway a kind soul sent me a diff to have ffmpeg to enable libass support,
> the .srt file is then converted to .ass file (funny, no?). He also told me
> that the patch has been submitted to Brad... I asked for him to post the
> diff here, ao that it can get reviewed. I will start building it later.

That's just converting the subtitles into a different format and working
around the problem instead of fixing whatever is wrong with VLC.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

Stuart Henderson-6
In reply to this post by Amit Kulkarni-5
On 2013/07/05 19:36, Amit Kulkarni wrote:
> ktrace doesn't point to anything

You just included the output where it prints the errors.
There might be something in the pages before this.
Using ktrace -B will skip some spam.

Also try running with LD_DEBUG set in the environment and look for
failures.

Reply | Threaded
Open this post in threaded view
|

Re: subtitles on vlc

Stuart Henderson-6
[re: "main xml reader error: XML reader not found" playing files with subtitles]

On 2013/07/06 08:39, Stuart Henderson wrote:

> On 2013/07/05 19:36, Amit Kulkarni wrote:
> > ktrace doesn't point to anything
>
> You just included the output where it prints the errors.
> There might be something in the pages before this.
> Using ktrace -B will skip some spam.
>
> Also try running with LD_DEBUG set in the environment and look for
> failures.
>

I've just noticed this too. I've got a bit more debug output but not
really much further.

Tested building a new package with vlc's .la files included as a test,
no difference.

Running with LD_DEBUG set causes playback to fail, vlc hangs and
needs a kill -9, though it does attempt to load subtitles before this
and fails in a similar-looking way, output at
http://junkpile.org/vlc-subtitle.txt (search for "not found") -
no errors noticed from ld.so.  (The "attempt to dlopen `...`"
lines are from a local patch to vlc).