-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MP3 audio can not be played on my ipad #17
Comments
The addon calls the downloaded file
cd /path/to/anki/media
for i in *.mp3; do
if (($(file "$i" | grep -wic Ogg))); then
mv "$i" "${i%.*}.ogg"
fi
done
for i in *.ogg; do ffmpeg -i "$i" "${i%.*}.mp3"; done |
Yep, the mp3 extension is in name only, as this (somehow) fixed the issue for anki web not playing the audio. I wish I knew how I could easily do conversions to the desired format, I am familiar with Looking back at it now, I see some extensions do seem to use ffmpeg for more complex tasks: I might look into their implementation as it looks like windows users do not need to install ffmpeg seperately for the addon (although linux and mac users are told to do so) |
Hi, I've also run into issues playing audio downloaded by this plugin on iPad and iPhone. I found another similar plugin, https://github.com/realmayus/anki_forvo_dl, where the audio downloaded from Forvo does play properly in iOS. This might be a good reference for fixing the issue! I really like the simplicity of your downloader so I hope you can try to address this problem. Appreciate it! |
Thank you, I skimmed the repository and it seems Anki itself has a function to add media files, I assume they do the necessary conversions there. |
A new branch has been published with an untested fix for the issue. I will only publish if someone with Anki for IOS confirms that the audios added with this version will play. |
I just tested your new branch by cloning locally and making a new plugin folder. Audio downloads successfully and on desktop the downloads play fine. But still does not play on iOS. Let me know if any other debugging details would be helpful! |
I realized iOS does not support the .ogg format - it gives an error saying .mp3 is required. |
yup, which is why I hoped I could make a conversion to mp3 somehow. I will continue to look for a conversion solution, but I might keep this option as a last resort. |
Hi there, |
No description provided.
The text was updated successfully, but these errors were encountered: