Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cut part of mp4 video using ffmpeg without losing quality? [closed]

hi all i got an mp4 video using ffmpeg but now i want to cut part of this mp4 . For example i only want first 25 min of the mp4 video from 40 min video. could you guys tell me what command i can use in ffmpeg for windows to achieve this task ?

ffmpeg 40minvideo.mp4

like image 703
user1788736 Avatar asked Mar 26 '13 04:03

user1788736


1 Answers

ffmpeg -i 40minvideo.mp4 -t 1500 -acodec copy -vcodec copy 25minvideo.mp4

-t 1500 processes the first 1500 seconds (25 min * 60 sec/min)

-acodec copy and -vcodec copy copy the codec data without transcoding (which would incur quality loss).

like image 66
Multimedia Mike Avatar answered Sep 28 '22 13:09

Multimedia Mike