k
This commit is contained in:
BIN
wav_to_mkv.d/sc.jpg
Normal file
BIN
wav_to_mkv.d/sc.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -18,7 +18,15 @@ main() {
|
|||||||
fi
|
fi
|
||||||
out_to_srt ../gitea-whisper-rs/transcript.txt > "${input_wav%.*}.srt"
|
out_to_srt ../gitea-whisper-rs/transcript.txt > "${input_wav%.*}.srt"
|
||||||
|
|
||||||
ffmpeg -y -i "$input_wav" -i "${input_wav%.*}.srt" "${input_wav%.*}.mkv"
|
ffmpeg -y \
|
||||||
|
-loop 1 -i sc.jpg \
|
||||||
|
-i "$input_wav" \
|
||||||
|
-i "${input_wav%.*}.srt" \
|
||||||
|
-c:v libx264 \
|
||||||
|
-tune stillimage \
|
||||||
|
-pix_fmt yuv420p -shortest \
|
||||||
|
"${input_wav%.*}.mkv"
|
||||||
|
|
||||||
ls "${input_wav%.*}.mkv"
|
ls "${input_wav%.*}.mkv"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user