Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18082 - [ffmpeg]20100108-2 breaks X11 grabbing support

Attached to Project: Arch Linux
Opened by speps (archspeps) - Sunday, 31 January 2010, 03:02 GMT
Last edited by Ionut Biru (wonder) - Sunday, 31 January 2010, 10:33 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: ffmpeg version 20100108-2 breaks x11grab support in the way is not possible set the DISPLAY number with the -i flag

Additional info:
Package version 20100108-2
The examples as described here http://ffmpeg.org/ffmpeg-doc.html#SEC4 does not grab X11 and give this error

$ ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg
FFmpeg version UNKNOWN, Copyright (c) 2000-2010 Fabrice Bellard, et al.
built on Jan 10 2010 17:29:42 with gcc 4.4.2 20091208 (prerelease)
configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libtheora --enable-postproc --enable-shared --enable-pthreads --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-version3 --enable-nonfree
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.45. 0 / 52.45. 0
libavformat 52.46. 0 / 52.46. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 8. 0 / 0. 8. 0
libpostproc 51. 2. 0 / 51. 2. 0
:0.0: no such file or directory

$ ffmpeg -f x11grab -s cif -i :0.0+10,20 /tmp/out.mpg
FFmpeg version UNKNOWN, Copyright (c) 2000-2010 Fabrice Bellard, et al.
built on Jan 10 2010 17:29:42 with gcc 4.4.2 20091208 (prerelease)
configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libtheora --enable-postproc --enable-shared --enable-pthreads --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-version3 --enable-nonfree
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.45. 0 / 52.45. 0
libavformat 52.46. 0 / 52.46. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 8. 0 / 0. 8. 0
libpostproc 51. 2. 0 / 51. 2. 0
:0.0+10,20: no such file or directory

and also according to $DISPLAY

$ ffmpeg -f x11grab -s cif -i $DISPLAY /tmp/out.mpg
FFmpeg version UNKNOWN, Copyright (c) 2000-2010 Fabrice Bellard, et al.
built on Jan 10 2010 17:29:42 with gcc 4.4.2 20091208 (prerelease)
configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libtheora --enable-postproc --enable-shared --enable-pthreads --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-version3 --enable-nonfree
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.45. 0 / 52.45. 0
libavformat 52.46. 0 / 52.46. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 8. 0 / 0. 8. 0
libpostproc 51. 2. 0 / 51. 2. 0
:0: no such file or directory

Steps to reproduce:

$ startx
$ ffmpeg -f x11grab -s cif -i $DISPLAY /tmp/out.mpg
This task depends upon

Closed by  Ionut Biru (wonder)
Sunday, 31 January 2010, 10:33 GMT
Reason for closing:  Fixed
Comment by Ionut Biru (wonder) - Sunday, 31 January 2010, 03:18 GMT
i have:
:0.0: I/O error occurred
Usually that means that input file is truncated and/or corrupted


maybe that "not such file" is because you have a problem with your login method?
Comment by speps (archspeps) - Sunday, 31 January 2010, 03:45 GMT
first i reported the version i red here http://www.archlinux.org/packages/extra/x86_64/ffmpeg/

before posting this bug i asked to a lot of users on #archlinux and they give me the same report (both x86_64 i686) so i decided to report it

Now i'm on x86_64 and i use awesome as my default wm but i get the same with openbox, however i don't think it's related to wm.

That is my output after launched ffmpeg -f x11grab -s cif -i $DISPLAY /tmp/out.mpg as it happens to many others.

What do you mean with "maybe i have a problem with my login method"?
Comment by Ionut Biru (wonder) - Sunday, 31 January 2010, 03:45 GMT
reseaching: http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2009-March/019558.html

ffmpeg -f x11grab -r 24 -s 1280x800 -i :0.0 ~/out.mpg

i had to recompile to add x11grab support.

about your issue. do you have in .xinitrc "exec ck-launch-session wm" ?
Comment by speps (archspeps) - Sunday, 31 January 2010, 03:54 GMT
ffmpeg -f x11grab -r 24 -s 1280x800 -i :0 ~/out.mpg
FFmpeg version UNKNOWN, Copyright (c) 2000-2010 Fabrice Bellard, et al.
built on Jan 10 2010 17:29:42 with gcc 4.4.2 20091208 (prerelease)
configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libtheora --enable-postproc --enable-shared --enable-pthreads --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-version3 --enable-nonfree
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.45. 0 / 52.45. 0
libavformat 52.46. 0 / 52.46. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 8. 0 / 0. 8. 0
libpostproc 51. 2. 0 / 51. 2. 0
:0: no such file or directory

same with :0.0

However ffmpeg it's compiled with --enable-x11grab yet as described here http://repos.archlinux.org/wsvn/packages/ffmpeg/repos/extra-x86_64/PKGBUILD

I do not have ck-launch-session wm in my .xinitrc. I have just tried with it and there are no changes in output.
Comment by Ionut Biru (wonder) - Sunday, 31 January 2010, 03:56 GMT
it has --enable-x11grab but is missing a dependency and is not enabled.

do:
echo $DISPLAY
Comment by speps (archspeps) - Sunday, 31 January 2010, 03:58 GMT
echo $DISPLAY
:0
Comment by Ionut Biru (wonder) - Sunday, 31 January 2010, 04:15 GMT
please test ffmpeg-20100108-3
Comment by speps (archspeps) - Sunday, 31 January 2010, 04:22 GMT
It's still not available to download.
I'll wait for it, or i'll build by myself using that PKGBUILD.
Comment by speps (archspeps) - Sunday, 31 January 2010, 05:12 GMT
I have just built your last svn PKGBUILD with the right dependencies.
Now it seems to work good (using the -r parameter, this new way should be updated in the ffmpeg official manual).
I'll hard test it to see if there are other issues.

Thanks for the speedy bugfix.

Loading...