You are not logged in.
Hi.
Got a Xorg running with OpenBox and I'd like to record the entire screen area,
for this I'm using the following:
ffmpeg -v 1 -f x11grab -r 30 -i :0.0 -f alsa -i hw:0,0 -acodec flac -vcodec libx264 -s 1920x1080 -crf 0 test.mkvhttp://www.youtube.com/watch?v=11vA8BnYvzY
This gives me about ~400x400 resolution which has been stretched to a 1920x1080 resolution, most likely because X runs at ~400x400 while the window manager is actually running at the full resolution.
Any ideas on how to fix this?
I've been fippling around with the settings for a bit but nothing seems to be working, this is my xorg conf:
...
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSectionAlso, xrandr shows:
[user@faparch ~]$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 380mm x 220mm
1920x1080 60.0*+
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
DP-6 disconnected (normal left inverted right x axis y axis)Last edited by Torxed (2013-01-29 19:05:56)
Offline
ffmpeg -v 1 -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 30 -qscale 1 -i :0.0 -f alsa -i hw:0,0 -acodec flac -vcodec huffyuv -preset veryslow output_lossless.mkvi think -qscale 1 did the trick... i think.. any way this setup works with good quality at that ![]()
Last edited by Torxed (2013-01-29 19:06:28)
Offline
You simply needed to move "-s 1920x1080" as in input option. Otherwise, as in your first post, the default size for x11grab is 640x480 and you're resizing it to 1920x1080.
"-preset veryslow" is a libx264 option and is ignored by huffyuv.
"-qscale 1" is an output option, but you're attempting to apply it to the input which does not make sense. Also, huffyuv ignores qscale, since it is a lossless encoder, so you don't need it for an output option either.
Last edited by DrZaius (2013-01-31 20:57:50)
Offline