BradTotaro / python-video4linux2

Automatically exported from code.google.com/p/python-video4linux2
0 stars 0 forks source link

MH12 and MPEG are not recognised PIL formats #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
MH12 is described here:
http://www.mjmwired.net/kernel/Documentation/video4linux/cx2341x/README.hm12

Original comment by mungew...@gmail.com on 7 Feb 2009 at 3:40