Linked Questions

599 votes
9 answers
835k views

Using ffmpeg to cut up video

I am using ffmpeg to cut out a section of a large file like this: ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv The -ss part works fine but the -t is ignored. It correctly ...
Neil's user avatar
  • 6,119
1 vote
0 answers
6k views

FFMPEG How to extract frames of a video at a certain time frame? [duplicate]

I am working on laying out video stills in a book. I am pretty new to using the command line and discovered ffmpeg just yesterday. Right now, I want to extract 8fps from a video between, for example, ...
AFG's user avatar
  • 39
1 vote
1 answer
2k views

Why is FFmpeg video splitting of 595-600 seconds slow compared to 0-5 seconds? [duplicate]

I have to split a 4K 10 minutes video into 120 small video files, each containing 5 seconds of duration. I'm using ffmpeg for splitting the video. The splitting take a very very long time and the ...
aman's user avatar
  • 113
31 votes
1 answer
22k views

What is the "sameq" or "same_quant" option in FFmpeg? Does it mean "same quality"?

Often, I've seen FFmpeg commands using the sameq option, for example ffmpeg -i input.mp4 -sameq output.avi What does this mean? Does it mean "same quality"? If not, what should I use instead?
slhck's user avatar
  • 230k
4 votes
1 answer
7k views

How can I remove multiple segments from a video while keeping the audio?

I have tried the method described in this answer. It works well, except that the audio is missing. Can anyone suggest how to get both the video and audio into the output? Example: I have a 2min video ...
BruceR's user avatar
  • 53
4 votes
1 answer
3k views

How to split video files upon detected change in resolution? (ie. recorded streams containing multiple widths)

I have many video files (flv/mp4) that change resolution mid-stream (720p/1080p/640). I would like to use something like ffmpeg to automatically detect the change in resolution and split the videos ...
EverT's user avatar
  • 81
0 votes
4 answers
3k views

Which program I can edit video (cut some scenes) without increasing the video's size

I have a video: Input.mp4 - length: 29 min 6 sec - size: 120 MB I use Microsoft Movie Maker 2012 (Movie Maker is included in the Windows Essentials 2012 program suite), to cut some boring scenes and ...
123iamking's user avatar
1 vote
1 answer
781 views

How to delete a specific portion of a video in FFmpeg possibly without re-encoding?

I was able to find this thread on cutting a specific portion out of a file. It's not very useful since I'm looking to do the exact opposite which is to remove the selected portion of the video. This ...
Yimiko's user avatar
  • 11
0 votes
1 answer
209 views

I recorded a video with an iPhone SE (11.4.1) with 1080H / 30 fps. I want to extract as many individual freeze frames as possible with ffmpeg

I recorded an video with an iPhone SE, iOS Version 11.4.1 (15G77). I want to extract as many individual and freeze frames in best available quality. I guess i can get a max of 30 freeze frames per ...
Lupo's user avatar
  • 11
1 vote
0 answers
161 views

Is there some way to losslessly "cut off" from the beginning and/or end in an .mp4 file?

First of all, yes, I know that .mp4 videos are lossy. Many of them contain annoying unwanted stuff in the beginning or end, which I neither want to see nor want to take up storage space on my disks. ...
Burleigh's user avatar
1 vote
1 answer
196 views

Cutting a part from a video: Should '-ss' be before 'i' or after?

Let's say I need to remove everything but the second minute from a video. I can do this, for example, in the following way: ffmpeg -copyts -ss <start> -i input.mp4 -to <end> -c:v libx264 -...
jsx97's user avatar
  • 71