avinash p.v | 9 Feb 10:50
Picon

Issues with Live screen casting using X11grab

Dear All,

I am a Student working on a Project in which I need to Stream my Desktop
Live to another System over a wireless Network. I am stuck very badly, any
help will be greatly appreciated.

*I am able to grab the Screen successfully* with the following command:
$ ./ffmpeg -f x11grab -r 24 -s 1024x720 -i :0.0 out.mpg
OR even better quality by
$ ffmpeg -an -f x11grab -r 25 -s 1024x768 -i ":0.0" -vcodec mpeg4 -sameq
/tmp/bla.mp4

Then I am trying to stream this to the ffserver with the following command ;
and I have* hit a road block*.*
$ ffmpeg -f x11grab  -r 3 -b 64 -g 12 -s 1024x720  -i :0.0
http://localhost:8090/screencast.ffm*

FFmpeg version SVN-r20911, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Dec 24 2009 10:42:59 with gcc 4.3.3
  configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame
--enable-libxvid --enable-x11grab
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.43. 0 / 52.43. 0
  libavformat   52.44. 0 / 52.44. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 2 /  0. 7. 2
WARNING: The bitrate parameter is set too low. It takes bits/s as argument,
not kbits/s
[x11grab @ 0x8c7a390]device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1024
height: 720
[x11grab @ 0x8c7a390]shared memory extension  found
[x11grab @ 0x8c7a390]MAX_READ_SIZE:
5000000 reached
[x11grab @ 0x8c7a390]Estimating duration from bitrate, this may be
inaccurate
Input #0, x11grab, from ':0.0':
  Duration: N/A, start: 1265699007.493820, bitrate: 70778 kb/s
    Stream #0.0: Video: rawvideo, bgra, 1024x720, 70778 kb/s, 3 tbr, 1000k
tbn, 3 tbc
[mpeg4 @ 0x8c8b7c0]bitrate tolerance too small for bitrate
Output #0, ffm, to 'http://localhost:8090/screencast.ffm':
    Stream #0.0: Video: mpeg4, yuv420p, 1360x768, q=3-31, 64 kb/s, 1000k
tbn, 3 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Error while opening encoder for output stream #0.0 - maybe incorrect
parameters such as bit_rate, rate, width or height
*
My ffserver.conf file is :*

Port 8090
BindAddress 0.0.0.0
MaxClients 1000
MaxBandwidth 1000
NoDaemon

<Feed screencast.ffm>
File /tmp/screencast.ffm
FileMaxSize 10M
ACL allow 127.0.0.1
</Feed>

<Stream screencast.avi>
Feed screencast.ffm
Format avi
AudioBitRate 32
AudioChannels 1
AudioSampleRate 22050
VideoBitRate 64
VideoBufferSize 40
VideoFrameRate 3
VideoSize 1024x720
VideoGopSize 12
NoAudio
</Stream>

<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>

So, please help me by answering these qustions:

   1. *Am I heading in the right direction at all. Is it achievable from
   FFMPEG? I did'nt find much help online related to live streaming.
   *
   2. *If so, what are the changes i need to make either in the cofig file
   or in the command.. or is there any other way.
   *
   3. *Please suggest me some documentation [tutorials] with which i could
   work better.*

Thanks & Regards
Avinash P V

Gmane