将 mp3 转换为 mp4
我需要将 mp3 文件转换为 mp4 或任何其他视频格式,并带有空白图像;这样我就可以在任何视频播放器上播放它或将其上传到 YouTube 上。 我不想使用现成的软件(我必须使用该软件手动转换每个文件),但我需要一种编码方法来自动执行整个转换。
关于我如何去做这件事有什么想法吗?谢谢。
I need to convert mp3 files into mp4 or any other video formats, with blank images; so that I can play it on any video player or upload it on youtube.
I don't want to use the readily available softwares(I will have to manually convert each file using the software), but I need a way to code it which would perform the entire conversion automatically.
Any thoughts on how I can go about doing this? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
检查 FFMPEG。它最大的问题是构建它。它可以从独立的视频和音频轨道生成 mp4。视频轨道可以作为一系列静止图像来提供。我只是不确定指定单个图像是否适合您。
另一个选择是 MEncoder,问题是一样的 - 你需要构建它。或者尝试找到预建的
Check FFMPEG. the biggest problem with it is to build it. It can produce mp4 from independent video and audio tracks. Video track can be provided as a series of still images. I just not sure if specifying single image would work for you.
another option is MEncoder, the problem is the same - you'll need to build it. Or try to find prebuilt one
您知道 AviSynth 吗?实际上,它允许您编写和/或生成编辑/混合媒体文件的脚本。它会像这样:
我不记得这些函数的确切参数,而且我只通过 Google 查询给出了确切的名称,但这个示例应该非常接近您将使用的实际代码。
Are you aware of AviSynth? Effectively it allows you to write and/or generate scripts that edit/mix media files. It would go something like ~this:
I do not remember exact parameters of these functions, plus I only gave the exact names thanks to Google query, but this sample should be really close to actual code you would use.
VLC 媒体播放器(在此处提供)应该能够完成这项工作。
打开应用程序后按 Ctrl-R 将显示“转换”菜单。
VLC Media Player (available here) should be able to do the job.
Pressing Ctrl-R after opening the app brings up the Convert menu.