kelciour / movies2anki

Convert movies with subtitles to watch them with Anki. Inspired by subs2srs
GNU Affero General Public License v3.0
306 stars 29 forks source link

generate mobile cards #33

Closed ademavsar closed 6 months ago

ademavsar commented 6 months ago

Hello, I have reviewed the previous issues and followed your suggestions. but the problem still persists.

image

Python 3.9.15 Qt 5.15.2 PyQt 5.15.5
Platform: Windows-10-10.0.19045

Traceback (most recent call last):
  File "C:\Users\monster\AppData\Roaming\Anki2\addons21\939347702\player.py", line 841, in run
    raise CalledProcessError(retcode, cmd_debug)
subprocess.CalledProcessError: Command '['"C:\\Program Files (x86)\\ffmpeg\\bin\\ffmpeg.exe" "-y" "-ss" "0:01:18.120" "-i" "C:/Users/monster/Desktop/S01E03 - Heart of Ice.mp4" "-t" "3.586" "-af" "afade=t=in:st=0.000:d=0.100,afade=t=out:st=3.486:d=0.100" "-map" "0:v:0" "-map" "0:a:0" "-ac" "2" "-vf" "scale=\'min(-2,iw)\':\'min(320,ih)\',setsar=1" "-pix_fmt" "yuv420p" "-sn" "-map_metadata" "-1" "-c:v" "libx264" "-profile:v" "main" "-level:v" "3.1" "-movflags" "+faststart" "C:\\Users\\monster\\AppData\\Local\\Temp\\anki_temp\\S01E03_-_Heart_of_Ice_0.01.18.120-0.01.21.706.wemb"']' returned non-zero exit status 4294967274.

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Add Hyperlink ['318752047', 2023-06-18T14:39, 'None', '']
Advanced Browser ['874215009', 2023-10-21T17:34, 'None', '']
AwesomeTTS - Add speech to your flashcards ['1436550454', 2024-04-15T17:06, 'None', '']
Batch Editing ['291119185', 2023-10-26T03:38, 'None', '']
Edit Field During Review Cloze ['385888438', 2024-01-03T10:19, '6.18', mod]
Editor Scripts  Symbols ['2065559429', 2022-07-25T20:48, 'None', '']
Image Editor ['307397307', 2022-09-08T07:09, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T10:15, 'None', '']
Review Heatmap ['1771074083', 2022-06-30T04:43, 'None', '']
The KING of Button Add-ons ['374005964', 2024-01-27T13:19, 'None', mod]
Watch Foreign Language Movies with Anki  movies2anki  subs2srs ['939347702', 2024-04-29T21:36, 'None', mod]

===IDs of active AnkiWeb add-ons===
1374772155 1436550454 1771074083 2065559429 291119185 307397307 318752047 374005964 385888438 874215009 939347702

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
'' ['Pop-up Dictionary', 0, 'None', '']
BetterSearch ['1052724801', 2024-03-06T19:25, 'None', '']
DeepL Translator ['972129549', 2024-04-26T23:11, '1.0.0', mod]
Paste Images As WebP ['1151815987', 2024-04-23T13:42, 'None', mod]
Review Hotmouse ['1928346827', 2024-01-03T08:51, '2.8', mod]
Review Lookup ['1745211643', 2022-06-22T10:12, 'None', '']
Study Time Stats ['1247171202', 2024-02-24T19:59, 'None', '']
Zoom24 - Keep zoom level after reboot Fixed by Shige ['1923741581', 2024-05-02T04:23, 'None', mod]
kelciour commented 6 months ago

S01E03_-_Heart_of_Ice_0.01.18.120-0.01.21.706.wemb

It looks like the video extension is incorrect and FFmpeg doesn't know what to do.

It should be 'webm' (not 'wemb').

ademavsar commented 6 months ago

The cards I create with the plugin are created as ".wemb". How can I fix it?

image

kelciour commented 6 months ago

To fix already existing cards => https://docs.ankiweb.net/browsing.html#find-and-replace

To fix new cards => Tools > Add-ons > Watch ... > Config > "video extension": "webm"

ademavsar commented 6 months ago

I could have sorted that out myself, actually. Sorry to take up your time. Thank you.