Robert Winder wrote:

I think I messed up the reply to this message, my apologies.

Great stuff, thanks. Tested vbi2srt 0.1.7 and it seems to work as
advertised ;-) Although i got a couple of questions.

- is the additional locale setting really needed before starting
recordserver because when i set the locale LANG=US or
LC_CTYPE=en_GB.UTF-8 python crashes on me.

          File "/usr/lib/python2.3/site-packages/mmpython/mediainfo.py", line 
85, in ?
            LOCAL_ENCODING = locale.getpreferredencoding();
          File "/usr/lib/python2.3/locale.py", line 417, in getpreferredencoding
            setlocale(LC_CTYPE, "")
          File "/usr/lib/python2.3/locale.py", line 381, in setlocale
            return _setlocale(category, locale)
        locale.Error: unsupported locale setting

As you already worked this out it seems to be Unicode related.
export LC_CTYPE=POSIX will work and then in local_conf.py LOCALE='latin-1'. I've two boxes where I run vbi2srt one with and one without Unicode support.

vbi2srt -h will report what the locale and codeset are, last line.

vbi2srt -C will print character mappings, checking around characters 0x7C if they report a '?' then Unicode support is not enabled. Of course the xterm and xserver should be configured to use Unicode fonts. Teletext seems to use ISO-646 character mappings, these characters are remapped for different languages:
0x23,0x24,0x40,0x5b,0x5c,0x5d,0x5e,0x5f,0x60,0x7b,0x7c,0x7d,0x7e
eg: 7B { '?' 7C | '?' 7D } '?' means non-Unicode.

  If needed where is the best place to put it because i don't start
  freevo from the cmd line ?. And isn't there a locale setting in
  freevo itself that can be used ?

I use a boot script to start the freevo recordserver and webserver. which contains:
...
LC_ALL=en_GB.UTF-8
LC_CTYPE=en_GB.UTF-8
export LC_ALL LC_CTYPE
...
case "$1" in
    start)
        boot_mesg "Setting IVTV driver controls"
        loadproc /usr/bin/ivtvctl -x 1 -b teletext,wss > /dev/null 2>&1
        #/usr/bin/ivtvctl -x 1 -b teletext,wss,vps > /dev/null 2>&1
        evaluate_retval
        boot_mesg "Starting freevo recordserver..."
        loadproc /usr/bin/freevo recordserver start
        sleep 1
        boot_mesg "Starting freevo webserver..."
        loadproc /usr/bin/freevo webserver start
        ;;
...


  Although it seems to work without the locale setting there is some
  extraneous info in the subtitles for example;

  00:08:26,493 --> 00:08:31,056
  <c:#FFFF00>Had you got it, you would have had
  an absolutely perfect round.

  Is this somehow related to the locale setting ?.

These are colour codes.

- You don't mention anywhere with what version of freevo or ivtv this
should work. I'm using freevo 1.5.3 and ivtv 0.4.0, should vbi2srt
work with this versions or should i upgrade ?

ivtv-0.4.0
freevo-1.5.4 (have also used freevo-1.5.3)

TIA.

   /Robert


On Sunday, January 1, 2006, 2:01:51 PM, Duncan wrote:


Hi all,


vbi2srt-0.1.7 the program that uses an IVTV card to record a TV program
and extract the subtitles is now here.
The only real change from version 0.1.6 is that the default teletext subtitle page number is now none, which means don't extract subtitles. I've been using vbi2srt-0.1.7 very successfully for the last week recording all sorts of stuff on channels with and without VPS data.


http://www.linuxowl.com/software/vbi2srt-0.1.7.tar.bz2


vbishow-0.1.8 the program that displays vbi data (teletext, vps and wss)
from an IVTV card is also released.
This version works with both Unicode and non-Unicode terminals, two fonts are included in tar file can be loaded into the X-server and the
font name can passed on the command line or the xterm can be set to use
the font with xtermcontrol --font="...". Because of the limited number
of characters available only English, German and Czech work properly on
non-Unicode xterms.


http://www.linuxowl.com/software/vbishow-0.1.8.tar.bz2


The home page http://www.linuxowl.com/ has more information and some pictures of these application.


Cheers
Duncan


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to