[FFmpeg-user] Where to cut audio by video frame?

Felix Muster felixjan.muster at icloud.com
Fri Oct 11 21:02:45 EEST 2019


Audio and video stream have the same start_time

ffprobe -show_entries stream=codec_type,start_time -v 0 -of compact=p=1:nk=0 THE_GIRL_WITH_THE_DRAGON_TATTOO.Title1.mkv
stream|codec_type=video|start_time=0.000000
stream|codec_type=audio|start_time=0.000000


So is this the best way to cut frame 2928-5177 with ffmpeg:

ffmpeg.exe -i audio.flac -ss (2928/(24000/1001)) -to (5177/(24000/1001)) -codec flac audio_cut.flac
ffmpeg.exe -i audio.flac -ss 122.122 -to 215.9240417 -codec flac audio_cut.flac

Or does somebody know a better way?



More information about the ffmpeg-user mailing list