LinuxQuestions.org
Visit Jeremy's Blog.
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 01-08-2008, 12:00 AM   #1
dissociative
Member
 
Registered: Jul 2007
Posts: 36

Rep: Reputation: 15
help trying to capture display with ffmpeg x11grab


I trying to capture the X display with ffmpeg using the following command:

ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg

but it fails with the following error:

[x11grab @ 0xb7f36b14]device: :0:0 -> display: :0:0 x: 0 y: 0 width: 0 height: 0
[x11grab @ 0xb7f36b14]Could not open X display.
:0:0: I/O error occured
Usually that means that input file is truncated and/or corrupted.

I dont know what more can I do I tried searching in google and cannot find any useful results
 
Old 01-08-2008, 06:18 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,333

Rep: Reputation: Disabled
Can it be that you run ffmpeg in a terminal where you have become root using "su -" or "sudo -i"?
If so, try going back to your normal user account and then re-run the ffmpeg command.

Eric
 
Old 01-08-2009, 07:22 PM   #3
ibmercurial
Member
 
Registered: Sep 2004
Location: Rhode Island (not new york)
Distribution: Slackware 10.2
Posts: 51

Rep: Reputation: 15
ffmpeg

heywood@darkstar:~$ ffmpeg -f x11grab -s 720x480 -r 23.976 -i :0.0 /tmp/out.mpg


Try omitting the cif
 
Old 10-28-2009, 06:17 PM   #4
andrewjames
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
I think the problem is the document at FFMPEG, http://ffmpeg.org/ffmpeg-doc.html, is incorrect, old.

When I tried the command
Code:
ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg
that is from the document, the same error printed, however, I think you misread the error. More description of the problem printed in the error explained the rate '-r' was unset.

Try the command any rate value that works with FFMPEG, for example 25
Code:
ffmpeg -f x11grab -r 25 -s cif -i :0.0 /tmp/out.mpg
From document
Code:
`-r fps'
    Set frame rate (Hz value, fraction or abbreviation), (default = 25).

I think the problem is not '-s cif'. That command sets size to cif, that is an alias to value pixels '352x288'. I prefer to write the size as pixels.

someone may want to notify FFMPEG that the document causes problems. http://ffmpeg.org/contact.html


andrew


Quote:
Originally Posted by dissociative View Post
I trying to capture the X display with ffmpeg using the following command:

ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg

but it fails with the following error:

[x11grab @ 0xb7f36b14]device: :0:0 -> display: :0:0 x: 0 y: 0 width: 0 height: 0
[x11grab @ 0xb7f36b14]Could not open X display.
:0:0: I/O error occured
Usually that means that input file is truncated and/or corrupted.

I dont know what more can I do I tried searching in google and cannot find any useful results
 
Old 04-21-2010, 10:44 PM   #5
2ck
Member
 
Registered: Mar 2010
Location: /home/twock
Distribution: Debian
Posts: 70
Blog Entries: 9

Rep: Reputation: 21
I'd also recommend setting -sameq (or the desired quality) before the output filename. Otherwise your will come out with beaucoup artifacts.

Don't know how to capture the software cursor yet...
 
  


Reply

Tags
display, ffmpeg, recording


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 x11grab unknown format /y0shi Slackware 10 09-30-2009 05:16 PM
ffmpeg urgido Fedora 1 12-04-2006 12:38 AM
ffmpeg hgnoel1980 Debian 0 07-12-2006 08:36 AM
ffmpeg RySk8er30 Linux - Software 3 06-25-2005 12:10 PM
Capture support for dvd and video capture in linux is it even going to be real ever? maximalred Linux - Distributions 3 07-06-2003 08:29 PM


All times are GMT -5. The time now is 09:29 AM.

Main Menu
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