Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/6957d2e8-b738-8008-987a-09a5d9f29bc8
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== With -ss after -i (like above), -to is treated as an end timestamp in the input timeline (works well for human timestamps). ==== If you ever prefer “duration”, use -t instead: <syntaxhighlight lang="bash"># from 01:02 for 71 seconds ffmpeg -i input.mp4 -ss 00:01:02.000 -t 00:01:11.000 ... </syntaxhighlight> ==== <syntaxhighlight lang="bash">in="input.mp4" ==== ffmpeg -i "$in" -ss 00:01:02.000 -to 00:02:13.000 -c:v libx264 -crf 20 -preset medium -c:a aac -b:a 160k -movflags +faststart clip_01.mp4 ffmpeg -i "$in" -ss 00:03:17.000 -to 00:05:26.000 -c:v libx264 -crf 20 -preset medium -c:a aac -b:a 160k -movflags +faststart clip_02.mp4 ffmpeg -i "$in" -ss 00:09:21.000 -to 00:09:28.000 -c:v libx264 -crf 20 -preset medium -c:a aac -b:a 160k -movflags +faststart clip_03.mp4 ffmpeg -i "$in" -ss 00:09:44.000 -to 00:10:04.000 -c:v libx264 -crf 20 -preset medium -c:a aac -b:a 160k -movflags +faststart clip_04.mp4 </syntaxhighlight> If you tell me your input codecs (paste ffprobe -hide_banner -i input.mp4), I can adjust settings to either keep the same FPS/resolution, preserve 5.1 audio, or speed it up with hardware encoding (NVENC/QSV/VAAPI).
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)