Skip to content
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

FFMpeg error when adding screenshots #80

Open
temccarthy opened this issue Jun 29, 2023 · 2 comments
Open

FFMpeg error when adding screenshots #80

temccarthy opened this issue Jun 29, 2023 · 2 comments

Comments

@temccarthy
Copy link

Every time I try to add a screenshot to an anki card, I get this error:
image

I've tried restarting the browser (I'm running Thorium Version 105.0.5166.0), restarting Anki, restarting my computer, but nothing has worked.

@soamsy
Copy link
Member

soamsy commented Jun 29, 2023

Can I see your settings? You can grab the json for your settings in the extension page by clicking "Export Settings".

Also, it may be worth looking at the Chrome DevTools console output by hitting F12 and seeing what shows up there when you record a flashcard. FFmpeg will often hide the real issue in there.

@temccarthy
Copy link
Author

Here's my settings:

{
  "ankiBrowserFinalDisplay": "currentDeck",
  "ankiBrowserFinalQuery": "deck:current",
  "ankiDeck": "Master deck::Anime Mining",
  "ankiFieldTemplates": [
    {
      "behavior": "replace",
      "field": "wordDictionaryForm",
      "value": ""
    },
    {
      "behavior": "replace",
      "field": "sentence",
      "value": "{sentence}"
    },
    {
      "behavior": "replace",
      "field": "reading",
      "value": ""
    },
    {
      "behavior": "replace",
      "field": "definition",
      "value": ""
    },
    {
      "behavior": "replace",
      "field": "wordAudio",
      "value": ""
    },
    {
      "behavior": "replace",
      "field": "sentenceAudio",
      "value": "{sentence-audio}"
    },
    {
      "behavior": "replace",
      "field": "picture",
      "value": "{screenshot}"
    },
    {
      "behavior": "replace",
      "field": "pitchAccent",
      "value": ""
    },
    {
      "behavior": "replace",
      "field": "frequency",
      "value": ""
    }
  ],
  "ankiModel": "Eminent V2.4",
  "ankiServer": "http://127.0.0.1:8765",
  "ankiVocabField": "wordDictionaryForm",
  "audioClipFade": 0.2,
  "audioClipPadding": 0.5,
  "audioFfmpegFlags": "",
  "audioPlayback": "none",
  "audioVolumeMultiplier": 1,
  "forvoAudioPlayback": "none",
  "forvoAudioVolumeMultiplier": 1,
  "gifFPS": 6,
  "imageFfmpegFlags": "",
  "imageFormat": "png",
  "imageResizeHeight": 720,
  "imageResizeSelection": "height",
  "imageResizeWidth": 1280,
  "imageTiming": "middle",
  "newlineBehavior": "divs",
  "sentenceReplacements": []
}

Looking at devtools it looks like a missing audio encoder
image

As a feature request, maybe you could add an indicator somewhere that says whether the video/audio codec is supported by FFMpeg or the browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants