[MPlayer-users] (MKV/DVD) why subtitles are forced?

arnaud tonda arnaud.tonda at gmail.com
Tue Oct 5 18:17:01 CEST 2010


2010/10/5 Alexander Roalter <alex at roalter.it>

> Am 05.10.2010 01:06, schrieb arnaud tonda:
>
>
>> you certainly want to say -forcedsubsonly.  I tried this, but without a
>> good
>> result on dvd with dvdnav protocol.
>> In fact, it have the same result as -nosub :
>>
>
> yes, forcedsubsonly ... I have it in my config, so I'm not that used
> writing it.
>
>
>>     - subtitles aren't displayed, but the selection buttons on dvdnav
>> menus
>> are big white rectangle instead off dvd dependent buttons.
>>
>
> This is because DVD menus with mplayer never showed the dvd dependent
> buttons. I could be wrong, but I think there was a patch proposed quite a
> while ago that would fix these, but apparently, it hasn't been
> included/accepted this far.
>
> in fact, the patch was applied, but dvd menu feature seems to be in "beta"
mode. dvd dependent buttons are displayed if you let subtitles default.
as i have seen in the code, dvd subtitles and  dvdnav menu buttons seems to
use the same part of code, concerning SPU.
i have tried to investigate in the code but some parts are not clear for me.
i have seen that if you deactivate subtitles or choose one of them,  some
variables of the spudec handler aren't modified, more precisely "pal_heigth"
and pal_width are set to 0.

if mplayer is launched without any subtitle specific options these values
aren't set to 0.

following some traces i have added on
spudec.c:apply_palette_crop(spudec_handle_t *this,
                             unsigned crop_x, unsigned crop_y,
                              unsigned crop_w, unsigned crop_h)

with command line ./mplayer -display :0.0 -ao alsa:device=softvol
-mixer-channel Softvol -vo vdpau:deint=2 -dvd-device /media/scd0/video_ts/
dvdnav:// -nocache

crop_x > this->pal_width?               crop_x = 0, this->pal_width = 720
crop_y > this->pal_height?              crop_y = 0, this->pal_height = 572
crop_w > this->pal_width - crop_x?  crop_w = 720, this->pal_width - crop_x =
720
crop_h > this->pal_width - crop_y?   crop_h = 572,   this->pal_width -
crop_y = 720
stride*crop_h > this->image_size?    stride*crop_h
= 411840, this->image_size = 411840

crop_x > this->pal_width?               crop_x = 155, this->pal_width = 720
crop_y > this->pal_height?              crop_y = 146, this->pal_height =
572
crop_w > this->pal_width - crop_x?  crop_w = 164, this->pal_width - crop_x =
565
crop_h > this->pal_width - crop_y?   crop_h = 66,   this->pal_width - crop_y
= 574
stride*crop_h > this->image_size?    stride*crop_h = 11088, this->image_size
= 411840

with command line ./mplayer -display :0.0 -ao alsa:device=softvol
-mixer-channel Softvol -vo vdpau:deint=2 -dvd-device /media/scd0/video_ts/
dvdnav:// -nocache -nosub

crop_x > this->pal_width?               crop_x = 155, this->pal_width = 0
crop_y > this->pal_height?              crop_y = 148, this->pal_height = 0
crop_w > this->pal_width - crop_x?  crop_w = 164, this->pal_width - crop_x =
 4294967141
crop_h > this->pal_width - crop_y?   crop_h = 66,   this->pal_width - crop_y
= 4294967148
stride*crop_h > this->image_size?    stride*crop_h = 11088, this->image_size
= 0

if somebody know this code i could help.

>
>
>> i have investigated a little, and it has the same consequence if i put the
>> -slang option.
>>
>> it's a strange behaviour.
>>
>
>
> --
> cheers,
> Alex
>

-- 
Arnaud Tonda


More information about the MPlayer-users mailing list