做了ffmpeg的两个带通道的序列帧叠加输出视频设置
ffmpeg -f image2 -framerate 25 -i d:\\test\\%d.tga -loop 1 -i d:\\test2\\%d.tga -filter_complex overlay=shortest=1 d:\\out8.mp4 在cmd可以运行
但编辑成.bat文件后为:
echo off
ffmpeg -f image2 -framerate 25 -i d:\\test\\%%d.tga -loop 1 -i d:\\test2\\%%d.tga -filter_complex overlay=shortest=1 d:\\out8.mp4
pause
报错无法运行,转换报错如下:
Input #0, image2, from 'd:\\test\\%d.tga':
Duration: 00:00:00.12, start: 0.000000, bitrate: N/A
Stream #0:0: Video: targa, bgra, 4096x4096, 25 tbr, 25 tbn, 25 tbc
Input #1, image2, from 'd:\\test2\\%d.tga':
Duration: 00:00:00.12, start: 0.000000, bitrate: N/A
Stream #1:0: Video: targa, bgra, 4096x4096, 25 tbr, 25 tbn, 25 tbc
File 'd:\\out8.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 (targa) -> overlay:main
Stream #1:0 (targa) -> overlay verlay
overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[libx264 @ 000001f6a5fc4f80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [error]: malloc of size 28876917 failed
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[image2 @ 000001f6a5fc1580] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
Conversion failed!
跪求大神帮忙解决!!!!!! |