Dirk Meyer wrote:
Hi
Duncan Webb wrote:
Hi all,
I don't know if anybody is interested but one of my goals in using
freevo was to be able to record the TV with teletext subtitles. At the
moment none of the main players support subtitles from teletext so
I've written this program to extract the subtitles and write a subrip
format file so that mplayer can read display the file.
That's nice. But maybe we can go into a different direction. In Freevo
SVN, kaa.record records a stream and it is streamed over the
network. It should be possible to stream teletext data over a
different port. If Tack is done with kaa.player and kaa.canvas, it
could be possible to draw the teletext just over the xine window. This
would not only enable subtitle support, it would enable complete
teletext support. And we could also save teletext data in a different
file when recording so you can watch the recording with complete
teletext support. Tack: maybe this would also be part of kaa.player? I
don't see a reason why Freevo should know about this.
I've written another program that takes teletext data streams and
displays them on the terminal or writes them to a file.
http://www.linuxowl.com/software/vbishow-0.1.5.tar.bz2. This program
uses a modified unicode font for teletext graphic characters.
Currently it needs a ivtv card to work. One of my todo's is to add
support for bttv cards but the next step is to rewrite the ivtv record
plug-in so
that it used vbi2srt and so can generate the subtitles as it records.
This should be easy as when the input is a video device (/dev/video0) then
a mpeg file and a srt file are written. However, there should be some
way to specify the subtitle page number from the record screen. After
this I would
like to install freevo2 on a test machine and then I could help here.
I asked a question a while ago about the format of TV_CHANNELS, the
problem is that it's changed and I couldn't figure out what it should
be. Problem here is that the cable provider in Switzerland doesn't use
standard channels. If you would be so kind as to provide an example then
I could proceed with freevo2.
An ivtv tv card is required for this to work and the best for this
is a Hauppague PVR-350.
With my solution it would work with any card.
The PVR-350 is a nice card for teletext processing because it can embed
vbi data in the mpeg stream and then send the mpeg stream back through
the card to grab the vbi data. Don't think that other cards can do this.
Another nice feature is that you can run an X server on the card and connect
a Scart, s-video or composite cable to the TV (requires a bit more
horsepower than a DirectFB/SDL solution but no screen flicker.) I'm not
selling
TV cards ;-)
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. Currently only the ivtv driver
is supported.
http://www.linuxowl.com/software/vbi2srt-0.1.2.tar.bz2
Without reading the source, how do you get the data? Do you use an
external lib like libzvbi?
If the input device is /dev/video0 then the program just reads it and
writes to the output file; the card also writes the vbi data to
/dev/vbi0 and
the program reads this in a separate thread, processes it and writes a
srt file. It can be terminated with either a signal or a duration.
If the input is a mpeg file then the program reads the file and writes
the data to /dev/video16; the card write the vbi data to /dev/vbi4 and
the program
reads this device. This is where the PVR-350 shines.
No external libraries used.
P.S. I would like to use the VPS signal (or the Teletext packet 26)
to control recording times in freevo, anybody done this? It would
not be too difficult to write.
Maybe all this could be part of kaa.record, what do you think?
Can't say for certain as I'm still on Freevo 1.5.4. but give me some
time and I'll have a freevo2 install running...
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