Hi Markus,
Am Mittwoch, den 04.06.2008, 14:50 +0200 schrieb Markus Rechberger:
> Hi Frank,
> 
> On Wed, Jun 4, 2008 at 1:37 PM, Frank Neuber <[EMAIL PROTECTED]> wrote:
> > Hi Markus,
> > I captured some data from the /dev/vbi0 and converted this into a ppm
> > image in the same way as I did with the video data. I got this
> > http://kernelport.org/em28xx/vbi-sf.ppm
> > It looks similar to yours. But a little fuzzy. How did you convert the
> > vbi data into an image? Maybe this is my failure.
> > Now I'll try to use the rawvbi data I get from /dev/vbi in libzvbi
> >
> 
> try to use "osc" with it, this is actually what I used.
./test/osc -d /dev/vbi0  -3 -p
Segmentation fault (core dumped)

(gdb) set args  -d /dev/vbi0  -3 -p
(gdb) r
Starting program: /home/neuber/Lichtie/i386/zvbi-0.2.30/test/osc -d /dev/vbi0  
-3 -p
[Thread debugging using libthread_db enabled]
[New Thread -1211693392 (LWP 1272)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211693392 (LWP 1272)]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x0805b4aa in _vbi_log_vprintf (log_fn=0, user_data=0x0, mask=VBI_LOG_INFO, 
source_file=0x807d68e "io-v4l2k.c", context=0x807e81a "vbi_capture_v4l2k_new", 
    templ=0x807c82c "Failed with errno %d, errmsg '%s'.", ap=0xbf82c488 "") at 
misc.c:423
#2  0x0805b52e in _vbi_log_printf (log_fn=0, user_data=0x0, mask=VBI_LOG_INFO, 
source_file=0x807d68e "io-v4l2k.c", context=0x807e81a "vbi_capture_v4l2k_new", 
    templ=0x807c82c "Failed with errno %d, errmsg '%s'.") at misc.c:446
#3  0x0805a8c5 in vbi_capture_v4l2k_new (dev_name=0x808d008 "/dev/vbi0", fd=-1, 
buffers=5, services=0xbf82c59c, strict=0, errstr=0xbf82c5a0, trace=0)
    at io-v4l2k.c:1485
#4  0x0804b6e0 in main (argc=0, argv=0x199) at osc.c:708
(gdb) quit

Hmmm, I'll have a look ....
BTW: I's version zvbi-0.2.30


> cat /dev/vbi0 | mplayer -demuxer rawvideo -rawvideo w=1440:h=12:y8 -
> (you might have to play around with the w and h value
And I wrote a converter by myself, mplayer is great ;-)

> 
> there's a small typo in em28xx-video
>      1090             if (!list_empty(&dev->inqueue)&&!(*f))
>      1091                     (*f) = list_entry(dev->inqueue.next,struct 
> em28xx_frame_t, frame);
>      1092             if (!list_empty(&dev->vbi_inqueue)&!(*vbif)) <- should 
> be &&
OK

> it's part of the upcoming update...
> beside that the cutting algorithm seems to work very well.
OK, looks well. I try to fix the segfault

Frank



_______________________________________________
Em28xx mailing list
[email protected]
http://mcentral.de/mailman/listinfo/em28xx

Reply via email to