Update ffmpeg
+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
|
||||
```
|
||||
Reference in New Issue
Block a user