You are not logged in.

#1 2009-02-26 21:49:23

elflord
Member
From: France
Registered: 2008-11-09
Posts: 51

ffmpeg for screencast problem

hi all

i install the ffmpeg package through pacman
and try to make a screen recording with

   ffmpeg -vcodec mpeg4 -b 1000 -r 10 -g 300 -vd x11:0.0 -s 800x600 test.avi

and i got this error

FFmpeg version UNKNOWN, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  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-swscale
  libavutil     49.12. 0 / 49.12. 0
  libavcodec    52.10. 0 / 52.10. 0
  libavformat   52.23. 1 / 52.23. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jan 12 2009 11:47:47, gcc: 4.3.2
ffmpeg: unrecognized option '-vd'



what is wrong here ?
shall i compile ffmpeg myself to have this option ?

thanks

Offline

#2 2009-02-27 08:25:09

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: ffmpeg for screencast problem

Are you sure that -vd is a correct option? I can't find it  in the man page.

Offline

#3 2009-02-27 16:08:55

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: ffmpeg for screencast problem

elflord wrote:

ffmpeg: unrecognized option '-vd'



what is wrong here ?

Try the following:

ffmpeg -f x11grab -s 800x600 -r 10 -i :0.0 -sameq -r 25 screencast.mpg

Offline

#4 2009-02-28 13:20:27

elflord
Member
From: France
Registered: 2008-11-09
Posts: 51

Re: ffmpeg for screencast problem

thanks N30N

it works but the compression isn't high enough
for 23 seconds of video it's 13M
also does this command record sound too ?

i learned this command from the wonderful Inkscape screencast website: http://screencasters.heathenx.org/
you can see the command from the first episode
the author uses unbuntu

Offline

#5 2009-03-02 03:36:58

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: ffmpeg for screencast problem

elflord wrote:

the compression isn't high enough
for 23 seconds of video it's 13M

Indeed there's no compression (-sameq), see the man page for info on compression options.

elflord wrote:

does this command record sound too ?

Nope, but this one dose…

ffmpeg -f oss -i /dev/audio -f x11grab -s 800x600 -r 10 -i :0.0 -sameq -r 25 screencast.mpg

Offline

Board footer

Powered by FluxBB