User Tools

Site Tools


config:ffmpeg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
config:ffmpeg [2025/09/15 11:17] – created Wulf Rajekconfig:ffmpeg [2025/09/18 19:29] (current) Wulf Rajek
Line 9: Line 9:
 </code> </code>
  
 +
 +Audio transcription to text (format txt) or subtitle (format srt) with 60 second chunk size:
 +<code>
 +wget https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo-q5_0.bin
 +ffmpeg -i input.mkv -vn -af "whisper=model=ggml-large-v3-turbo-q5_0.bin:language=en:queue=60:destination=output.txt:format=txt" -f null -
 +</code>
 +
 +recording live audio from microphone could be done using:
 +<code>
 +ffmpeg -loglevel warning -f pulse -i default \
 +-af 'highpass=f=200,lowpass=f=3000,whisper=model=../whisper.cpp/models/ggml-medium.bin\
 +:language=en\
 +:queue=10\
 +:destination=-\
 +:format=json\
 +:vad_model=../whisper.cpp/models/ggml-silero-v5.1.2.bin' -f null -
 +</code>
 +
 +
 +Transcribe and translate example:
 +<code>
 +ffmpeg -i movie.mp4 -af whisper=model=large-v3:task=translate output.srt
 +</code>
config/ffmpeg.1757931437.txt.gz · Last modified: by Wulf Rajek