相关疑难解决方法(0)

使用ffmpeg和时间戳顺序将目录中的所有图像转换为.mp4

我有一个目录,其中.jpg包含以UNIX时间戳格式命名的图像。如何将所有从最早的时间戳开始的图像转换为最新的.mp4视频格式?

我发现了一个解决方案,但它使用的增量命名,如image001image002

我将不胜感激任何帮助。谢谢。

使用aergistal的解决方案时,我在输出中出现错误:我按照您说的做,但是出现了输出错误:

Input #0, concat, from 'list.txt':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 540x405 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[swscaler @ 0x14751c0] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x14b7120] height not divisible by 2 (540x405)
Output #0, mp4, to 'out.mp4':
Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 …
Run Code Online (Sandbox Code Playgroud)

ffmpeg

1
推荐指数
1
解决办法
3058
查看次数

标签 统计

ffmpeg ×1