Eltaurus-Lt / Anki-Contextualize

Anki add-on for appending context (sample sentences, screenshots, audio fragments) from media files and subtitles automatically
0 stars 0 forks source link

Load subtitles from videofile with ffmpeg #14

Open Eltaurus-Lt opened 5 months ago

Eltaurus-Lt commented 5 months ago

ffprobe -v error -select_streams s -show_entries stream=index:stream_tags=language -of default=nw=1:nk=1 input.mkv

ffmpeg -i input.mkv -map 0:s:%% output.srt

Eltaurus-Lt commented 5 months ago

ffprobe -v error -of json -show_entries "stream=index:stream_tags=language" -select_streams s input.mkv