[FFmpeg-user] Error during conversion of MP4 to WAV

Alexander Gorodetski alexander.gorodetski at gmail.com
Wed Apr 5 10:50:43 EEST 2023


Hello guys,

I have MP4 file audio encoded with g722.1 (I do not know the reason why MP4
was created in such a strange way).

In any case I am trying to convert the MP4 file to WAV format and I receive
the following strange message. It seems that ffmpeg does not support the
g722.1 audio format. What can be a solution to this problem?

(base) root at 2b5cadb2b0df:/fsx_new/Alex/tmp1# ffmpeg -i input.mp4 out.wav
ffmpeg version 4.1.9-0+deb10u1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --prefix=/usr --extra-version=0+deb10u1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libcodec2 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl
--enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[mp2 @ 0x5616b28ff480] Header missing
    Last message repeated 12 times
[mpeg @ 0x5616b28fb8c0] decoding for stream 1 failed
[mpeg @ 0x5616b28fb8c0] Could not find codec parameters for stream 1
(Audio: mp2, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mpeg, from 'input.mp4':
  Duration: 00:00:14.60, start: 65755.625089, bitrate: 785 kb/s
    Stream #0:0[0x1e0]: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080,
25.08 tbr, 90k tbn
    Stream #0:1[0x1c0]: Audio: mp2, 0 channels, s16p
Stream mapping:
  Stream #0:1 -> #0:0 (mp2 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
Output #0, wav, to 'out.wav':
  Metadata:
    ISFT            : Lavf58.20.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz,
stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc58.35.100 pcm_s16le
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x5616b29d8780] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
size=       2kB time=00:00:10.32 bitrate=   1.3kbits/s speed=1.14e+03x
video:0kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 5.078125%
Conversion failed!

Thanks,
AlexG.


More information about the ffmpeg-user mailing list