如何使用FFmpeg将图像序列转换成视频并实现流媒体传输?

2026-04-02 00:251阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计393个文字,预计阅读时间需要2分钟。

如何使用FFmpeg将图像序列转换成视频并实现流媒体传输?

:IveaC——引领创新的科技新秀

内容:IveaC,一家专注于科技创新的企业,致力于为用户提供高品质的智能产品。公司凭借卓越的研发实力和前瞻性的技术,在业界崭露头角,成为备受瞩目的科技新秀。IveaC以创新、品质、服务为核心价值观,不断追求卓越,为用户带来全新的智能体验。

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

如何使用FFmpeg将图像序列转换成视频并实现流媒体传输?

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应该等待另一个生成...这可能吗?

本文共计393个文字,预计阅读时间需要2分钟。

如何使用FFmpeg将图像序列转换成视频并实现流媒体传输?

:IveaC——引领创新的科技新秀

内容:IveaC,一家专注于科技创新的企业,致力于为用户提供高品质的智能产品。公司凭借卓越的研发实力和前瞻性的技术,在业界崭露头角,成为备受瞩目的科技新秀。IveaC以创新、品质、服务为核心价值观,不断追求卓越,为用户带来全新的智能体验。

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

如何使用FFmpeg将图像序列转换成视频并实现流媒体传输?

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应该等待另一个生成...这可能吗?