如何使用ffmpeg将m4v和wmv视频转换为mp4格式?
16lz
2021-01-22
I am using ffmpeg to convert videos to mp4 in my PHPMotion project. I am not able to convert wmv and m4v video to mp4 format. I've pasted the command that I used to convert wmv and m4v:
我在我的PHPMotion项目中使用ffmpeg将视频转换为mp4。我无法将wmv和m4v视频转换为mp4格式。我已经粘贴了用于转换wmv和m4v的命令:
ffmpeg -i 1.wmv -ab 128 -b 1200 test.mp4
ffmpeg -i 1.m4v -ab 128 -b 1200 test.mp4
When I use this codes, i got an error message:
当我使用此代码时,我收到一条错误消息:
Output #0, mp4, to 'test.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 640x360, q=2-31, 1 kb/s, 90k tbn, 24 tbc
Stream #0.1: Audio: 0x0000, 44100 Hz, stereo, s16, 0 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Unsupported codec for output stream #0.1
How can I solve this issue?
我该如何解决这个问题?
2 个解决方案
#1
3
Unsupported codec
The audio stream of your file seems to be encoded in a format that ffmpeg doesn't understand.
您的文件的音频流似乎以ffmpeg无法理解的格式进行编码。
Adding new codecs to ffmpeg is possible, but doesn't seem to be easy: See Adding new CODEC to ffmpeg
可以将新的编解码器添加到ffmpeg,但似乎并不容易:请参阅向ffmpeg添加新的CODEC
更多相关文章
- Linux第三章 命令基本格式及文件处理命令
- window下使用vnc远程登录linux图形界面和运行应用程序 和odroid
- 是否遇到过MySQL workbench text字段不能直接放入json格式内容
- 如何通过使用where子句与字符串格式(varchar(103),...,10)将103格式化
- 如何用sql语言只获得数据库当前日期,且格式为"yyyy-mm-dd"?
- 3、Oracle PL/SQL中Date格式及格式转换
- 利用Shell脚本将MySQL表中的数据转化为json格式
- oracle --sql--转换表字段日期格式(年月日时分秒转换年月日)
- SQL Server 2012失败:导入平面文件时,日期为yyyyy.m.dd格式