Philip Tuckey wrote:
> Hi
> 
> I have some videos in mpeg2 PS (vob files from DVDs) and TS (recorded from 
> digital tv) formats. In addition to the video they contain subtitles, 
> which are seen and played correctly by standalone xine but not by mplayer. 
> Googling appears to indicate that mplayer is not able to read these 
> subtitles, but I could have misunderstood(?).
> 
> I would like to be able to select and display these subtitles within 
> freevo, and I see that video.xine contains code for VIDEO_NEXT_SUBTITLE 
> events. So I set VIDEO_PREFERED_PLAYER to xine and I tried to add the 
> necessary video event for xine as follows:
> 
> EVENTS['video']['SUBTITLE'] = Event(VIDEO_NEXT_SUBTITLE)
> 
> However this does not work. Freevo launches xine to play the video, but 
> pressing the 'SUBTITLE' button on my remote does not get me the subtitles, 
> nor any other feedback as far as I can see.
> 
> Can anyone help? Is my 'SUBTITLE' event for xine wrong?  Or is it possible 
> to get mplayer to display these subtitles?
> 
> For information, I have also tried the standard lang and subtitle event 
> bindings for mplayer:
> 
> EVENTS['video']['LANG'] = Event(VIDEO_SEND_MPLAYER_CMD,arg='switch_audio')
> EVENTS['video']['SUBTITLE'] = 
> Event(VIDEO_SEND_MPLAYER_CMD,arg='sub_select')
> 
> The first of them works fine - I can cycle the audio tracks - but the 
> second does not, for these mpeg2 files I am talking about.
> 
> For xine, I also tried to create a LANG event as follows:
> 
> EVENTS['video']['LANG'] = Event(VIDEO_NEXT_AUDIOLANG)
> 
> but this does not work, it seems to have no effect.

For mplayer the following works for me.

EVENTS['video']['SUBTITLE'] = Event(VIDEO_SEND_MPLAYER_CMD,
arg='vobsub_lang')

Never tested xine; the "slave" command for the next subtitle is SpuNext
so I would try:
EVENTS['video']['SUBTITLE'] = Event(VIDEO_SEND_XINE_CMD, arg='SpuNext')

The full list of bindings are in the xine-ui files: src/fb/actions.c
src/xitk/kbindings_common.c

Duncan

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to