Suported video format by bob.io.VideoReader in BOB 1.2.2

18 views
Skip to first unread message

Devrim Doner

unread,
Mar 6, 2015, 8:42:36 AM3/6/15
to bob-...@googlegroups.com
Hello,

Antispoofing.optflow was produced an error like this;
Traceback (most recent call last):
  File "./bin/motion_framediff.py", line 24, in <module>
    sys.exit(antispoofing.motion.script.framediff.main())
  File "/home/ubuntu/work/antispoofing.optflow-1.0.5/eggs/antispoofing.motion-1.1.1-py2.7.egg/antispoofing/motion/script/framediff.py", line 76, in main
    input = bob.io.VideoReader(filename)
RuntimeError: The detected decoder (`h264' = `H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10') for the video stream on the input video file `database/train/real/client001_session01_webcam_authenticate_adverse_1.mov' is not currently supported by this version of Bob. Convert the video file to a supported codec or disable the `check' flag on the VideoReader object (if you are sure of what you are doing).

But i check the supported codec on bob site and set the file which is supported (ffmpeg).

Which format is supported by Bob 1.2.2?

Thanks.

André Anjos

unread,
Mar 6, 2015, 8:52:49 AM3/6/15
to bob-...@googlegroups.com
Bob uses ffmpeg (or libav) to read the input file. So, the answer is "whatever your version of ffmpeg/libav supports". 

To know exactly what decoders are supported by the ffmpeg/libav version you have installed, you can do like this:

$ python
...
>>> import bob
>>> import pprint
>>> pprint.pprint(bob.io.supported_videoreader_formats())
>>> pprint.pprint(bob.io.supported_video_codecs())

For example, in my present system, these commands show:

{'avi': {'extensions': ('avi',),
         'long_name': 'AVI (Audio Video Interleaved)',
         'name': 'avi'},
 'mov': {'extensions': ('mov', 'mp4', 'm4a', '3gp', '3g2', 'mj2'),
         'long_name': 'QuickTime / MOV',
         'name': 'mov,mp4,m4a,3gp,3g2,mj2'},
 'mp4': {'extensions': ('mov', 'mp4', 'm4a', '3gp', '3g2', 'mj2'),
         'long_name': 'QuickTime / MOV',
         'name': 'mov,mp4,m4a,3gp,3g2,mj2'}}

and

{'ffv1': {'decode': True,
          'delay': False,
          'encode': True,
          'experimental': False,
          'hardware_accelerated': False,
          'id': 34,
          'long_name': 'FFmpeg video codec #1',
          'lossless': False,
          'name': 'ffv1',
          'pixfmts': None,
          'specific_framerates_hz': ()},
 'h264': {'decode': True,
          'delay': True,
          'encode': True,
          'experimental': False,
          'hardware_accelerated': False,
          'id': 28,
          'long_name': 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
          'lossless': False,
          'name': 'h264',
          'pixfmts': None,
          'specific_framerates_hz': ()},
 'libvpx': {'decode': True,
            'delay': False,
            'encode': True,
            'experimental': False,
            'hardware_accelerated': False,
            'id': 141,
            'long_name': 'libvpx VP8',
            'lossless': False,
            'name': 'libvpx',
            'pixfmts': None,
            'specific_framerates_hz': ()},
 'libx264': {'decode': True,
             'delay': True,
             'encode': True,
             'experimental': False,
             'hardware_accelerated': False,
             'id': 28,
             'long_name': 'libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
             'lossless': False,
             'name': 'libx264',
             'pixfmts': ('yuv420p',
                         'yuvj420p',
                         'yuv422p',
                         'yuvj422p',
                         'yuv444p',
                         'yuvj444p',
                         'nv12',
                         'nv16'),
             'specific_framerates_hz': ()},
 'mjpeg': {'decode': True,
           'delay': False,
           'encode': True,
           'experimental': False,
           'hardware_accelerated': False,
           'id': 8,
           'long_name': 'MJPEG (Motion JPEG)',
           'lossless': False,
           'name': 'mjpeg',
           'pixfmts': None,
           'specific_framerates_hz': ()},
 'mpeg1video': {'decode': True,
                'delay': True,
                'encode': True,
                'experimental': False,
                'hardware_accelerated': False,
                'id': 1,
                'long_name': 'MPEG-1 video',
                'lossless': False,
                'name': 'mpeg1video',
                'pixfmts': None,
                'specific_framerates_hz': ()},
 'mpeg2video': {'decode': True,
                'delay': True,
                'encode': True,
                'experimental': False,
                'hardware_accelerated': False,
                'id': 2,
                'long_name': 'MPEG-2 video',
                'lossless': False,
                'name': 'mpeg2video',
                'pixfmts': None,
                'specific_framerates_hz': ()},
 'mpeg4': {'decode': True,
           'delay': True,
           'encode': True,
           'experimental': False,
           'hardware_accelerated': False,
           'id': 13,
           'long_name': 'MPEG-4 part 2',
           'lossless': False,
           'name': 'mpeg4',
           'pixfmts': ('yuv420p',),
           'specific_framerates_hz': ()},
 'mpegvideo': {'decode': True,
               'delay': True,
               'encode': True,
               'experimental': False,
               'hardware_accelerated': False,
               'id': 2,
               'long_name': 'MPEG-1 video',
               'lossless': False,
               'name': 'mpegvideo',
               'pixfmts': None,
               'specific_framerates_hz': ()},
 'msmpeg4': {'decode': True,
             'delay': False,
             'encode': True,
             'experimental': False,
             'hardware_accelerated': False,
             'id': 17,
             'long_name': 'MPEG-4 part 2 Microsoft variant version 3',
             'lossless': False,
             'name': 'msmpeg4',
             'pixfmts': ('yuv420p',),
             'specific_framerates_hz': ()},
 'msmpeg4v2': {'decode': True,
               'delay': False,
               'encode': True,
               'experimental': False,
               'hardware_accelerated': False,
               'id': 16,
               'long_name': 'MPEG-4 part 2 Microsoft variant version 2',
               'lossless': False,
               'name': 'msmpeg4v2',
               'pixfmts': ('yuv420p',),
               'specific_framerates_hz': ()},
 'vp8': {'decode': True,
         'delay': False,
         'encode': True,
         'experimental': False,
         'hardware_accelerated': False,
         'id': 141,
         'long_name': 'On2 VP8',
         'lossless': False,
         'name': 'vp8',
         'pixfmts': None,
         'specific_framerates_hz': ()},
 'wmv1': {'decode': True,
          'delay': False,
          'encode': True,
          'experimental': False,
          'hardware_accelerated': False,
          'id': 18,
          'long_name': 'Windows Media Video 7',
          'lossless': False,
          'name': 'wmv1',
          'pixfmts': ('yuv420p',),
          'specific_framerates_hz': ()},
 'wmv2': {'decode': True,
          'delay': False,
          'encode': True,
          'experimental': False,
          'hardware_accelerated': False,
          'id': 19,
          'long_name': 'Windows Media Video 8',
          'lossless': False,
          'name': 'wmv2',
          'pixfmts': ('yuv420p',),
          'specific_framerates_hz': ()},
 'zlib': {'decode': True,
          'delay': False,
          'encode': True,
          'experimental': False,
          'hardware_accelerated': False,
          'id': 55,
          'long_name': 'LCL (LossLess Codec Library) ZLIB',
          'lossless': False,
          'name': 'zlib',
          'pixfmts': None,
          'specific_framerates_hz': ()}}

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dr. André Anjos
Idiap Research Institute
Centre du Parc - rue Marconi 19
CH-1920 Martigny, Suisse
Phone: +41 27 721 7763
Fax: +41 27 721 7712
http://andreanjos.org

Devrim Doner

unread,
Mar 10, 2015, 3:51:08 AM3/10/15
to bob-...@googlegroups.com
Hello,

I found a sample video on idiap web site and those are working. it seems that my video was produced via mistake settings. i will fix it. Also the other problem is about face location files. How can i produce a face location files as ".face"? I searched it in the bob packages or antispoofing packages but i did not find.

Regards,
Devrim DONER

André Anjos

unread,
Mar 10, 2015, 11:02:26 AM3/10/15
to bob-...@googlegroups.com

On Tue, Mar 10, 2015 at 8:51 AM, Devrim Doner <devrim...@gmail.com> wrote:
I found a sample video on idiap web site and those are working. it seems that my video was produced via mistake settings. i will fix it. Also the other problem is about face location files. How can i produce a face location files as ".face"? I searched it in the bob packages or antispoofing packages but i did not find.

Hello,

These files are text files with 1 line for each frame in the matching video file.

Each line corresponds to:

top-left-x top-left-y width height

Andre
Reply all
Reply to author
Forward
0 new messages