IT/Software/Command Line Applications/ffmpeg: Difference between revisions

From msgwiki
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary
No edit summary
Line 3: Line 3:
==This tool is amazingly broad.==
==This tool is amazingly broad.==
We will only attempt to show a few of its key features.  
We will only attempt to show a few of its key features.  
== Reduce Video size and maintain some quality. ==
<code>ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4</code>
crf should vary between 18 and 24.  The higher the number the higher the compression and lower the quality


==Extract audio from video==
==Extract audio from video==


* Change extension and names as needed.
*Change extension and names as needed.
* Path is relative unless noted.  
*Path is relative unless noted.
* Single quotes are needed if you have spaces or any special character
*Single quotes are needed if you have spaces or any special character


<code>ffmpeg -i '20150125 Word Blesses Us'.mp4 '20150125 Word Blesses Us'.mp3</code>
<code>ffmpeg -i '20150125 Word Blesses Us'.mp4 '20150125 Word Blesses Us'.mp3</code>

Revision as of 15:29, 9 May 2020

_

_

This tool is amazingly broad.

We will only attempt to show a few of its key features.

Reduce Video size and maintain some quality.

ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4

crf should vary between 18 and 24. The higher the number the higher the compression and lower the quality

Extract audio from video

  • Change extension and names as needed.
  • Path is relative unless noted.
  • Single quotes are needed if you have spaces or any special character

ffmpeg -i '20150125 Word Blesses Us'.mp4 '20150125 Word Blesses Us'.mp3