5,337
edits
No edit summary |
|||
Line 196: | Line 196: | ||
There are wrappers such as [https://github.com/Raveler/ffmpeg-cpp Raveler/ffmpeg-cpp] which you can use.<br> | There are wrappers such as [https://github.com/Raveler/ffmpeg-cpp Raveler/ffmpeg-cpp] which you can use.<br> | ||
However, I recommend just using the C API and wrapping things in smart pointers. | However, I recommend just using the C API and wrapping things in smart pointers. | ||
==My Preferences== | |||
My preferences for encoding video | |||
<syntaxhighlight lang="bash"> | |||
!#/bin/bash | |||
ffmpeg -i $1 -c:v libx265 -crf 28 -preset medium -c:a libopus -b:a 128K $2 | |||
</syntaxhighlight> | |||
;Notes | |||
* You need to output to a MKV file |