Am I limited if I use ffmpeg for screen recording?
from matcha_addict@lemy.lol to linux@lemmy.ml on 12 Dec 21:39
https://lemy.lol/post/35629596

Hi all, I want to do some screen recording on my linux desktop. And like a normal-functioning member of society, I decided to do it the hardest way and learn ffmpeg CLI to do it. Why? well, something about using underlying tools and customizing their usage excites me.

I have already started doing this, and I am finding I have to do a lot of trial and error to get things right. Before I dive deeper, I want to ask: Am I limiting myself in doing this? Is there anything I could be missing out on taking this route, or something that ffmpeg could not do on its own that a dedicated solution can?

What will I use this for exactly? well, things like recording a video game as I play it (which I suppose will require hardware acceleration to be of viable quality), or recording a tutorial (requiring voice input from mic), things like that.

#linux

threaded - newest

solrize@lemmy.world on 12 Dec 21:52 next collapse

I don’t know of such limitations and I’ve done some screen recording that way. But yeah the CLI options are confusing. The wiki (trac.ffmpeg.org) and libera irc channel #ffmpeg both help.

anamethatisnt@lemmy.world on 12 Dec 22:00 next collapse

As long as you make yourself some aliases for your common ffmpeg commands including flags I’m sure it’s gonna work out fine. Using something like OBS is gonna make it a lot easier of course.

matcha_addict@lemy.lol on 12 Dec 22:05 collapse

does OBS just do everything with ffmpeg, or does it introduce extra functionality?

anamethatisnt@lemmy.world on 13 Dec 03:45 collapse

It has more functionality
obsproject.com/kb/obs-studio-overview

GammaGames@beehaw.org on 12 Dec 22:06 next collapse

I’ve used this with success flathub.org/…/com.dec05eba.gpu_screen_recorder

boredsquirrel@slrpnk.net on 12 Dec 23:10 next collapse

I guess no Wayland support, which is pretty big

m4m4m4m4@lemmy.world on 13 Dec 01:42 next collapse

Actually there’s some support for Wayland. Tried it last year, but had to do serious rummage trying to make it work. For starters I can recall it spitted a video but the command throwed an error at the end and could not understand why. Also i seem to recall the video stopped way after finishing the command.

Even had to recompile all of ffmeg to add support for wayland recording (though Gentoo makes this really easy). One thing for certain is that Gentoo’s ffmpeg stable version is fairly behind from upstream’s so that could have had a hand on it too.

matcha_addict@lemy.lol on 13 Dec 02:02 collapse

what do screen recording softwares for wayland use under the hood then?

claymore@pawb.social on 13 Dec 07:20 collapse

They use XDG Desktop Portal, which makes video and audio capture system level instead of application level to enhance security. When a program wants to record your screen you get a pop up to choose which screen/window to share. After that the app can only see that window or screen.

ReversalHatchery@beehaw.org on 12 Dec 23:52 next collapse

I don’t know whether it would be impossible to do, but using OBS would be much easier both on the short and long term

drkt@scribe.disroot.org on 13 Dec 03:01 next collapse

I have this bound to a hotkey for quick screenrecording

drkt.eu/files/scripts/sr.sh

learnbyexample@programming.dev on 13 Dec 04:47 next collapse

I wish you success. I’m happy to use SimpleScreenRecorder(github.com/MaartenBaert/ssr).

masterofn001@lemmy.ca on 13 Dec 06:43 next collapse

Surprisingly, VLC has a simple screen recording feature in the GUI. Record by screen or by individual app.

VLC also has a very comprehensive cli.

vlc -H gives almost every possible option with useful descriptions of them You can configure everything to your needs. Inputs, outputs, framerate, audio and video encoders, muxers, filters, network live stream or to file or both, in the background, etc. Everything

GUI <img alt="" src="https://lemmy.ca/pictrs/image/88ef49e3-dc0c-4f7a-8024-f105db933481.png">

One page of the advanced settings options (using the -H option gives me 60 full pages of options in this portrait format) <img alt="" src="https://lemmy.ca/pictrs/image/9617faee-5721-403d-845b-b63fb89accd0.png">

InFerNo@lemmy.ml on 13 Dec 21:31 collapse

GNOME has a screen recorder built in, but I use OBS because it’s a swiss army knife of (screen) recording.