正如文档中所解释的,我为Lambfront触发器设置了Lambda @ edge Viewer Response.
lambda函数代码:
'use strict';
exports.handler = (event, context, callback) => {
console.log('----EXECUTED------');
const response = event.Records[0].cf.response;
console.log(event.Records[0].cf_response);
callback(null, response);
};
Run Code Online (Sandbox Code Playgroud)
我已经为Viewer Response事件设置了适当的触发器.
现在,当我通过cloudfront发出请求时,必须将其记录在cloudwatch中,但事实并非如此.
如果我做一个简单的Test Lambda Function(使用Button),它会被正确记录.
这可能是什么问题?
amazon-web-services amazon-cloudfront aws-lambda aws-lambda-edge
我在读有关-re的选项ffmpeg。他们提到的是
从文档
-re (input)以本机帧速率读取输入。主要用于模拟抓取设备或实时输入流(例如从文件读取时)。不应与实际抓取设备或实时输入流(可能导致数据包丢失)一起使用。默认情况下,ffmpeg 尝试尽可能快地读取输入。此选项会将输入的读取速度减慢到输入的本机帧速率。它对于实时输出(例如实时流媒体)很有用。
我的疑问基本上是我强调的上述描述的一部分。建议在实时输入流期间不要使用该选项,但最终建议在实时输出中使用它。
考虑到输入和输出都是rtmp格式的情况,我应该使用它还是不使用它?