转换视频格式
由于 xbox 360 仅支持特定的视频/音频编解码器,因此我想编写一个实用程序,该实用程序可以在目录中查找并在文件放入目录时将文件转换为特定格式。
在某些情况下,它只需要转换容器格式(即,mkv 到 wmv 或 avi),而在某些情况下,它可能需要转换实际的电影。
当然,我不想编写执行实际转换的代码,所以我想知道是否有开源项目、免费库或事件命令行工具可以有效地完成此操作,以便我可以以自动化的方式使用。
Because the xbox 360 only supports specific video/audio codecs, I'd like to write a utility that would look in a directory and convert files to specific formats as they are dropped in the directory.
In some cases, it would only need to convert the container format (ie, mkv to wmv or avi) and in some cases it might need to convert the actual movie.
Of course I don't want to write the code that does the actual conversions so I'm wondering if there are open source projects, or free libraries or event command line tools that can do this effiently that I can use in an automated way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该查看 ffmpeg,尽管有一个库接口,但它主要是一个命令行程序。那应该能够进行相当多的转换和格式化。
You should look at ffmpeg, which is mostly a command-line program, although there is a library interface. That should be able to convert pretty much and format.
这就是 DirectShow 的用途。另一种选择可能是 Expression Encoder 不是免费的,但很便宜。它有一个命令行模式和一个API。
This is what DirectShow is for. An alternative might be Expression Encoder Not free but cheap. It has a command line mode and an API.