[FFmpeg-user] desktop streaming
yugiohjcj-mailinglist at laposte.net
Wed Feb 19 17:07:58 CET 2014
On Wed, 19 Feb 2014 18:15:43 +0700
nugroho <nugroho.redbuff at gmail.com> wrote:
> Hi, I have ffmpeg installed in debian linux. I also have a flash
> streaming server located at http://a.b.c.d/app/stream.
> Now, I would like to stream my desktop include the sound to the
> streaming server. So what kind of ffmpeg syntax should be? Is it like
> this one bellow?
> _ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f
> flv rtmp://a.b.c.d/app/__stream_
> thanks for help!
You have all the instructions you need here:
In order to stream, I use the following command:
ffmpeg -y -f alsa -i default -f x11grab -r 10 -s 640x480 -async 1 -i :0.0 -strict -2 -c:a aac -c:v libx264 -pix_fmt yuv420p -preset ultrafast -s 640x480 -threads 0 -ar 44100 -b:a 64k -b:v 64k -bufsize 64k -f flv "rtmp://live-fra.twitch.tv/app/`cat ~/twitch.key`"
The frame rate of the input is at 10 fps whereas the input and output resolution is at 640x480.
It captures video and audio at the same time.
I set the audio and video bitrate of the output to 64kbit/s because I have a slow bandwidth but you can increase it if you have a better one.
More information about the ffmpeg-user