Ffmpeg for screen capture?

So, I have an applet that captures the screen and sounds from a computer microphone, the screenshots are then encoded to ScreenVideo2, and the sound is encoded to AAC.

How can I use ffmpeg for mux, is it frame by frame, and then send multiplex output to a wowza server?

if this cannot be done with ffmpeg, can you kindly provide any suggestions?

+4
java applet video audio mux
source share
2 answers

which OS? On Linux, you can consider http://kde-apps.org/content/show.php/FDesktopRecorder?content=147844

The central core of the script is something like:

Records a screen:

ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s $(xwininfo -root | \ grep 'geometry' | awk '{print $2;}') -i :0.0 -acodec flac -vcodec libx264 \ -vpre lossless_ultrafast -threads 0 -y output.mkv 

Burn window:

 #!/bin/sh INFO=$(xwininfo -frame) WIN_GEO=$(echo $INFO | \ grep -oEe 'geometry [0-9]+x[0-9]+' | \ grep -oEe '[0-9]+x[0-9]+')WIN_XY=$(echo $INFO | \ grep -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' | grep -oEe '[0-9]+\+[0-9]+' | \ sed -e 's/\+/,/' ) ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 \ -s $WIN_GEO -i :0.0+$WIN_XY -acodec flac -vcodec libx264 \ -vpre lossless_ultrafast -threads 0 -y output-single.mkv 
+1
source share

Xuggler can do that for you. I'm not quite sure if he works at Applets. It is able to encode frames using ffmpeg in the background. He is actively developing right now and has good support through his mailing list.

0
source share

All Articles