Advertisement
PrimePastes

How To Trim A Video Using FFMPEG

Dec 4th, 2024 (edited)
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. If YouTube-DLP's '--download-section' is giving you problems, download the entire video, then trim it solely using FFMPEG.
  2.  
  3. ffmpeg -i input_video.mp4 -ss [start_time] -to [end_time] -c:v copy -c:a copy output_video.mp4
  4.  
  5. Example:
  6. ffmpeg -i /Movies/Test\ Video.webm -ss 140 -to 240 -c:v copy -c:a copy Test\ Video\ Edited.webm
  7.  
  8.  
  9. FFMPEG:
  10. https://www.ffmpeg.org/
  11.  
  12. YouTube-DLP:
  13. https://github.com/yt-dlp/yt-dlp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement