加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
aquila.lua 1.70 KB
一键复制 编辑 原始数据 按行查看 历史
gozfree 提交于 2020-12-05 11:03 . record mp4 ok
aquila_global = {
videocap = {
type = "usbcam",
device = "/dev/video0",
format = "YUV422P",
width = 640,
height = 480,
},
audiocap = {
type = "alsa",
},
videoenc = {
--type supported: mjpeg/x264
--type = "mjpeg",
type = "x264",
format = "YUY2",
width = 640,
height = 480,
},
vdecode = {
type = "h264dec",
},
overlay = {
type = "timestamp",
offsetx = 0,
offsety = 0,
switch = "on",
},
record = {
type = "mp4",
file = "test.mp4",
},
playback = {
-- type supported sdl/snkfake
--type = "snkfake",
--format = "file",
type = "sdl",
--format = "rgb",
format = "yuv",
width = 640,
height = 480,
},
upstream = {
type = "rtmp",
port = 554;
},
filters = {
"videocap",
"videoenc",
--"vdecode",
--"playback",
--"upstream",
"record",
},
graphs = {
{
source = "videocap",
sink = "videoenc",
},
{
source = "videoenc",
sink = "record",
},
},
}
return aquila_global
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化