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

Vladimir Voroshilov voroshil at gmail.com
Sat Mar 24 09:52:34 CET 2007


2007/3/22, Ötvös Attila <oattila at chello.hu>:
>
> 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?
>
> With tformat=bw mplayer crashes in vo_draw_alpha_rgb32 immediately
after enabling teletext ('X' pressing) with "No teletext" OSD message

tformat=gray same as above (at ~10% scanned pages)

only tformat=text is working for me.


-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at jabber.ru
ICQ: 95587719



More information about the MPlayer-dev-eng mailing list