Opened 11 years ago

Last modified 9 years ago

#1505 new enhancement

mplayer fails to play some wavs

Reported by: yuri@… Owned by: reimar
Priority: normal Component: demuxer
Version: HEAD Severity: minor
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


Here is an example:

mplayer says:
Playing SX191.WAV.

Exiting... (End of file)

Versions that I tried:
1.0rc2-4.2.1 (=mplayer-0.99.11_12 FreeBSD port)

Change History (6)

comment:1 Changed 11 years ago by compn

what programs can play this?

seems to have metadata at the beginning of the file.

comment:2 Changed 11 years ago by yuri@…

sweep can play it.
play program installed by sox-14.2.0 plays it too.

Many programs assume WAV format to be more simple than it actually is.
They assume that DATA immediately follows headers when there can be various other sections in between.
Maybe mplayer also doesn't parse such WAVs correctly for that reason.

comment:3 Changed 10 years ago by compn

  • Component changed from core to demuxer
  • op_sys changed from FreeBSD to All
  • Priority changed from important to normal
  • rep_platform changed from PC (x86 with MMX) to All
  • Severity changed from major to enhancement
  • Version changed from unspecified to HEAD

this appears to be a nist-sphere file

so its a modified wav file, without a wave header.
probably wont get supported with mplayer demuxer (patches welcome)
possibly will be supported in ffmpeg in the future.

comment:4 Changed 10 years ago by yuri@…

Looking closely, I see that there is no WAVE header.
But what bugs me is that 'sweep' can parse it ok.
Sweep uses
Should mplayer just use libsndfile instead since there are probably many such weakly documented features implemented there?

comment:5 Changed 10 years ago by compn

mplayer isnt good at using external libs for playback.
a patch to make mplayer use libsndfile is welcome.

comment:6 Changed 9 years ago by compn

  • Cc patriotact@… added

it should play if you figure out the correct rawaudio options:
mplayer SX191.WAV -rawaudio format=0x1 -demuxer rawaudio

Note: See TracTickets for help on using tickets.