Pregunta

So I have an Applet that captures the screen, and sound from the computer's microphone, the screenshots are then encoded to ScreenVideo2, and the sound is encoded to AAC.

How can I use ffmpeg to mux this, frame by frame, and then send the muxed output to a wowza media server?

if it cant be done with ffmpeg, can you kindly provide any suggestions?

¿Fue útil?

Solución

which OS? Under Linux, you might want to consider http://kde-apps.org/content/show.php/FDesktopRecorder?content=147844

The central core of the script is something like:

Records the 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

Record a 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

Otros consejos

Xuggler can do that for you. I'm not exactly sure if it's working in Applets. It is able to encode frames by using ffmpeg in the background. It's actively developed right now and has good support via its mailing list.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top