本文介绍了FFMPEG对屏幕捕获?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有捕获屏幕和声音从电脑的麦克风一个Applet,
截图然后​​连接coded到ScreenVideo2,而且声音EN coded到AAC。

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.

我如何使用的ffmpeg通过帧混流这一点,框架,然后发送的复用输出到wowza媒体服务器?

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

如果它不能与ffmpeg的完成,可以请你提供什么建议吗?

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

推荐答案

该操作系统?在Linux下,你可能要考虑

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:

录制屏幕:

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

录制窗口:

#!/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

这篇关于FFMPEG对屏幕捕获?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 15:02