FFMpeg error when adding screenshots · Issue #80 · animebook/animebook.github.io · GitHub
Skip to content

FFMpeg error when adding screenshots  #80

Open

Description

@temccarthy

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.

Activity

  1. soamsy commented on Jun 29, 2023

    @soamsy
    Member

    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.

  2. temccarthy commented on Jul 1, 2023

    @temccarthy
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions