我想将两个图像(名称没有按顺序编号)合并到一个视频中,但是结果只包含第一张图像的视频。
我将不胜感激!
ffmpeg.exe -r 1/5 -i image_x.png -r 1/5 -i image_y.png -codec:v libx264 -vf fps = 50 video.mp4
输出:
输入#0,png_pipe,来自 'C:\ Users \ khj \ Desktop \ SpeakerLayoutTool \ Images_video \ iamge_x.png':
持续时间:不适用,比特率:不适用 数据流#0:0:视频:png,rgba(pc),3840x2160、25 tbr,25 tbn,25 tbc输入#1,png_pipe,来自 'C:\ Users \ khj \ Desktop \ SpeakerLayoutTool \ Images_video \ image_y.png':
持续时间:不适用,比特率:不适用 流#1:0:视频:png,rgba(pc),3840x2160、25 tbr,25 tbn,25 tbc文件'C:\ Users \ khj \ Desktop \ SpeakerLayoutTool \ video.mp4'已经 存在。覆盖? [y / N] y流映射:流#0:0->#0:0(png (本机)-> h264(libx264))按[q]停止,按[?]寻求帮助[libx264 @ 0000016c2a46e000]使用cpu功能:MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0000016c2a46e000]配置文件高4:4:4 预测性,级别5.2,4:4:4,8位[libx264 @ 0000016c2a46e000] 264- 核心157 r2970 5493be8-H.264 / MPEG-4 AVC编解码器-Copyleft 2003-2019- http://www.videolan.org/x264.html-选项:cabac = 1 ref = 3 deblock = 1:0:0分析= 0x3:0x113 me =十六进制subme = 7 psy = 1 psy_rd = 1.00:0.00 mixed_ref = 1 me_range = 16 chroma_me = 1格子= 1 8x8dct = 1 cqm = 0 死区= 21,11 fast_pskip = 1 chroma_qp_offset = 4个线程= 12 lookahead_threads = 2 sliced_threads = 0 nr = 0抽取= 1隔行扫描= 0 bluray_compat = 0 constrained_intra = 0 bframes = 3 b_pyramid = 2 b_adapt = 1 b_bias = 0直接= 1重量b = 1 open_gop = 0重量p = 2 keyint = 250 keyint_min = 25 scenecut = 40 intra_refresh = 0 rc_lookahead = 40 rc = crf mbtree = 1 crf = 23.0 qcomp = 0.60 qpmin = 0 qpmax = 69 qpstep = 4 ip_ratio = 1.40 aq = 1:1.00输出#0,mp4至 'C:\ Users \ khj \ Desktop \ SpeakerLayoutTool \ video.mp4':元数据: 编码器:Lavf58.27.103 流#0:0:视频:h264(libx264)(avc1 / 0x31637661),yuv444p,3840x2160,q = -1--1、50 fps,12800 tbn,50 tbc 元数据: 编码器:Lavc58.52.100 libx264 辅助数据: cpb:最大/最小/平均比特率:0/0/0缓冲区大小:0 vbv_delay:-1帧= 250 fps = 22 q = -1.0 Lsize = 162kB时间= 00:00:04.94比特率= 268.1kbits / s速度= 0.444x
答案 0 :(得分:1)
使用
ffmpeg.exe -loop 1 -t 5 -i image_x.png -loop 1 -t 5 -i image_y.png -filter_complex "concat=n=2:v=1:a=0" -pix_fmt yuv420p -c:v libx264 video.mp4