subtitle encoding

977 views
Skip to first unread message

netmaster

unread,
Feb 12, 2013, 4:36:46 AM2/12/13
to stalker-m...@googlegroups.com
what encoding MAG250 using for DVB subtitles and can it be changed somehow?
I do convert subs from teletext to dvb subs track with VLC, and it works fine, but MAG do not show any special characters. Instead of öäü is pair of unknown letters, probably from russian alphabet. I did try do alter encoding from the VLC but no effect. Does someone have any experience about the teletext subtitles in MAG250?

Aleksey Zhurbitsky

unread,
Feb 12, 2013, 4:51:15 AM2/12/13
to stalker-m...@googlegroups.com
It looks like a the problem with the font.

Try to add in /c/player.js after 
stb.SetMicVolume(100);
line
stb.SetSubtitlesFont("/usr/lib/fonts/Ubuntu.ttf");

Oscar Kratz

unread,
Feb 12, 2013, 6:42:28 AM2/12/13
to stalker-m...@googlegroups.com
Im sorry if I hijack your thread with a non-stalkerMW question, but please share how you transcode teletext subtitles to dvb subtitles!
It would be so helpful. Ive been working with it for days without success.

It works if i transcode the videostream as well, and vlc burns the subs in to the pictures correctly with the following command:
cvlc -vvv udp://@233.0.0.34:6010 --vbi-page=199 --sout '#transcode{vcodec=mp2v,vb=8192,soverlay,scodec=dvbs,senc=dvbsub}:udp{mux=ts,dst=233.0.0.120:6010}'

This takes a LOT of CPU though, and I can make MAG250 identify the DVB-subtitles if i do the following:
cvlc -vvv udp://@233.0.0.34:6010 --vbi-page=199 --sout '#transcode{scodec=dvbs,senc=dvbsub}:udp{mux=ts,dst=233.0.0.120:6010}' 
the problem is that MAG 250 does not display anything at all.
I get the following error message from VLC when the text is supposed to be displayed:
"dvbsub encoder error: chroma RGBA not supported"
So I guess the problem is in VLC, but I just want to know how you done it. I may be on the wrong track.

Theres not much info on google...

netmaster

unread,
Feb 12, 2013, 1:29:02 PM2/12/13
to stalker-m...@googlegroups.com
#transcode{scodec=subt}:std{access=udp{ttl=5},mux=ts,dst=237.0.10.41:1234}

will add subtitles without re-encoding the video. At least with VLC version 1.1.13 I use.
hope it's helps ...

netmaster

unread,
Feb 13, 2013, 3:25:50 AM2/13/13
to stalker-m...@googlegroups.com
tried this, but no change.
The fact, that wrong symbols appearing in pairs shows that this is most likely a encoding problem, not just a wrong symbols in font. I think, that VLC sends dvbs encoded to UTF-8, but MAG250 shows something else. Because the first 128 characters of UTF-8 correspond one-to-one with ASCII (and that part is showing sorrectly), but all above that is encoded with longer byte sequences what make them show as pair of letters. Question is, how to change MAG250 subtitles to UTF-8?

Aleksey Zhurbitsky

unread,
Feb 13, 2013, 3:57:41 AM2/13/13
to stalker-m...@googlegroups.com
In fact, as I found out, DVB subtitles is just a bitmap. Try to play your stream in VLC and you should see the exact same wrong symbols.
If so, then the problem is in VLC or in the incorrect transcoding options.

netmaster

unread,
Feb 13, 2013, 7:09:01 AM2/13/13
to stalker-m...@googlegroups.com
nope, just tested. Dont know hot this is possible, but same stream played with VLC shows äöü, only some "very sepecial" like õ is missing, but this is tolerable.
I took photo about PC monitor with VLC, and TV with MAG250 side by side playing same stream, and if you like, I can send it to you to prove my point.

Oscar Kratz

