Update ffmpeg

2026-03-13 11:36:57 -03:00
parent 870362c2f0
commit 16e6c27b59
+6 -1
@@ -28,5 +28,10 @@ done;
* Exportar legenda PGS
* o OCR tem que ser feito em outro canto. O Gemini sugere usar o "Subtitle Edit", eu preferi o site https://pgs-to-srt.com/ (https://github.com/wydengyre/pgs-to-srt)
```
ffmpeg -i input_file.mkv -map 0:3 -c copy output_subtitles.sup
FILE=input_file.mkv;
ffprobe "$FILE" 2>&1 | sed -nr 's/^ +Stream.*([0-9]):([0-9])\(([a-z]{3})\):.*Subtitle.*/\1 \2 \3/p' |
while read INPUT SUB LANG; do
SUBFILE="${FILE%.*}".$LANG.sup;
ffmpeg -i "$FILE" -map "$INPUT:$SUB" -c copy "$SUBFILE" </dev/null;
done
```