Converta o som MPEG-1 Audio Layer II para o arquivo WAV

0

Eu preciso de uma ferramenta de linha de comando para converter arquivos de som mp2 em arquivos wav executados no Windows.

O ffmpeg parece decodificar corretamente, mas gera uma mensagem de erro: Error while decoding stream #0:0: Invalid data found when processing input . O arquivo resultante também é mais longo que o necessário.

C:\ffmpeg>ffmpeg.exe -i in.mp2 out.wav ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 34.100 / 55. 34.100 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.100 / 57. 56.100 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100 [mp3 @ 000000000036a860] Estimating duration from bitrate, this may be inaccurate Input #0, mp3, from 'in.mp2': Duration: 00:01:12.05, start: 0.000000, bitrate: 96 kb/s Stream #0:0: Audio: mp2, 22050 Hz, stereo, s16p, 96 kb/s Output #0, wav, to 'out.wav': Metadata: ISFT : Lavf57.56.100 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, stereo, s16, 705 kb/s Metadata: encoder : Lavc57.64.101 pcm_s16le Stream mapping: Stream #0:0 -> #0:0 (mp2 (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help Error while decoding stream #0:0: Invalid data found when processing input size= 6206kB time=00:01:12.04 bitrate= 705.6kbits/s speed=1.36e+003x
video:0kB audio:6206kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001227%

    
por E. Dean 25.12.2016 / 10:13

0 respostas