h264 is missing from ffmpeg 3.4 from defaults channel
The tests are failing in bob.io.video when I test it locally with the new ffmpeg package:
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 111, in color_distortion
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_rK1vKY.mp4' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 183, in quality_degradation
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_PuDhNu.mp4' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 148, in frameskip_detection
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_RNAHRU.mp4' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 111, in color_distortion
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_Dy8kZP.avi' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 183, in quality_degradation
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_zLsp5F.avi' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 148, in frameskip_detection
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_oiHUDd.avi' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 111, in color_distortion
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_JP61jG.mov' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 183, in quality_degradation
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_n_tKUp.mov' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 24, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/utils.py", line 148, in frameskip_detection
format=format, check=False)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_joRyEN.mov' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_user_video_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 124, in check_user_video
codec=codec, format=format)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_kj6Rb4.mp4' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_user_video_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 124, in check_user_video
codec=codec, format=format)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest__go0J8.avi' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
ERROR: bob.io.video.test_codec.test_user_video_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 124, in check_user_video
codec=codec, format=format)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avcodec_open2(codec=`h264_nvenc'(0x1c) == `NVIDIA NVENC H.264 encoder') failed: cannot open codec context to start reading or writing video file `/tmp/bobtest_T48LeP.mov' - ffmpeg reports error -1313558101 == `Unknown error occurred''
======================================================================
FAIL: bob.io.video.test_codec.test_frameskip_format_mov_codec_wmv1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/miniconda/conda-bld/bob.io.video_1516376439700/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python2.7/site-packages/bob/io/video/test_codec.py", line 35, in check_format_codec
assert max(dist) <= maxdist, "max(distortion) %g > %g allowed for format `%s' and codec `%s'" % (max(dist), maxdist, format, codec)
AssertionError: max(distortion) 74.2393 > 55 allowed for format `mp4' and codec `mpeg2video'