From eeee5be8616eca214b628e0ae0db64ee62ac84e8 Mon Sep 17 00:00:00 2001 From: Skiz Date: Mon, 29 Jul 2024 13:32:02 -0400 Subject: Added FFmpeg Tips --- content/articles/ffmpeg-tips.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 content/articles/ffmpeg-tips.md (limited to 'content/articles') diff --git a/content/articles/ffmpeg-tips.md b/content/articles/ffmpeg-tips.md new file mode 100644 index 0000000..be647b6 --- /dev/null +++ b/content/articles/ffmpeg-tips.md @@ -0,0 +1,29 @@ +--- +title: 'FFmpeg Tips' +date: 2024-07-29T13:22:41-04:00 +draft: false +tags: ['Tech', 'Linux', 'Guide'] +--- + +FFmpeg is one of my favorite programs, though it can be quite difficult to learn. +This page is dedicated to sharing the commands and knowledge I've accumulated over my time of using FFmpeg. + +**More will come to this page soon!** + +## To record screen. + +`ffmpeg -y -f x11grab -s 1920x1080 -i :0.0 test.mkv` + +You can also add `-framerate 30` to set a custom frame rate. + +## To record mic. + +`ffmpeg -f alsa -i default -c:a flac test.flac` + +## To record screen and mic. + +`ffmpeg -y -f x11grab -s 1920x1080 -i :0.0 -f alsa -i default test.mkv` + +The command with codecs: + +`ffmpeg -y -f x11grab -s 1920x1080 -i :0.0 -f alsa -i default -c:a flac -c:v libx264 test.mkv` -- cgit v1.2.3