Closed katherinekelly2012 closed 3 years ago
Hi, @katherinekelly2012
Thanks for providing details!
You haven't entered a path to export it, enter a path or click the ...
button to choose a path for the exported file. I think that both .mp4
and .avi
extensions will work for x264
. I'm sorry that this module isn't documented, I'll try to add it to the docs this week.
Let me know if it works for you!
I was trying to reproduce this tonight (also in Windows 10). A couple of things:
...
button no directory selection gui thing opens for me.foo.mp4
and got the following error:Traceback (most recent call last): File "c:\users\lab_user\miniconda3\envs\mesmerize\lib\site-packages\mesmerize\common\qdialogs.py", line 52, in fn return func(self, *args, **kwargs) File "c:\users\lab_user\miniconda3\envs\mesmerize\lib\site-packages\mesmerize\viewer\modules\exporter.py", line 111, in export writer = skvideo.io.FFmpegWriter(f'{path}.{extn}', outputdict=output_params) File "c:\users\lab_user\miniconda3\envs\mesmerize\lib\site-packages\skvideo\io\ffmpeg.py", line 336, in init assert str.encode(self.extension).lower() in _FFMPEG_SUPPORTED_ENCODERS, "Unknown encoder extension: " + self.extension.lower() AssertionError: Unknown encoder extension: .avi
I found that puzzling, changed it to foo.avi of course got the same error.
Changed format to wmv2, tries to save foo.avi, and keep getting the error.
Back in the powershell I get:
%(asctime)s %(levelname)s %(pathname)s %(lineno)s %(message)s Normalizing image for 8bit video output Normalizing image for 8bit video output %(asctime)s %(levelname)s %(pathname)s %(lineno)s %(message)s Creating ffmpeg writer Creating ffmpeg writer %(asctime)s %(levelname)s %(pathname)s %(lineno)s %(message)s AssertionError: Unknown encoder extension: .avi Traceback (most recent call last): File "c:\users\lab_user\miniconda3\envs\mesmerize\lib\site-packages\mesmerize\common\qdialogs.py", line 52, in fn return func(self, *args, **kwargs) File "c:\users\lab_user\miniconda3\envs\mesmerize\lib\site-packages\mesmerize\viewer\modules\exporter.py", line 111, in export writer = skvideo.io.FFmpegWriter(f'{path}.{extn}', outputdict=output_params) File "c:\users\lab_user\miniconda3\envs\mesmerize\lib\site-packages\skvideo\io\ffmpeg.py", line 336, in init assert str.encode(self.extension).lower() in _FFMPEG_SUPPORTED_ENCODERS, "Unknown encoder extension: " + self.extension.lower() AssertionError: Unknown encoder extension: .avi
@EricThomson Do you have ffmpeg installed? Not sure how that works with conda on windows. Did you try without specifying an extension?
I get the same thing when I don't specify an extension.
In terms of ffmpeg, it is being used by opencv -- output of print(cv2.getBuildInformation()` in my mesmerize environment:
Video I/O: DC1394: NO FFMPEG: YES (prebuilt binaries) avcodec: YES (58.91.100) avformat: YES (58.45.100) avutil: YES (56.51.100) swscale: YES (5.7.100) avresample: YES (4.0.0)
But I don't have it installed generally for use in my Windows path.
Edit: I just added ffmpeg to my Windows machine more generally so it's in my Windows Path, and I'm getting the same error.
Closing due to inactivity.
Describe the bug
When I attempt to export my video I get the pop up form, but when I press the second export I get the following error:
AssertionError: Unknown encoder extension
To Reproduce
Expected behavior I expected it to export
Copy paste message from the error window (if any)
This is the error from the 'Show Details':
Traceback (most recent call last): File "c:\users\katherine\miniconda3\envs\mesmerize\lib\site-packages\mesmerize\common\qdialogs.py", line 52, in fn return func(self, *args, **kwargs) File "c:\users\katherine\miniconda3\envs\mesmerize\lib\site-packages\mesmerize\viewer\modules\exporter.py", line 111, in export writer = skvideo.io.FFmpegWriter(f'{path}.{extn}', outputdict=output_params) File "c:\users\katherine\miniconda3\envs\mesmerize\lib\site-packages\skvideo\io\ffmpeg.py", line 336, in init assert str.encode(self.extension).lower() in _FFMPEG_SUPPORTED_ENCODERS, "Unknown encoder extension: " + self.extension.lower() AssertionError: Unknown encoder extension:
Copy-paste or take a screenshot of the terminal that Mesmerize is running in
Make sure the entire stack trace is visible, and all messages relevant to the issue are visible.
If relevant, messages from the batch manager terminal
Screenshots
Operating System & specs (CPU, RAM etc.). Please complete the following information:
Details about your Mesmerize install