Log in

View Full Version : projectx - demux dvb subtitles problem


gorang
10th March 2006, 23:38
I've problem to demux dvb subtitles from .ts files (recorded on sat channels), but not from all channels, here are examples:

http://rapidshare.de/files/15114195/20060309_2215_MTV_Adria.TS.html
http://rapidshare.de/files/15115615/20060309_2340_Viasat_History.TS.html
http://rapidshare.de/files/15116261/20060310_0002_Nat_Geographic.TS.html
all files can be played with subtitles in VLC media player (choose Ser/Scg subttile)

1st example - dvb subpictures can't be demuxed
2nd example - dvb subpictures can't be demuxed, this one has fadeout subs
3rd example - dvb subs CAN be demuxed normal in ProjectX

I've tried to change settings in ProjectX, but without good results, 0 subpictures written or ignored stream :(

Anyone with same problem, solutions??

thanks..

emmel
20th March 2006, 21:09
Hi,
The DVB_subs of your samples seem to be correct, except for one thing: The subs are sent with page_id=0. Normally, you would use page_id>0.

This can be a problem with ProjectX. If you look at the file "DVBSubpicture.java", you'll find the following lines before switch( segment_type ):


int page_id = getBits(16); //page_id

if ((page_id & fix_page_id) == 0) // exclude unwanted pages
{
stuffing();
return 0xFF;
}


I think this is the reason. You could try to modify the code to fit your purposes, or notify the dev of PX.

Bye.

dvb.matt
20th March 2006, 21:21
@emmel
you're absolutely right..

however, gorang already X-pn'ed to me at the same day, too.
and he got the fixed code.. (but hasn't clearified it in this thread)

gorang
22nd March 2006, 20:25
yep, sorry...
this is recompiled .jar 0.90.3.01 if someone have the same problem like I was
http://users.vtkom.net/~gorang/ProjectX.zip