PVR-150 can only output in MH12 and MPEG. Neither of which are recognised
by PIL.
--
simon@myth:~/python-video4linux2-fps$ ./recordpics.py -p HM12
Trying to create directory test
Could not create directory [Errno 17] File exists: 'test'
Recording /dev/video0:0 with format MPEG at (640, 480)
Traceback (most recent call last):
File "./recordpics.py", line 94, in <module>
Run()
File "./recordpics.py", line 77, in Run
d.SaveJPEG(filename, 70)
File "/home/simon/python-video4linux2-fps/pyv4l2.py", line 877, in SaveJPEG
img = self.CaptureImage(buffer)
File "/home/simon/python-video4linux2-fps/pyv4l2.py", line 860, in
CaptureImage
1)
File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1806, in
frombuffer
return apply(fromstring, (mode, size, data, decoder_name, args))
File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1745, in
fromstring
im.fromstring(data, decoder_name, args)
File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 571, in fromstring
d = _getdecoder(self.mode, decoder_name, args)
File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 374, in
_getdecoder
return apply(decoder, (mode,) + args + extra)
ValueError: unknown raw mode
--
Original issue reported on code.google.com by mungew...@gmail.com on 7 Feb 2009 at 3:33
Original issue reported on code.google.com by
mungew...@gmail.com
on 7 Feb 2009 at 3:33