Timeline for Cutting a part from a video: Should '-ss' be before 'i' or after?
Current License: CC BY-SA 4.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 11 at 10:35 | vote | accept | jsx97 | ||
S Jun 11 at 10:35 | history | bounty ended | jsx97 | ||
S Jun 11 at 10:35 | history | notice removed | jsx97 | ||
Jun 10 at 19:24 | answer | added | 1NN | timeline score: 1 | |
Jun 9 at 9:07 | comment | added | Rotem |
For testing the video, I suggest to start with synthetic video with frame numbers: ffmpeg -y -f lavfi -r 10 -i testsrc=size=192x108:rate=1:duration=500 -vf setpts=N/10/TB -c:v libx264 -pix_fmt yuv420p input.mp4 . I don't know how to test the audio cutting accuracy. I suggest you to do some research, and figure out how to test it.
|
|
Jun 8 at 22:10 | comment | added | jsx97 |
@Rotem "Is your only objective is cutting a part of a video?" - Yes. "Do you know how to check if the cutting is accurate?" - No. "Can you please be more specific on you objectives?" - I simply try to create a FFmpeg cheat sheet for my personal use, but I'm obsessively picky at times (as you probably see :-) )
|
|
Jun 8 at 21:44 | comment | added | Rotem |
@jsx97 In cases where -ss before the -i gives an error message, try placing it after the -i . In all other cases, I assume it is recommended placing it before the -i (as far as I know), assuming you FFmpeg version is not too old... Can you please be more specific on you objectives? Is your only objective is cutting a part of a video, or are there other objectives? Do you know how to check if the cutting is accurate?
|
|
Jun 8 at 21:06 | comment | added | jsx97 |
@Rotem 'Fot "seekable" input like MP4, the -ss should be before the -i ' - And are there cases in which -ss should be after -i ?
|
|
S Jun 7 at 9:46 | history | bounty started | jsx97 | ||
S Jun 7 at 9:46 | history | notice added | jsx97 | Draw attention | |
Jun 4 at 21:23 | comment | added | JayCravens |
That looks groovy to me. You could add -preset ultrafast to make it a little faster. (No quality loss)
|
|
Jun 4 at 19:20 | history | edited | jsx97 | CC BY-SA 4.0 |
added 79 characters in body
|
Jun 4 at 19:06 | comment | added | Rotem |
Fot "seekable" input like MP4, the -ss should be before the -i , because it is faster, and has the same accuracy as after the -i . Without re-encoding should also work: ffmpeg -ss <start> -i input.mp4 -to <end> -c copy output.mp4 (in most cases).
|
|
Jun 4 at 18:40 | history | undeleted | jsx97 | ||
Jun 4 at 18:38 | history | deleted | jsx97 | via Vote | |
S Jun 4 at 16:25 | review | First questions | |||
Jun 4 at 17:14 | |||||
S Jun 4 at 16:25 | history | asked | jsx97 | CC BY-SA 4.0 |