LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 06:34 AM   #1
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 651

Rep: Reputation: 92
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, 11:23 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,688
Blog Entries: 54

Rep: Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955
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, 01:56 PM   #3
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'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 01:57 PM.
 
Old 06-07-2009, 03:00 PM   #4
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

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

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


Reply


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


All times are GMT -5. The time now is 09:03 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