佛系程序员
首页
栏目
标签
归档
关于
友链
佛系程序员
首页
栏目
标签
归档
友链
关于
短视频背景循环与长音频合并制作新视频
video
技术开发
发布日期: 2023-08-25 23:23:37
喜欢量: 65 个
阅读次数:
716
用ffmpeg将短视频背景循环与长音频合并制作新视频
<p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">举例觅知网 www.51miz.com</p><p class="p2" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue"; min-height: 15px;">搜索关键词:</p><p class="p2" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue"; min-height: 15px;">唯美 大自然 </p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">https://www.51miz.com/so-shipin/3661359.html</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">找到需要的视频,进行下载。(需成为vip才能下载哈)</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">div.element-box-detail</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">div.element pr oh</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">a.image-box</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">video.video-preview none</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";"><br></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">下载的视频10秒20秒,音频较长时,合并视频和音频,需要重复视频。</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">怎么用ffmpeg合并视频和音频,在音频未结束时循环视频呢?</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">1.<span style="color: rgb(51, 51, 51); font-family: "pingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; white-space-collapse: preserve; font-size: 14px;">如果您想合并新的音频和视频重复视频,直到音频结束,您可以尝试这样做:</span>可以尝试这样做:</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";">```<span style="color: rgb(24, 24, 24); font-family: "Pingfang SC", "helvetica neuepingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; white-space: pre; font-size: 14px;">ffmpeg -stream_loop -1 -i input.mp4 -i input.mp3 -shortest -map 0:v:0 -map 1:a:0 -y out.mp4</span>```</p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";"><br></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";"><span style="color: rgb(51, 51, 51); font-family: "pingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; white-space-collapse: preserve;">使用-stream_loop -1表示无限循环input.mp4,使用-shortest表示当最短的输入流结束时结束编码。这里最短的输入流将是input.mp3。</span></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";"><span style="color: rgb(51, 51, 51); font-family: "pingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; white-space-collapse: preserve;"><br></span></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";"><span style="color: rgb(51, 51, 51); font-family: "pingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; white-space-collapse: preserve;">2.</span><span style="color: rgb(51, 51, 51); font-family: "pingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; white-space-collapse: preserve;">如果你想合并新的音频和视频重复音频,直到视频结束,你可以尝试这样做: </span><span style="color: rgb(24, 24, 24); font-family: "Pingfang SC", "helvetica neuepingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; white-space: pre;">```ffmpeg -i input.mp4 -stream_loop -1 -i input.mp3 -shortest -map 0:v:0 -map 1:a:0 -y out.mp4```</span></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";"><span style="color: rgb(24, 24, 24); font-family: "Pingfang SC", "helvetica neuepingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; white-space: pre;"><br></span></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; line-height: normal;"><span style="font-family: "Pingfang SC", "helvetica neuepingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; color: rgb(24, 24, 24); white-space: pre;">如何加上字幕呢?那就把上面的视频,再用软件处理加上字幕。</span></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; line-height: normal;"><span style="font-family: "Pingfang SC", "helvetica neuepingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; color: rgb(24, 24, 24); white-space: pre;"><br></span></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; line-height: normal;"><span style="font-family: "Pingfang SC", "helvetica neuepingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; color: rgb(24, 24, 24); white-space: pre;">其他素材网站:</span></p><p class="p1" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-stretch: normal; line-height: normal;"><span style="font-family: "Pingfang SC", "helvetica neuepingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; color: rgb(24, 24, 24); white-space: pre;"><br></span><span style="font-family: "pingfang SC", "helvetica neue", arial, "hiragino sans gb", "microsoft yahei ui", "microsoft yahei", simsun, sans-serif; font-size: 14px; color: rgb(51, 51, 51); white-space-collapse: preserve;">潮点视频<br></span><font face="Helvetica Neue"><span style="font-size: 13px;">https://shipin520.com/</span></font><br></p> <p>20个无版权可免费商用的音乐素材网站-建议收藏</p> <p>https://zhuanlan.zhihu.com/p/534205386</p> <p>(其中:https://musopen.org/music/relaxing/)</p> <p>16个免费商用图片网站</p> <p>https://zhuanlan.zhihu.com/p/80654726</p> <p>(其中:https://www.pexels.com/search/videos/forest/)</p><h1 class="Post-Title" style="font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-weight: 600; font-stretch: inherit; font-size: 24px; line-height: 1.22; font-family: -apple-system, "system-ui", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif; font-optical-sizing: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; margin-top: 24px; margin-bottom: 24px; font-synthesis: style; overflow-wrap: break-word; color: rgb(25, 27, 31);"><span style="font-size: 14px;">23个无版权可商用的高清视频素材网站-剪辑视频必备 </span><span style="font-size: 14px;">https://zhuanlan.zhihu.com/p/533760558</span></h1>
文章作者:
yyii
文章链接:
https://amtb.info/show/NDM=
版权声明:
本博客所有文章除特別声明外,转载请注明来源
佛系程序员
!
分享:
搜索