Hi all, The program vbi2srt generates subrip files (unicode) from teletext data in the same directory as either the input file or the output file. Either the video input or video output must be a video device. I've only tested this program with ivtv-0.4.0 and a PVR-350 on an AMD64 and a P3 machines. The resulting srt files are in utf8 format so all languages should be possible.
http://www.linuxowl.com/software/vbi2srt-0.1.2.tar.bz2 Grabbing from /dev/video0: # vbi2srt -o /tmp/my-video.mpeg -v -T 15 Creates /tmp/my-video.srt, shows process as it goes along, records for 15 minutes. Grabbing from file: (PVR-350 required for this) # vbi2srt -i /tmp/my-video.mpeg -v -p881 Creates /tmp/my-video.srt, shows process as it goes along, page 881, exits when finished reading mpeg file. # vbi2srt -h Purpose: Grab subtitles from vbi stream for IVTV Usage: vbi2srt [OPTIONS]... -h --help Prints help and exits -V --version Prints version and exits -C --chart Prints character mapping charts and exits -v --verbose Print verbose information -d --debug Print debug information -x --hex print HEX codes -a --ascii print ascii characters -tNUMBER --time-offset=NUMBER time offset for subtitles (secs) -TNUMBER --duration=NUMBER recording duration (mins) -iSTRING --video-in=STRING video input device or file (default /dev/video0) -oSTRING --video-out=STRING video output device or file (default /dev/video16) -DSTRING --vbi-device=STRING vbi device (default /dev/vbi0) -sSTRING --srt=STRING subrip file (default <video-in>.srt) -pNUMBER --page=NUMBER page number for subtitles (100-899) (default 888) -fSTRING --font=STRING use font (NOT USED) locale is "POSIX", CODESET is "ANSI_X3.4-1968" Grabbing from /dev/video0: # vbi2srt -o /tmp/my-video.mpeg -v -T 15 Creates /tmp/my-video.srt, shows process as it goes along, records for 15 minutes. Grabbing from file: # vbi2srt -i /tmp/my-video.mpeg -v -p881 Creates /tmp/my-video.srt, shows process as it goes along, page 881, exits when finished reading mpeg file. Many thanks to Johan Duinkerken for his inspiration and help developing this program. Regards Duncan _______________________________________________ ivtv-devel mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-devel
