You are not logged in.

#1 2019-03-06 05:56:54

nerdnils
Member
Registered: 2017-03-04
Posts: 32

What to use to record?

Hi there,

I want to capture/record a game which uses opengl. How to record it?
I tried ffmpeg but there everything flickers(in the game not when recording the desktop),
tried simplescreenrecorder but the recording is way too dark I don't know why it gets way
darker than what i have originally seen. gcl and glcs-git from AUR don't even compile/download
anymore,
recordmydesktop crashes when launching the game(I guess this is because the resolution changes).

Is there any program which can do the job properly?

Last edited by nerdnils (2019-03-06 05:58:22)

Offline

#2 2019-03-06 08:20:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: What to use to record?

OBS Studio?

In general, what ffmpeg command did you use? Which game?

Last edited by V1del (2019-03-06 08:26:31)

Offline

#3 2019-03-06 20:13:29

nerdnils
Member
Registered: 2017-03-04
Posts: 32

Re: What to use to record?

ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :1 -f pulse -ac 2 -i default output.mp4
Exit-It a game a developed myself using panda3d as game engine.
OBS studio records as if a small window with only black content is on my desktop while the game is running full screen. So this does not work either.

Last edited by nerdnils (2019-03-06 20:16:18)

Offline

#4 2019-03-08 12:40:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: What to use to record?

And have you already tried to rule out your game as the cause? Do you get the same behaviour on different games (or FWIW test something simple like glxgears or so) What's your hardware/driver used?

Offline

#5 2019-03-08 19:48:00

Maniaxx
Member
Registered: 2014-05-14
Posts: 732

Re: What to use to record?

Try the glcs-git pkgbuild below.
The 'elfhacks' git is dead so i replaced it with another one i found on Github and it seems to work.

I did a quick test by removing the two ALSA/sound lines in /usr/share/glcs/scripts/pipe_ffmpeg.sh so no need to set up any loopback/asoundrc stuff.
Then starting with "/usr/share/glcs/scripts/capture.sh glxgears" and pressing <Shift+F8>.

# Maintainer: Jimmy Stelzer <jimmy.stelzer@gmail.com>
pkgname=glcs-git
pkgver=r511aeb71fa
pkgrel=2
pkgdesc="OpenGL and ALSA Screencast Tool, based in GLC"
arch=('i686' 'x86_64')
url="https://github.com/lano1106/glcs/"
license=('GPL3')
depends=("libpng" "alsa-lib" "libgl" "libxxf86vm")
makedepends=('git' 'cmake')
optdepends=()
provides=('glcs')
install=
changelog=
mods=("elfhacks" "packetstream" "../glcs")
backup=("usr/share/glcs/scripts/capture.sh"
		"usr/share/glcs/scripts/pipe_ffmpeg.sh"
		"usr/share/glcs/scripts/webcam_overlay_mix_audio.sh")
source=(glcs::git+https://github.com/lano1106/glcs.git)
md5sums=('SKIP')

prepare(){
	cd "${srcdir}/glcs"

	sed -i -e 's#nullkey/elfhacks.git#ienorand/elfhacks.git#' .gitmodules
	sed -i -e 's#stable#master#' .gitmodules
	sed -i -e 's#nullkey/elfhacks.git#ienorand/elfhacks.git#' .git/config

	git submodule init
	git submodule update
}

build() {
	cd "${srcdir}/glcs"
	DESTDIR=$pkgdir/usr
	if [ $CARCH == "x86_64" ]; then
		CFLAGS="$CFLAGS -m64"
	fi
	./build.sh $DESTDIR || return 1;

}

package() {
	cd "${srcdir}/glcs"
	DESTDIR=$pkgdir/usr
	./package.sh $DESTDIR || return 1;
}

sys2064

Offline

#6 2019-03-09 07:00:22

nerdnils
Member
Registered: 2017-03-04
Posts: 32

Re: What to use to record?

Found out this is panda-related. I get the same dark colors when playing in windowed and not in fullscreen. fffmpeg records the right colors, don't know why it flickers, though. Can get the same light/dark results with the samples espacially infinite-tunnel and the shadow-sample. I'm in contact with a developer of panda. No, wait. ffmpeg now records the same dark colors… the Syus to install the other recorders must have changed something.

Last edited by nerdnils (2019-03-09 07:03:08)

Offline

Board footer

Powered by FluxBB