rbash88 / pyffmpeg

Automatically exported from code.google.com/p/pyffmpeg
0 stars 0 forks source link

Error opening media when using standalone executables with either py2app or pyinstaller #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a Python script that uses pyffmpeg
2. Use either py2app or pyinstaller to create an application bundle or a 
standalone executable
3. Opening a movie file fails with an error message

What is the expected output? What do you see instead?
When running the Python script, the media file opens with no problems. When 
running the standalone executables created with either py2app or pyinstaller, I 
get the error message below:

File "pyffmpeg.pyx", line 1949, in pyffmpeg.FFMpegReader.open (pyffmpeg.c:11574)
File "pyffmpeg.pyx", line 2049, in pyffmpeg.FFMpegReader.__finalize_open 
(pyffmpeg.c:12435)
File "pyffmpeg.pyx", line 1425, in pyffmpeg.VideoTrack.init (pyffmpeg.c:7098)
AttributeError: 'NoneType' object has no attribute 'zeros'

What version of the product are you using? On what operating system?

I'm using pyffmpeg 2.0. This happens with py2app on Mac OS 10.5 and with 
pyinstaller on Windows XP.

Please provide any additional information below.

Thanks a lot,

Adriano

Original issue reported on code.google.com by adriano....@gmail.com on 27 Jun 2011 at 2:52

GoogleCodeExporter commented 8 years ago
Please, ignore this report. This problem happened because 
pyffmpeg_numpybindings.so hadn't been automatically included in the application 
bundle created by py2app. If I manually specify that pyffmpeg_numpybindings.so 
has to be included, the problem goes away.

Thank you,

Adriano

Original comment by adriano....@gmail.com on 27 Jun 2011 at 4:41