Wie kann man ffmpeg unter Ubuntu konfigurieren, um 3GP-Dateien in PCM WAV zu konvertieren?

3688
slhck

Ich verwende Ubuntu 10.04. Ich muss eine .3gp-Datei in PCM WAV konvertieren. Ich verwende dafür ffmpeg.

Wenn es vom Repository aus installiert wird, indem aptitude install ffmpeges einige grundlegende Versionen davon installiert, kann ich nicht konvertieren, was ich brauche.

Ich habe die neueste Version von Yasm Version 1.1.0 und die neueste Version von x264 - 0.125.2208 installiert. Danach habe ich ffmpeg mit git von der offiziellen Homepage mit bekommen git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg.

Ich habe versucht, ffmpeg selbst zu konfigurieren:

./configure --enable-gpl --enable-version3 --enable-postproc  --enable-nonfree --enable-swscale --enable-pthreads --enable-libmp3lame  --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb 

Dann: time make && make install.

Bis zu diesem Zeitpunkt war alles in Ordnung. Nach Umstellung mit

ffmpeg -i audiotest.3gp -f s16le -ar 8000 -acodec pcm_s16le audio.wav 

Ich wollte Informationen über diese PCM * .wav-Datei (ffmpeg -i audio.wav) prüfen und habe diese Fehlermeldung erhalten:

~# ffmpeg -i audio.wav  ffmpeg version N-42619-g6b7849e Copyright (c) 2000-2012 the FFmpeg developers built on Jul 21 2012 00:50:52 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-postproc --enable-nonfree --enable-swscale --enable-pthreads --enable-libmp3lame --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb  libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 41.100 / 54. 41.100 libavformat 54. 17.100 / 54. 17.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 2.100 / 3. 2.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [aac @ 0x943d4e0] Format aac detected only with low score of 1, misdetection possible! [aac @ 0x9443740] channel element 0.0 is not allocated Last message repeated 2 times [aac @ 0x9443740] More than one AAC RDB per ADTS frame 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. [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] Number of bands (16) exceeds limit (4). [aac @ 0x9443740] Number of bands (7) exceeds limit (2). [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] SSR 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. [aac @ 0x9443740] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [aac @ 0x9443740] channel element 2.0 is not allocated [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] channel element 0.0 is not allocated [aac @ 0x9443740] Number of bands (31) exceeds limit (1). [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] Number of bands (16) exceeds limit (2). [aac @ 0x9443740] channel element 0.7 is not allocated [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Number of scalefactor bands in group (62) exceeds limit (41). [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] channel element 0.2 is not allocated [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] channel element 0.15 is not allocated [aac @ 0x9443740] Pulse data corrupt or invalid. [aac @ 0x9443740] Number of scalefactor bands in group (48) exceeds limit (41). [aac @ 0x9443740] channel element 2.0 is not allocated [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Number of bands (16) exceeds limit (4). [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Reserved bit set. Last message repeated 1 times [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] channel element 2.0 is not allocated [aac @ 0x9443740] Number of bands (31) exceeds limit (4). [aac @ 0x9443740] Pulse data corrupt or invalid. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] SSR 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. [aac @ 0x9443740] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] channel element 0.0 is not allocated [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] channel element 0.3 is not allocated [aac @ 0x9443740] Pulse data corrupt or invalid. [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] Number of bands (35) exceeds limit (16). [aac @ 0x9443740] Number of scalefactor bands in group (63) exceeds limit (41). [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] channel element 0.0 is not allocated [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] channel element 0.0 is not allocated [aac @ 0x9443740] Number of bands (38) exceeds limit (10). [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] channel element 0.2 is not allocated [aac @ 0x9443740] channel element 0.7 is not allocated [aac @ 0x9443740] Reserved bit set. Last message repeated 2 times [aac @ 0x9443740] channel element 0.2 is not allocated [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Reserved bit set. Last message repeated 1 times [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] decode_band_types: Input buffer exhausted before END element found [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Error decoding AAC frame header. Last message repeated 1 times [aac @ 0x9443740] Reserved bit set. Last message repeated 1 times [aac @ 0x9443740] Number of bands (4) exceeds limit (1). [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Reserved bit set. [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x9443740] Number of bands (31) exceeds limit (8). [aac @ 0x9443740] Invalid Predictor Reset Group. [aac @ 0x9443740] Number of bands (31) exceeds limit (2). [aac @ 0x9443740] Number of bands (28) exceeds limit (1). [aac @ 0x9443740] channel element 0.0 is not allocated [aac @ 0x9443740] Input buffer exhausted before END element found [aac @ 0x9443740] Number of bands (16) exceeds limit (2). [aac @ 0x9443740] Error decoding AAC frame header. [aac @ 0x943d4e0] decoding for stream 0 failed [aac @ 0x943d4e0] Could not find codec parameters for stream 0 (Audio: aac, 4.0, s16, 383 kb/s): unspecified sample rate Consider increasing the value for the 'analyzeduration' and 'probesize' options [aac @ 0x943d4e0] Estimating duration from bitrate, this may be inaccurate audio.wav: could not find codec parameters 

Kann mir jemand dabei helfen? Was mache ich falsch?

0
Bitte zeigen Sie uns die vollständige, ungeschnittene Ausgabe des eigentlichen Kodierungsvorgangs * nicht * aus Ihrer Ausgabedatei. slhck vor 11 Jahren 0

1 Antwort auf die Frage

1
blahdiblah

Wie in der ersten Fehlermeldung vorgeschlagen:

Format aac detected only with low score of 1, misdetection possible! 

Es erkennt den Eingabedateityp falsch. Geben Sie das Eingabedateiformat mit der folgenden -fOption an:

ffmpeg -f s16le -i input.wav 

und es sollte besser funktionieren.

Wenn Sie jedoch nur Informationen zur Datei abrufen möchten, sollten Sie stattdessen FFprobe verwenden. Es ist im Allgemeinen mit FFmpeg gepackt, bietet ähnliche Optionen und stellt Informationen in einem viel einfacheren Format bereit. Die -show_formatund -show_streamsOptionen sollten Ihnen die meisten alle Informationen über eine Datei benötigen.