简体   繁体   English

使用java将帧写入kinesis视频流

[英]Write frames to kinesis video stream using java

I am using aws lambda for processing the frame, which generates png image sequences as output.我正在使用 aws lambda 处理帧,它生成 png 图像序列作为输出。 i want to push these processed frames to amzaon kinesis-video-stream.我想将这些处理过的帧推送到 amzaon kinesis-video-stream。 how to do it in java?如何在java中做到这一点?

I found the way, we can not directly push png or jpg format to kvs,as kinesis video stream takes only h264 format video fragments, so first we need to convert the list of images into video(you can use ffmpeg to convert from image to video) and then send the same mkv video file using putmedia api to kinesis video stream.我找到了方法,我们不能直接将png或jpg格式推送到kvs,因为kinesis视频流只需要h264格式的视频片段,所以首先我们需要将图像列表转换为视频(您可以使用ffmpeg从图像转换为视频),然后使用 putmedia api 将相同的 mkv 视频文件发送到 kinesis 视频流。 you can see the example here in java .你可以在 java 中看到这里例子

在您的 lambda 屏幕左侧和屏幕右侧,您可以找到 KVS kinesis 视频流,我只知道这么多

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM