On Fri, 2009-10-09 at 10:55 -0700, amaranth13 wrote: > Hi, > > I just had a question about how to use the zvbi command. > > I have a system with one Hauppauge PVR 150 card with Mythtv on Ubuntu > 8.04 Hardy Heron and I managed to set up Mythtv. The mythtv saves the > subtitles and I can play them with Mythtv. My problem is that I'm trying > to work out how to save subtitles with a program, and I've tried all > kinds of programs (ccextract, vbiutil, streamparser and other programs) > to extract the caption information from the saved file before I > transcode but, but that hasn't had any success. > > My next attempt is that I got a second card, which is exactly the same > maker and model as the first, and I want to save subtitles from that > card while it's saving the program from the first. Subtitles is pretty > important to me (somewhat hard of hearing) so that's why all the work on > subtitles. I was able to get subtitles from a card while it's not saving > a program, but not while it is working on a program, that's why I got > the second card.
Technically, you shouldn't need a second card, if you can coax MythTV to not turn on embedded VBI packets when recording. > I am trying to find out how to save subtitles to a textfile or even .srt > file so I can play them with vlc or mplayer for example. Now, if I use > the following command: > zvbi-ntsc-cc --cc -C subtitles -d /dev/vbi0 -p > I actually can save the subtitles by themselves in a txt file, but I > would love to have timecodes with it, and adding --filter [timecode] > doesn't add any timecodes. > Do any of you know if it's possible to save closed caption information > from a card into a file with timecodes with this zvbi command? Is there > another command that can be used to do this? cat /dev/vbi0 > foo.vbi For raw vbi: Will save all the VBI buffers and have a frame counter stuffed in at the very end of every other field (aka every frame). For sliced VBI: Will save the sliced VBI data but there are no timestamps nor frame counter. The format is documented in include/linux/videodev2.h and http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec-single/v4l2.html > If it would be possible to > save subtitles in a format that could be used right away as an .srt > file, that would be ideal, but just having timecodes in the file and > being able to get it done with just some minor changes would be good too. If you're up to the application programming task, you could just pull out the IVTV embedded packets from the MPEG stream that MythTV recorded. The packets contain are sliced VBI, and the MPEG hedaers should have the a PTS so you can sync things up later. The latest ivtv-utils code http://dl.ivtvdriver.org/ivtv/archive/1.4.x/ivtv-utils-1.4.0.tar.gz has a patched "ps-analyzer" utility that knows how to partially decode the packets: text is not displayed, but the contents of the private VBI packet are described. A recent version of include/linux/videodev2.h describes the format and the a recent version of the V4L2 specification documents the IVTV VBI Private packet format: http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec-single/v4l2.html http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec-single/v4l2.html#id2842004 That documentation doesn't describe the MPEG-2 stream formats, as those are documented in MPEG specifications. Or, I just noticed that, from vbiutil: http://www.linuxowl.com/vbiutil.html you could just use getvbi and cc2srt on the file that MythTV saves. Regards, Andy > Any help would be much appreciated, I'm kind of stuck. > > Alexandra _______________________________________________ ivtv-users mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-users
