User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

tool:software:ffmpeg [2019/11/26 00:08]
rjt created
tool:software:ffmpeg [2020/04/12 11:01] (current)
rjt Website link, notes on trimming
Line 20: Line 20:
 <​code>​ffmpeg -i inputfile.ext -vf "​transpose=1"​ outputfile.ext</​code>​ <​code>​ffmpeg -i inputfile.ext -vf "​transpose=1"​ outputfile.ext</​code>​
 +=== Trimming ===
 +You can pretty easily make a video file smaller. The only caveat is that if you don't want to re-encode you're limited by where keyframes are placed.
 +<​code>​ffmpeg -i inputfile.ext -ss HH:MM:SS -to HH:MM:SS -c copy outputfile.ext</​code>​
 +  * ''​-ss''​ is the point you want it to start
 +  * ''​-to''​ is the point you want it to end
 +  * ''​-t''​ is the length you want it to run from the start time
 +  * Instead of using the format ''​HH:​MM:​SS''​ you can just give a number of seconds.
 +    * You can also add milliseconds to either of those formats.
 +  * Leaving out the ''​-ss''​ or ''​-to''​|''​t''​ will use the file's existing start or end time.
 +  * If you leave out the ''​-c copy''​ it will re-encode the video
 ==== Lowering the file size ==== ==== Lowering the file size ====
Line 35: Line 48:
   * https://​​wiki/​Scaling   * https://​​wiki/​Scaling
 +===== See Also =====
 +  * [[https://​​|]]
 {{tag>​cli video todo}} {{tag>​cli video todo}}
tool/software/ffmpeg.txt · Last modified: 2020/04/12 11:01 by rjt