unread,
Feb 13, 2013, 7:28:36 AM2/13/13
to stalker-m...@googlegroups.com
I dont think that #transcode{scodec=subt} generated DVB-subtitles. In fact, it seems like it do generate teletext subtitles, but for some reason, MAG250 identifies the subs! There seem to be different kind of teletext subtitles, and MAG250 can handle the kind that VLC generates with subt.

So the question is more what encoding MAG250 use to encode teletext subtitles, and how to change it? Can there be a problem with locale in the box? Or is the problem in stbapp?
 Thanks for the string btw, it works, but I have the exact same problem with åäö. The stream work with VLC if you use standard UTF8 encoding for subtitles, but MAG250 does not encode correctly.

Aleksey Zhurbitsky

unread,
Feb 13, 2013, 8:47:09 AM2/13/13
to stalker-m...@googlegroups.com
Please make dump of this stream (using dumprtp or dumpstream) and sent it to us. We will try to figure out what is wrong.

Oscar Kratz

unread,
Feb 13, 2013, 9:49:15 AM2/13/13
to stalker-m...@googlegroups.com
cmore15mb.ts is the raw stream from the satelite. 
dumpemo.ts is the stream with the transcoded subtitles that MAG 250 can display (But not correctly encode) All special characters that work with VLC is just displayed as random symbols in the MAG250.

Best regards
cmore15mb.ts
dumpemo.ts
Message has been deleted
Message has been deleted
Message has been deleted

Aleksey Zhurbitsky

unread,
Feb 14, 2013, 3:36:41 AM2/14/13
to stalker-m...@googlegroups.com
It seems that these files are corrupted. At least they do not play in VLC.
Try to make a zip archive of them.
Message has been deleted

netmaster

unread,
Feb 14, 2013, 12:41:25 PM2/14/13
to stalker-m...@googlegroups.com
did you get right files or not?
Do I need to post my files too?

Oscar Kratz

unread,
Feb 14, 2013, 1:55:51 PM2/14/13
to stalker-m...@googlegroups.com
Please post your files too, google groups just lags out when i try to attach something :/ Doesnt matter what os/webbrowser/computer i use either

netmaster

unread,
Feb 14, 2013, 2:35:42 PM2/14/13
to stalker-m...@googlegroups.com
upload files to dropbox or somewhere else and post only links there.
I will look tomorrow, how I can save my stream. It is not that simple, and since you already have yours, I was hoping that these would be enough to resolve problem.

Oscar Kratz

unread,
Feb 14, 2013, 2:47:32 PM2/14/13
to Stalker Middleware on behalf of netmaster
Ill post a link to them tomorrow morning!

Skickat från min iPhone

14 feb 2013 kl. 20:35 skrev "netmaster, Stalker Middleware" <stalker-middleware+noreply-APn2w...@googlegroups.com>:

upload files to dropbox or somewhere else and post only links there.
I will look tomorrow, how I can save my stream. It is not that simple, and since you already have yours, I was hoping that these would be enough to resolve problem.

--
Вы получили это сообщение, поскольку подписаны на группу Stalker Middleware.
 
Чтобы отказаться от подписки на эту группу и перестать получать из нее сообщения, отправьте электронное письмо на адрес stalker-middlew...@googlegroups.com.
Чтобы добавлять сообщения в эту группу, отправьте письмо по адресу stalker-m...@googlegroups.com.
Просмотреть это обсуждение в Сети можно по адресу https://groups.google.com/d/msg/stalker-middleware/-/klng7A7GV48J.
Подробнее о функциях можно узнать на странице https://groups.google.com/groups/opt_out.
 
 

Oscar Kratz

unread,
Feb 15, 2013, 1:57:34 AM2/15/13
to stalker-m...@googlegroups.com
Lets try now:

http://217.25.244.81/dumps/



Den torsdagen den 14:e februari 2013 kl. 20:47:32 UTC+1 skrev Oscar Kratz:
Ill post a link to them tomorrow morning!

Skickat från min iPhone

14 feb 2013 kl. 20:35 skrev "netmaster, Stalker Middleware" <stalker-middleware+noreply-APn2wQfIBBOqkccpeM2e63XXYd-0n5zs...@googlegroups.com>:

