Skip to content

decode_threads example failing on latest from PyPi and on Develop Branch #360

@samuel-davis

Description

@samuel-davis

Hello, just started using this library and loving it. Unfortunately, I really need multithreaded decoding in my program in order for it to function correctly. Do you think you could look into this for me?

Input file path I have given was an absolute path to a video file.

Stack trace I am receiving.

Traceback (most recent call last):
  File "PyAV/examples/decode_threads.py", line 24, in <module>
    for f in pool.map(decode, 'test_video_30FPS.mp4'):
  File "/home/sam/.virtualenvs/pyav/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 641, in result_iterator
    yield fs.pop().result()
  File "/home/sam/.virtualenvs/pyav/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 455, in result
    return self.__get_result()
  File "/home/sam/.virtualenvs/pyav/local/lib/python2.7/site-packages/concurrent/futures/thread.py", line 63, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/sam/projects/dev-rta/integration_solution_ffmpeg/PyAV/examples/decode_threads.py", line 9, in decode
    container = av.open(input_file)
  File "av/container/core.pyx", line 262, in av.container.core.open
  File "av/container/core.pyx", line 218, in av.container.core.Container.__cinit__
  File "av/container/core.pyx", line 117, in av.container.core.ContainerProxy.__init__
  File "av/container/core.pyx", line 188, in av.container.core.ContainerProxy.err_check
  File "av/utils.pyx", line 105, in av.utils.err_check
av.AVError: [Errno 21] Is a directory: '/'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions