我正在尝试将.OMA文件转换为.MP3,但是对于特定文件却没有成功。
如果我尝试:
ffmpeg -i audio1.oma -f mp3 output.mp3
文件已成功转换。 audio1.oma文件是 3 MB 文件。
完整输出:
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[oma @ 0x7f8fc4000000] Estimating duration from bitrate, this may be inaccurate
Input #0, oma, from 'audio1.oma':
Metadata:
title : Is This It
artist : The Strokes
album : Is This It
genre : Rock
OMG_TRLDA : 2001/01/01 00:00:00
TLEN : 153000
Duration: 00:02:33.36, start: 0.000000, bitrate: 128 kb/s
Stream #0:0: Audio: mp3 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s
Output #0, mp3, to 'output.mp3':
Metadata:
TIT2 : Is This It
TPE1 : The Strokes
TALB : Is This It
TCON : Rock
OMG_TRLDA : 2001/01/01 00:00:00
TLEN : 153000
TSSE : Lavf57.56.101
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
Metadata:
encoder : Lavc57.64.101 libmp3lame
Stream mapping:
Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size= 2397kB time=00:02:33.35 bitrate= 128.0kbits/s speed=37.2x
video:0kB audio:2397kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.016094%
如果我尝试使用另一个.oma( 53 MB ),我会收到错误:
不受支持的编解码器5! audio2.oma:功能未实现
完整输出:
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[oma @ 0x7f8792000000] Unsupported codec 5!
audio2.OMA: Function not implemented
使用MP3播放器时,两个音频都能正常工作。 第一个有效的音频只是我MP3播放器中的一首随机歌曲进行测试。 第二个文件录制在一个有多个频道播放的音乐工作室中。
我在这里缺少什么?