LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-16-2011, 08:14 PM   #1
kev717
Member
 
Registered: May 2008
Distribution: Arch, Sabayon, Fedora, Ubuntu
Posts: 76

Rep: Reputation: 16
ffmpeg records black when recording a 3d game.


I'm using Sabayon Linux and trying to screencast me playing a video game (postal2). I am using ffmpeg and x11grab, however whenever I open the game, the only thing x11grab gets is a black screen. Anyone have any ideas how to fix this? The following is the command I used. (huffYUV doesn't seem to do anything to help me).

ffmpeg -f x11grab -i :0.0 -r 25 -vcodec huffyuv -sameq -threads 2 screne.avi
I also tried:

ffmpeg -f x11grab -i :0.0 -vcodec huffyuv -sameq -threads 2 screne.avi

My desktop uses XFree86. I record the audio using a separate ffmpeg command and using alsa.

This also fails using gtk-recordmydesktop (which has never worked for me).

Any ideas how to fix this?
-kev717

Last edited by kev717; 09-16-2011 at 08:23 PM. Reason: add info
 
Old 09-17-2011, 06:03 AM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Here's the command I used to capture screencasts:

Code:
ffmpeg -f x11grab -s 854x480 -r 25 -i :0.0+400,280 -vcodec libx264 -vpre hq -crf 15 -s 854x480 -aspect 854:480 -r 25 -threads 4 -y tmp.mkv
Adjust as necessary.
 
Old 09-17-2011, 08:59 AM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
i would imagine it would be difficult to record anything that uses direct rendering, it probably bypasses whatever layer that ffmpeg or other screen recorder uses.

difficult mind you, not impossible, it has been done i'm sure, but i would start on finding tutorials on how to record video from programs that use direct rendering.

Last edited by frieza; 09-17-2011 at 09:01 AM.
 
Old 09-17-2011, 12:23 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I was able to record from minecraft with that command ... not sure if that uses direct rendering or not. I think it might, and it is 3D.
 
  


Reply

Tags
3d, game, screencast


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg recording desktop audio properly CQ1ST Linux - Desktop 4 09-21-2011 06:09 AM
recording desktop with ffmpeg tchino Linux - Newbie 6 04-29-2011 04:41 PM
Recording sound as well as video with FFmpeg and x11grab andrew.46 Slackware 3 06-07-2009 03:00 PM
FFMPEG : recording Television broadcast. _UnPrEdictAbLe_ Linux - Software 0 03-14-2006 10:32 AM
Slamd64 - AlsaMixer is black and white ? Can't setup recording.. K@rl` Slackware 1 06-24-2005 01:07 PM


All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration