当前位置 : 主页 > 网络编程 > 其它编程 >

FFmpeg图像到视频和流媒体-FFmpegImagestoVideoandStreaming

来源:互联网 收集:自由互联 发布时间:2023-07-02
IveaC#programgeneratingJPEGimagesinrealtime,ineedto(continuously)generateavideofrom I've a C# program generating JPEG images in realtime, i need to (continuously) generate a video from the images and stream it (also in realtime). 我有一个
IveaC#programgeneratingJPEGimagesinrealtime,ineedto(continuously)generateavideofrom

I've a C# program generating JPEG images in realtime, i need to (continuously) generate a video from the images and stream it (also in realtime).

我有一个C#程序实时生成JPEG图像,我需要(连续)从图像生成视频并流式传输(也是实时)。

I've used ffmpeg to transcode an input video source and stream it, doesn't ffmpeg have an option to get the input as a set of images(always being generated) and make the video out of it ?

我已经使用ffmpeg对输入视频源进行转码并对其进行流式传输,ffmpeg是否可以选择将输入作为一组图像(始终生成)并将视频制作出来?

Cheers

1 个解决方案

#1

Actually I used VLC for the streaming....

实际上我使用VLC进行流媒体播放....

Actually I just found at that I could: ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg

其实我刚刚发现我可以:ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg

But i need to tell ffmpeg to keep doing it, I mean, if it doesn't find another image ffmpeg should wait for another one to be generated... is this possible ?

但我需要告诉ffmpeg继续这样做,我的意思是,如果它没有找到另一个图像,ffmpeg应该等待另一个生成...这可能吗?

网友评论