LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2009, 05:34 AM   #1
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Recording sound as well as video with FFmpeg and x11grab


Hi,

Under slackware 12.2 and the svn FFmpeg I have managed to capture the x11 display with FFmpeg and x11grab as follows:

Code:
ffmpeg -vframes 100 -r 30 -g 300 -s 1024x768 -f x11grab -i :0.0 \
       -vcodec libx264 -vpre hq -crf 22 -threads 0 test.mp4
and this works well enough but I would like to add in the system sound as well. Documentation for this is pretty poor but suggests something like the following:

Code:
ffmpeg -f oss -i /dev/audio -vframes 100 -r 30 -g 300 -s 1024x768 \
       -f x11grab -i :0.0 -vcodec libx264 -vpre hq -crf 22 -threads 0 \
       test.mp4
But on my system this fails without error. Has anybody managed to catch sound as well as the x11 display in this manner?

Andrew
 
Old 06-07-2009, 10:23 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by andrew.46 View Post
on my system this fails without error.
If you add "-v -v -v" it might tell you a bit more.
 
Old 06-07-2009, 12:56 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I'm not sure /dev/audio is the right one, don't you mean /dev/dsp ?

See here for more info:
http://ffmpeg.org/ffmpeg-doc.html#SEC3

Last edited by H_TeXMeX_H; 06-07-2009 at 12:57 PM.
 
Old 06-07-2009, 02:00 PM   #4
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
Do you really want to use ffmpeg directly?

If not, recordmydesktop is the convenient tool of choice for recording X (for screencasts etc.).
 
  


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
help trying to capture display with ffmpeg x11grab dissociative Slackware 4 04-21-2010 09:44 PM
ffmpeg x11grab unknown format /y0shi Slackware 10 09-30-2009 04:16 PM
recording from video card with transcode - no sound RGummi Linux - General 4 04-03-2008 05:13 PM
FFMPEG : recording Television broadcast. _UnPrEdictAbLe_ Linux - Software 0 03-14-2006 09:32 AM
i want to sync my video using ffmpeg Jeon, Chang-Min Linux - Software 0 11-17-2005 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:08 PM.

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