Decode other formats in WAV container #606

Open
opened 2025-09-04 20:11:25 +00:00 by martinwguy · 0 comments
martinwguy commented 2025-09-04 20:11:25 +00:00 (Migrated from codeberg.org)

Decode other formats in WAV container

Description

wav files can have as a subtype (when we call an encoding)
256 different values, almost all of which are GSM, other G.72x variants or MP3 in a
WAV container.

We can decode those, though some may have tweaks to the headers.

sox_ng -t ffmpeg - foo.wav < foo.mp3

can decode MP3-in-WAV files in a file named foo.mp3
and if you -t mp3 - them, you get

/home/martin/sox_ng/src/.libs/sox_ng WARN mp3-util: MAD lost sync

and get a file 0.026 seconds shorter than
ffmpeg gives.

Conclusion

Try decoding such files, if we can find any.

If not, suggest Try -t gsm for GSM ones and so on.

See also

  • #598: Write G.721 encoding
  • #599: Decode G.721 in WAV format
  • #600: Decode G.723 in WAV format
# Decode other formats in WAV container ## Description `wav` files can have as a subtype (when we call an encoding) 256 different values, almost all of which are `GSM`, other `G.72x` variants or `MP3` in a WAV container. We can decode those, though some may have tweaks to the headers. ``` sox_ng -t ffmpeg - foo.wav < foo.mp3 ``` can decode MP3-in-WAV files in a file named `foo.mp3` and if you `-t mp3 -` them, you get ``` /home/martin/sox_ng/src/.libs/sox_ng WARN mp3-util: MAD lost sync ``` and get a file 0.026 seconds shorter than `ffmpeg` gives. ## Conclusion Try decoding such files, if we can find any. If not, suggest `Try -t gsm` for GSM ones and so on. See also * #598: Write G.721 encoding * #599: Decode G.721 in WAV format * #600: Decode G.723 in WAV format
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martinwguy/sox_ng#606
No description provided.