Stable: 2.5.2
Development: 2.6-alpha3
Hello MOC staff/devs!!!
For some time i have noticed "WAV Files" doesn't show kbp/s numbers below window.
Only on WAV format have see something like this missing.
FLAC, APE, MP3... are showing normally.
here it is
I do not mind posting, simply a cosmetic issue but can you check a ".wav" files please?
$ nili@debian:~$ apt-cache policy moc
moc:
Installed: 1:2.5.0-1
Candidate: 1:2.5.0-1
Version table:
*** 1:2.5.0-1 0
500 http://ftp.us.debian.org/debian/ jessie/main i386 Packages
100 /var/lib/dpkg/status
Regards,
Nili
riesebie
Thu, 2015-08-20 12:12
Permalink
Wav is the industry standard
Wav is the industry standard for uncompressed lossless audio. Yes 1,411kbps is the raw bit rate for a audio CD. All audio CDs that you will burn will come out as 1411kbps music files. A Wav file will fluctuate in size depending on the source material you are encoding. For example, (without getting into to much detail) an audio CD like what you buy in the stores, all have a maximum resolution of 16-bit 44,100HZ. Doing the math, when that is encoded into Wav it will give you a bit rate of 1,411kbps. But if I we're to rip audio of off of a DVD which has a resolution of 16-bit at a slightly higher sample rate of 48,000HZ I would get a Wav file that is abut 1,560kbps (Give or take) So It just depends on the native audio resolution of your source material.
Elimar
Nili
Sat, 2015-08-29 18:50
Permalink
Hi riesebie, Thanks for
Hi riesebie,
Thanks for explanation and clarification of some things, in fact, a part of your message is known to me. Those wav from the image ^above are made rip from SACD DVD
Originally they were up to 5000 kbps, I converted to WAV with foobar2000 , after converting they dropped to 2822kbp/s with output 32-bit selected. So, now i have them on 2822kbp/s as .wav
I know some PCM WAV shown as 1436kbp/s usually from DVD's some other like you said 1411kbps. Apparently WAV shown different to the manner how it is done the converting, 1411 is standart from what i know.
Wish MOC to read all possibility of WAV kbps even if is static/standard or converted by user.
I remember some other audio player can show those wav kbps... MOC is my main favorite audio player, I would use even if stay empty that part of info.
tomaszg
Sat, 2015-08-29 21:46
Permalink
It should not be difficult to
It should not be difficult to correct it for PCM files at least with sndfile decoder. I'll try to prepare a patch. However, what you probably rather want is a possibility to see details about sound format (sampling rate, bit depth, ...)
Let me also add that the term "SACD DVD" is very confusing, as SACDs are not DVD disks, unlike DVD-A. Did something change and SACDs became rippable, or are you refering just to an re-recording of a SACD via analog connection? In any case, storing the result in 32-bit file offers no benefit over 16-bits, see e.g. http://people.xiph.org/~xiphmont/demo/neil-young.html
tomaszg
Mon, 2015-08-24 20:12
Permalink
That's only half of the story
That's only half of the story as .wav allows also compressed audio (even mp3), thus doing the math won't always help. See for example wikipedia: https://en.wikipedia.org/wiki/WAV#WAV_file_audio_coding_formats_compared
riesebie
Thu, 2015-08-27 08:54
Permalink
Thanks for clarification.
Thanks for clarification.
jcf
Sun, 2015-08-23 03:22
Permalink
Yeah, It's Annoying
The MOC decoder plug-ins use the values they get from the applicable library to calculate the kbps value (amongst others). But unfortunately in some cases the library returns garbage in those values. MOC detects this as best it's able and, rather than perpetuating GIGO, simply blanks what would be an otherwise meaningless value.
For the FFmpeg/LibAV library, breakages occur for the WAV format (amongst others) so I suspect this is the cause of your problem. MOC's doing its best, but, short of just guessing, it can't do more than that.
(Those interested in the exact details can look at
is_timing_broken()
in the FFmpeg decoder.)As a circumvention, you could try the sndfile decoder (if you have it installed) for WAV files via the MOC
PreferredDecoders
configuration option (if you've changed it from the default).(Some of that assumes you are using the FFmpeg decoder for WAV files, of course.)
Nili
Sun, 2015-08-23 07:08
Permalink
Hi jcf, I use more or less in
Hi jcf,
I use more or less in default settings with very few changes, here's the config i'm using:
Tried to active these ones, but i did not notice difference.
Please tell me what can i do under this configuration concretely.
Thank you for your message, and your support.
Kindly regards,
Nili
jcf
Mon, 2015-08-24 02:15
Permalink
Do You Have SndFile Installed?
This line says you should be using the sndfile decoder (if you have it installed) first by default:
(Explicitly configuring the commented defaults doesn't achieve anything.)
Do you have it sndfile (
which sndfile-info
)? If so, do you have the MOC sndfile decoder installed (in whichever directory your particular distribution installs MOC plug-ins)?riesebie
Thu, 2015-08-27 09:31
Permalink
Test on Debian's installation
PreferredDecoders += wav(sndfile)
'ldd /usr/lib/x86_64-linux-gnu/moc/decoder_plugins/libsndfile_decoder.so| grep libsnd'
libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007ff6c12dc000)
The bitrate isn't shown.
Elimar
--
Hates to do BBCode cosmetics
tomaszg
Thu, 2015-08-27 14:34
Permalink
JCF must have been a bit
JCF must have been a bit sleepy while recommending the use of sndfile decoder to solve the issue ;)
static int sndfile_get_bitrate (void *unused ATTR_UNUSED)
{
return -1;
}
I don't see any way to get bitrate via libsndfile (unless I'm also missing something): http://www.mega-nerd.com/libsndfile/api.html However it could be possible to do the calculation at least for PCM .wav files. In the similar way, sndfile decoder should also try to better fit output sample format to the file contents - now it just converts everything to float.
jcf
Fri, 2015-08-28 04:15
Permalink
Sad But True
You'd be surprised how close to the mark that is.
Nili
Thu, 2015-08-27 13:40
Permalink
No haven't installed sndfile,
No haven't installed sndfile, i'm just using default moc from Debian stable with plain minimal config.
Also no plugin have installed. Thanks for clarification, then is not it required to activate that settings since sndfile is not installed.