[FFmpeg-user] MP4 to wav

Anatoly anatoly at kazanfieldhockey.ru
Thu Apr 13 03:02:30 EEST 2023


On Tue, 11 Apr 2023 12:09:32 +0300
Alexander Gorodetski <alexander.gorodetski at gmail.com> wrote:

> Hello guys,
> 
> I cannot convert the following file from MP4 format to WAV format. It
> should be noted that the audio of this MP4 file is encoded with
> G722.1. It should be noted that the only software that can open and
> play this file properly is VSPlayer.
> 
> The MP4 can be downloaded from here:
> https://drive.google.com/file/d/1_JGekhr6byAv7dkLw48LRQIJGMxMu4oh/view?usp=drivesdk
> 
> Any help will be appreciated.

As I understand it, ffmpeg should be able to decode G722.1, another
("code") name for this codec is "Siren"
atly at asd2:~/work/trash % ffmpeg -codecs | grep siren
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
...
 D.AIL. siren                Siren

Theoretically, another way to do it:
- extract raw G722.1 bitstream from your mp4 file using mp4box
- convert extracted bitstream to wav/raw using those old windows (I
  think they should work under wine too) utilities:
http://spectralink.polycom.com/global/downloads/company/about_us/technology/
But:
% mp4box -info  1122.mp4
[iso file] Unknown top-level box type 02010000
[iso file] Incomplete box 02010000 - start 0 size 1228368384
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown top-level box type 02010000
Truncated file - missing 1228368384 bytes
Error opening file 1122.mp4: IsoMedia File is truncated

According to this
http://www.mplayerhq.hu/DOCS/codecs-status.html#ac
Mplayer (and hence mencoder) should be able to decode G722.1 not only
using "ffmpeg siren audio codec", but, under windows, also using
sirenacm.dll and vivog723.acm.
Yet again (even beind told to play video only):
% mplayer -nosound 1122.mp4
MPlayer SVN-r38192-snapshot-10.0.1 (C) 2000-2020 MPlayer Team
Playing 1122.mp4.
libavformat version 58.45.100 (external)
MPEG-PS file format detected.
MPEG: FATAL: EOF while searching for sequence header.
Video: Cannot read properties.
No stream found.
Exiting... (End of file)


More information about the ffmpeg-user mailing list