Closed aleksejrs closed 6 months ago
Yes, it looks like it coudn't find FFmpeg, but the strange thing is that it should have given you an warning when you tried to use "Generate Mobile Video Cards..." option (Please install FFmpeg...
).
Does it happen again when you restart Anki? And after you restart Anki press Ctrl+Shift+; to open up Debug Console, type the following commands and press Ctrl+Enter. What is the output? In your case it should be /usr/bin/ffmpeg
.
from distutils.spawn import find_executable
print(find_executable("ffmpeg"))
Yes, and the command works:
>>> from distutils.spawn import find_executable
... print(find_executable("ffmpeg"))
/usr/bin/ffmpeg
Please use Anki - Tools - Add-ons - Open Add-ons Folder... and replace player.py
in the movies2anki folder with the updated version downloaded from this gist. It should fix this issue.
It seems to work, thanks.
When selecting File → Switch Profile
in a session where I generated mobile cards:
An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "aqt/main.py", line 250, in unloadProfile
File "anki/hooks.py", line 26, in runHook
File "/home/fc/.local/share/Anki2/addons/movies2anki/player.py", line 595, in stopWorker
mw.worker.cancel()
File "/home/fc/.local/share/Anki2/addons/movies2anki/player.py", line 431, in cancel
self.fp.terminate()
File "subprocess.py", line 1462, in terminate
File "subprocess.py", line 1457, in send_signal
OSError: [Errno 3] No such process
It works.
I'll close it as it's about Anki 2.0 and I created a new issue #28 to maybe fix the error message if File → Switch Profile was used while generating mobile cards.
Debian GNU/Linux testing
Anki Version 2.0.52 Qt 4.8.1 PyQt 4.9.1
FFmpeg is
/usr/bin/ffmpeg
When I choose "
Generate Mobile Video Cards…
", the following message appears, with a "Close
" button. When I press theClose
button, a progress window appears with the name of the oldest video I have added, and "0%
". There is no additional CPU load.