简体   繁体   中英

How to remove specific duration from video using ffmpeg

i've tried many ways to solve the problem, i also tried this code before

ffmpeg -i movie.mp4 -vf trim=3:8 cut.mp4

but for the result, the audio is still there but the video is gone. all i want is the video and audio both are removed. can anyone help me how resolve this?

采用

ffmpeg -i movie.mp4 -vf "select='not(between(t,3,8))',setpts=N/FRAME_RATE/TB" -af aselect='not(between(t,3,8))',asetpts=N/SR/TB cut.mp4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM