hilarycheng / easycap-somagic-linux

Automatically exported from code.google.com/p/easycap-somagic-linux
0 stars 0 forks source link

user code not capturing full frames correctly #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I've compiled the user code and kernel code on/for my raspberry pi. I seem 
to get slightly better results using the user code but I do not seem to be 
getting whole frames and the frames seem to be drawing over each other. (see 
attachments)

I am running:
# somagic-capture --iso-transfers=85 | ffmpeg -f rawvideo -pix_fmt uyvy422 -s 
720x576 -y -an -r pal -i - -f image2 foo-%03d.jpg

I am not sure what iso-transfers mean, but the higher the longer i get almost 
full frames (85 gave me about 20 good frames in a row @ 4 fps)

I think there might be some kind of sync issue or the device is not sending 
whole frames.

Is there a way of modifying the code so it only outputs whole frames?

Also as a side question, is it possible to get somagic to scale each frame?

Attached are some captured frames, including the first frame, a good frame and 
a few corrupted frames.

Let me know if more information is required. I am happy to test/try other 
things and report back if i can be of any use.

Cheers.

md

Original issue reported on code.google.com by md.ve...@gmail.com on 2 Jan 2015 at 2:36

Attachments:

GoogleCodeExporter commented 9 years ago
Hi again,

With --sync=1 I get slightly better results plus the output below:

bad sync on line 122 @32 (0020)
bad sync on line 122 @0 (0000)
resync after 281 @280(0118)
bad sync on line 219 @996 (03e4)
bad sync on line 219 @0 (0000)
resync after 441 @440(01b8)
bad sync on line 87 @216 (00d8)
bad sync on line 87 @0 (0000)
resync after 483 @482(01e2)
bad sync on line 186 @14 (000e)
resync after 857 @870(0366)
bad sync on line 202 @578 (0242)
bad sync on line 202 @0 (0000)
resync after 441 @440(01b8)
bad sync on line 327 @900 (0384)
bad sync on line 327 @0 (0000)
resync after 441 @440(01b8)
bad sync on line 335 @804 (0324)
bad sync on line 335 @0 (0000)
bad sync on line 335 @0 (0000)
resync after 103 @102(0066)
bad sync on line 3 @46 (002e)
resync after 607 @652(028c)
bad sync on line 148 @492 (01ec)
bad sync on line 148 @0 (0000)
resync after 441 @440(01b8)
bad sync on line 156 @28 (001c)
resync after 55 @82(0052)
bad sync on line 274 @606 (025e)
bad sync on line 274 @0 (0000)
resync after 441 @440(01b8)
bad sync on line 79 @516 (0204)
bad sync on line 79 @0 (0000)
resync after 441 @440(01b8)
bad sync on line 1 @368 (0170)
bad sync on line 1 @0 (0000)
resync after 281 @280(0118)
bad sync on line 44 @240 (00f0)
resync after 617 @856(0358)
bad sync on line 102 @180 (00b4)
bad sync on line 102 @0 (0000)
resync after 171 @170(00aa)
bad sync on line 141 @542 (021e)
bad sync on line 141 @0 (0000)
resync after 131 @130(0082)

Original comment by md.ve...@gmail.com on 2 Jan 2015 at 3:30

GoogleCodeExporter commented 9 years ago
I think i am not receiving all the packets from the usb bus. Any ideas on how 
to check/fix ??

Original comment by md.ve...@gmail.com on 8 Feb 2015 at 5:44