ffmpeg音频流丢失

时间:2018-10-08 13:40:12

标签: ffmpeg android-ffmpeg

我正在使用follow命令更改视频的亮度,添加图像叠加层和两个文本叠加层,我可能必须在某处使音频流变,但是我不知道在哪里。

CMD:

-i srcVideoPath

-i logoPath

-filter_complex eq =对比度= 1:亮度= 0.3475048:饱和度= 1:伽马= 1:伽马_r = 1:伽马_g = 1:伽马_b = 1:伽马_权重= 1 [v];

[1:v] scale = h = -1:w = 100 [overlay_scaled],[v] [overlay_scaled] overlay = eval = init:x = W-100-W * 0.1:y = W * 0.1 [ v];

[v] drawtext = fontfile = / system / fonts / Roboto-Regular.ttf:text ='name':fontcolor = white:fontsize = 60:box = 1:boxcolor=0x7FFFD4@0.5:boxborderw = 20:x = 20:y = h-(text_h * 2)-(h * 0.1):enable ='between(t,0,2)',

drawtext = fontfile = / system / fonts / Roboto-Regular.ttf:text ='function':fontcolor = white:fontsize = 30:box = 1:boxcolor=0x7FFFD4@0.5:boxborderw = 20:x = 20: y = h-text_h-(h * 0.1)+25:enable ='between(t,0,2)'[v]

预设超快

-地图[v]

-acodec复制

outPath

谢谢。

1 个答案:

答案 0 :(得分:1)

-map [v]之后,添加-map 0:a:?。这告诉ffmpeg包含第一个文件中的音频流(如果有的话)。