【发布时间】:2015-07-19 05:10:40
【问题描述】:
我有一个目录,其中包含以 UNIX 时间戳 格式命名的 .jpg 图像。如何将所有以最旧时间戳开头的图像转换为.mp4 视频格式的最新图像?
我找到了一个解决方案,但它使用增量命名,例如 image001、image002。
如果有任何帮助,我将不胜感激。谢谢。
使用 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 DAR 0:0, 30 fps
Metadata:
encoder : Lavc56.26.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
【问题讨论】:
标签: ffmpeg