upload files to dropbox or somewhere else and post only links there.
I will look tomorrow, how I can save my stream. It is not that simple, and since you already have yours, I was hoping that these would be enough to resolve problem.

--
Вы получили это сообщение, поскольку подписаны на группу Stalker Middleware.
 
Чтобы отказаться от подписки на эту группу и перестать получать из нее сообщения, отправьте электронное письмо на адрес stalker-middleware+unsub...@googlegroups.com.
Чтобы добавлять сообщения в эту группу, отправьте письмо по адресу stalker-middleware@googlegroups.com.

Aleksey Zhurbitsky

unread,
Feb 15, 2013, 7:02:50 AM2/15/13
to stalker-m...@googlegroups.com
Yes, now we see that the problem with the encoding. We need more time to investigate this issue.


On Friday, February 15, 2013 8:57:34 AM UTC+2, Oscar Kratz wrote:


Den torsdagen den 14:e februari 2013 kl. 20:47:32 UTC+1 skrev Oscar Kratz:
Ill post a link to them tomorrow morning!

Skickat från min iPhone

14 feb 2013 kl. 20:35 skrev "netmaster, Stalker Middleware" <stalker-middleware+noreply-APn2wQfIBBOqkccpeM2e63XXYd-0n5zs...@googlegroups.com>:

upload files to dropbox or somewhere else and post only links there.
I will look tomorrow, how I can save my stream. It is not that simple, and since you already have yours, I was hoping that these would be enough to resolve problem.

--
Вы получили это сообщение, поскольку подписаны на группу Stalker Middleware.
 
Чтобы отказаться от подписки на эту группу и перестать получать из нее сообщения, отправьте электронное письмо на адрес stalker-middleware+unsub...@googlegroups.com.
Чтобы добавлять сообщения в эту группу, отправьте письмо по адресу stalker-m...@googlegroups.com.

Oscar Kratz

unread,
Feb 19, 2013, 4:31:43 AM2/19/13
to stalker-m...@googlegroups.com
Hi!

Have you identified where the problem is yet?

Aleksey Zhurbitsky

unread,
Feb 19, 2013, 7:54:07 AM2/19/13
to stalker-m...@googlegroups.com
Yes, the main problem is in the subtitles encoding. For now player expect win-1251.
If it is possible, we will automatically detect encoding.
But you must understand that this will be fix in firmware, so it will not be quick.

Oscar Kratz

unread,
Feb 22, 2013, 6:36:24 AM2/22/13
to stalker-m...@googlegroups.com
I understand it may take a while to sort out.
Can you give me an estimation of how long it might take?

I tried to change the .qmap and .qm files to swedish keymap and locale in /usr/share/qt-4.6.0/ in the box, but it didnt work.
I also tried loadkmap directly in the box without sucess.
May it be stbapp thats compiled without UTF8 encoding?

Aleksey Zhurbitsky

unread,
Feb 22, 2013, 9:50:43 AM2/22/13
to stalker-m...@googlegroups.com
Unfortunately I do not know how long it will take.

Oscar Kratz

unread,
Feb 26, 2013, 2:03:58 AM2/26/13
to stalker-m...@googlegroups.com
But does it have to do with your stbapp, or is it in the embedded OS? If the problem lays in the embedded OS, and we knew where to look for the problem, it would be possible to sort it out our selves.

Aleksey Zhurbitsky

unread,
Feb 26, 2013, 4:27:06 AM2/26/13
to stalker-m...@googlegroups.com
This is stbapp problem.

Aleksey Zhurbitsky

unread,
Mar 1, 2013, 3:44:22 AM3/1/13
to stalker-m...@googlegroups.com
We released a new firmware version. It has a changes in the subtitles processing.
Try to update to 0.2.16-beta (use autoupdate in embeded portal) and check again subtitles encoding.

Oscar Kratz

unread,
Mar 1, 2013, 9:06:23 AM3/1/13
to stalker-m...@googlegroups.com
It works!
Thank you all for the quick fix!
Reply all
Reply to author
Forward
0 new messages