From 343d47f9b705d7ad5ee2e5c6a2a746b25a8d4158 Mon Sep 17 00:00:00 2001 From: nunks Date: Sat, 21 Feb 2026 18:36:55 -0300 Subject: [PATCH] Delete page "ffmpeg-subtitle-extract-%28no-ocr%29" --- ffmpeg-subtitle-extract-%28no-ocr%29.md | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 ffmpeg-subtitle-extract-%28no-ocr%29.md diff --git a/ffmpeg-subtitle-extract-%28no-ocr%29.md b/ffmpeg-subtitle-extract-%28no-ocr%29.md deleted file mode 100644 index 4b5dac7..0000000 --- a/ffmpeg-subtitle-extract-%28no-ocr%29.md +++ /dev/null @@ -1,15 +0,0 @@ -``` -EXT=mkv; -for F in *${EXT}; do - while read L FI SI LN SF; do - [[ -z $LN ]] && continue; - L=$(( L - 1 )); - FN=${F%.$EXT}.$LN.srt; - ffmpeg -i "$F" -map $FI:s:$L -c:s srt tmp.srt; - - sed -e 's/<[^>]*>//g' -e 's/{[^}]*}//g' tmp.srt > "$FN"; - rm tmp.srt; - read FI SI LN SF <<< ''; - done < <(ffprobe "$F" 2>&1 | sed -nr '/Subtitle:/s/^.*Stream #([0-9]):([0-9])\(([a-z-]+)\).*Subtitle: ([a-z]+) .*$/\1 \2 \3 \4/p' | cat -n); -done; -``` \ No newline at end of file