无法使用FFMPEG将webm音频文件转换为mp4 [英] Failed to convert webm audio file to mp4 using FFMPEG
问题描述
我有一个webm音频文件,我试图使用ffmpeg将其转换为mp4.但是创建mp4失败.有关文件的信息如下.
I have a webm audio file , I was trying to convert it into mp4 using ffmpeg. But it is failed to create the mp4. The info about the file is as follows.
fmpeg -i 54ebe077-96fc-4ace-9a38-f13c58807322.webm -hide_banner
Input #0, matroska,webm, from '54ebe077-96fc-4ace-9a38-f13c58807322.webm':
Metadata:
encoder : Lavf56.40.101
creation_time : 2019-10-22T11:19:12.000000Z
Duration: 00:00:24.16, start: 0.000000, bitrate: 41 kb/s
Stream #0:0: Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
Stream #0:1: Audio: opus, 48000 Hz, mono, fltp (default)
At least one output file must be specifiedffmpeg -i 54ebe077-96fc-4ace-9a38-f13c58807322.webm -qscale 0 out.mp4
我曾尝试使用以下命令进行转换
I was tried to convert it using the following command
ffmpeg -i 54ebe077-96fc-4ace-9a38-f13c58807322.webm -qscale 0 out.mp4
它引发错误
[opus @ 0x56489c7f9840] LBRR frames is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[opus @ 0x56489c7f9840] Error decoding a SILK frame.
[opus @ 0x56489c7f9840] Error decoding an Opus frame.
Too many packets buffered for output stream 0:1.
[aac @ 0x56489c82d640] Qavg: 59180.625
[aac @ 0x56489c82d640] 2 frames left in the queue on closing
Conversion failed!
如何解决此问题?我已经在VLC中播放了文件,并且可以听到源文件中的声音.但是转换失败
How to fix this issue? I have played the file in VLC and I can hear the sound from the source file. But failed to convert it
推荐答案
您的 ffmpeg
太旧了
更新您的 ffmpeg
:
这是票证#4641:解码SILK帧时出错.该修补程序比最新的发行版分支(截至撰写本文时为FFmpeg 4.3)要新,因此您必须从git master分支中获取构建(上面的两个链接都可以),或者等待FFmpeg 4.4.
This was ticket #4641: Error decoding SILK frame. The fix is newer than the most current release branch (FFmpeg 4.3 as of writing this), so you have to get a build from the git master branch (either of the links above will do), or wait for FFmpeg 4.4.
如果您无法更新 ffmpeg
,则旧的解决方法是使用libopus进行解码:
If you can't update your ffmpeg
the old workaround is to use libopus to decode:
ffmpeg -c:a libopus -i input ...
这篇关于无法使用FFMPEG将webm音频文件转换为mp4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!