LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-02-2012, 09:40 PM   #1
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Rep: Reputation: Disabled
Question How to record PCSX game play to video file?


I'm running pcsx-r on Mint Linux.
I am wanting to capture/record my game play to a video file that I can then upload to share on Facebook, YouTube, or what ever.

I have not had any luck with the suggested things that I have found by searching the web.

My Distro is Mint Linux. I need to be able to do it all by way of software.

The problem I have is that with the things I have used...I think, I'm recording but after I exit the PCSX and stop the record, I find I have only recorded a blue box no sound, where my game should have been.

Any idea's? Any easy to follow tutoralis that can be followed would be greatly useful.

I tried to search the forums here to find any that may have already been posted but only 1 came up and had nothing to do with what I'm needing.

Thank you in advance for any help I can get.
 
Old 05-04-2012, 06:01 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
There are a few ways of doing it.
Personally i use ffmpeg's -X11grab, run from the command line, it can capture audio and video.

http://ffmpeg.org/ffmpeg.html#X11-grabbing
 
Old 05-05-2012, 03:05 AM   #3
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fukawi1 View Post
There are a few ways of doing it.
Personally i use ffmpeg's -X11grab, run from the command line, it can capture audio and video.

http://ffmpeg.org/ffmpeg.html#X11-grabbing
I have tried it and no luck with it....

video result:
Code:
http://youtu.be/3LXuxnIyT_c
When the blue box appears, that is where Final Fantasy IX via PCSX should be displayed.

I was also having a hard time resizing the capture area. Every time I tried to resize it would give me an error.

With FF9, I'm not to worried about the sound as i will be adding my music to it but would be nice for other games.

Last edited by dwmolyneux; 05-05-2012 at 03:08 AM.
 
Old 05-05-2012, 07:26 AM   #4
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 61
if my memory don't cheat on me video recording is video plugins issue.. i recon good 'Gabe'? opengl video plugin that supported it out of box via some F key.
 
Old 05-05-2012, 09:33 PM   #5
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sunnydrake View Post
if my memory don't cheat on me video recording is video plugins issue.. i recon good 'Gabe'? opengl video plugin that supported it out of box via some F key.
After doing a search on Google, I wasn't able to find any Gabe opengl but I was able to find Pete's OpenGL2.

I was able to get video to record but still no sound.

I was able to use this script to capture the full screen:
Code:
#!/bin/bash
cd $HOME/Videos/games
SavePath=$(zenity --file-selection --save --confirm-overwrite)
echo "Saving video to $szSavePath"

INFO=$(xwininfo -frame)

WIN_GEO=$(echo "$INFO"|grep -e "Height:" -e "Width:"|cut -d\: -f2|tr "\n" " "|awk '{print $1 "x" $2}')
WIN_POS=$(echo "$INFO"|grep "upper-left"|head -n 2|cut -d\: -f2|tr "\n" " "|awk '{print $1 "," $2}')

ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -s $WIN_GEO -r 15 -i :0.0+$WIN_POS -r 15 -acodec pcm_s16le -sameq "$SavePath.avi"

echo "$WIN_GEO -i :0.0+$WIN_POS -acodec"
echo "$WIN_POS"
Something with the audio just doesn't seem to be working even with trying different options.
I think it may have to do with "-acodec pcm_s16le -sameq" but no idea.
 
Old 05-05-2012, 11:15 PM   #6
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 61
Yes pete search for 'sync with audio' option + audio record option in audio plugin or configure to not drop frames/fixed fps.Anyway video recording already described on pcsx forums In general you will get audio and video separate files.
 
Old 05-06-2012, 03:31 AM   #7
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Original Poster
Rep: Reputation: Disabled
Thank you and I'll do that. It may take a few days to get it sorted so I'm keeping this post open till then encase any other issues arise.
 
Old 05-08-2012, 07:10 PM   #8
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Original Poster
Rep: Reputation: Disabled
Ok. I have done some searching plus trial and error, but only after having to do a full system reinstall did I find that the sound is mainly using Pulse Audio ( padsp ).

I change alsa to padsp with output:
Code:
Requested output format 'padsp' is not a suitable output format
1280x1024 -i :0.0+0,0 -acodec
0,0
how can I tunnel the padsp to alsa? I have tried to install alsa but end with conflicts that result with no sound at all.

Installing oss=same

The Distro is Linux Mint (Lisa)

Last edited by dwmolyneux; 05-08-2012 at 07:11 PM.
 
Old 05-09-2012, 08:56 PM   #9
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 61
(ehmm maybe incorrect)
kernel audio support -> alsa -> pulse audio -> pulse audio interface emulation (alsa,pulseaudio, oss etc..)
PA grab alsa interface and fake itself as alsa sound sys.
So wipe all audio system -- reinstall pulse audio (check if devices listed! if not reinstall alsa too (need reboot or manual kmodule reload for alsa) -- install pulse audio alsa interface support(if it's not out of the box already)... or try to summon tech spirit with banjo and milk.

howtock check if alsa working? aplay -l / aplay audio_file
 
Old 05-11-2012, 03:57 PM   #10
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Original Poster
Rep: Reputation: Disabled
I've reinstalled pulse and found that I have had to compile the spu-plugin from source to include alsa.

I have ran into a problem that meant starting another post here but this post is still open.
 
Old 06-01-2012, 12:21 AM   #11
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Original Poster
Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...2/#post4692563
 
  


Reply



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
will you play windows game or linux native game pleasehelpme Linux - Newbie 16 04-29-2007 08:58 PM
Game Controllers for use with Fedora Core 4 and PCSX deele Linux - Hardware 1 01-23-2006 07:30 PM
How to play java game(like yahoo game) in firefox? Mathsniper Debian 1 01-04-2006 10:00 AM
Unable to record or play a wav file using ALSA stephenwalter Programming 1 08-18-2005 02:08 PM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:32 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
Open Source Consulting | Domain Registration