[MPlayer-dev-eng] [PATCH] TV teletext

Ötvös Attila oattila at chello.hu
Wed Mar 21 23:15:48 CET 2007


Hi All!

I created patch to TV teletext.

Required lib: zvbi-0.2.25
Download:
http://sourceforge.net/project/showfiles.php?group_id=2599

New files:
stream/tvi_vbi.h
stream/tvi_vbi.c

Main modify:
1, New tv parameters:
tdevice=<teletext device> (example: /dev/vbi0)
tformat=<text|bw|gray>
tpage=<100-999>

2, If set tdevice then tvi_init() call vbi_init() in tvi_vbi.c

3, vbi_init() open tdevice and set grabber() and event_handler() functions.

4, grabber() read data and call vbi_decode().

5, event_handler() process decoded data.
text mode: create text with vbi_print_page()
bw or gray mode: create RGBA32 image with vbi_draw_vt_page()

6, vo_update_text_teletext() display text page in libvo/sub.c

7, spudec_heartbeat_teletext() render RGBA32 image to SPU in spudec.c.

Don't support:
- set directly page number (Only increase/decrase).
- display find page number
- update time in header (if found page)
- use teletext links
- transparent pages (only black color is transparent)
- use DVB input
- color mode (required color spu patch)
- mencoder (record tv with teletext subtitle)

Know bugs:
- some UTF-8 character bad in text mode

Comments?

Best regards!
Attila
-------------- next part --------------
A non-text attachment was scrubbed...
Name: teletext-docs.patch
Type: text/x-diff
Size: 935 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070321/761148ed/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: teletext.patch
Type: text/x-diff
Size: 60027 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070321/761148ed/attachment-0001.patch>


More information about the MPlayer-dev-eng mailing list