Musepack Forums

Musepack Forums (https://forum.musepack.net/index.php)
-   Development (https://forum.musepack.net/forumdisplay.php?f=11)
-   -   new mpc command-line utility - mpcinfo (https://forum.musepack.net/showthread.php?t=92)

kuniklo 07 December 2004 11:02 pm

new mpc command-line utility - mpcinfo
 
I've written a simple mpc command line utilty that displays streaminfo information for mpc files, like ogginfo does for ogg files. You can find it here:

http://www.caddr.com/code/mpcinfo/mpcinfo.tar.gz

It's really just a thin wrapper around libmusepack I wrote to help me familiarize myself with it's interface.

I haven't tried getting it to work on anything but linux but it ought to work.

Let me know if there's anything else you'd like to see in such a utility.

Some sample output:

file: /home/miles/tunes/Lambchop/Nixon/01 The Old Gold Shoe.mpc
encoder: --Alpha-- 1.15
profile: 10 - 'Standard'
stream version: 7
sample frequency: 44100 hz
number of channels: 2
average bitrate: 183 kbits/sec
number of frames: 14579
maximum band index: 28
intensity stereo: off
mid/side stereo: on
title replaygain: -286
album replaygain: -381
title peak: 32597
title album: 34144
true gapless: yes

xmixahlx 13 December 2004 08:23 pm

possibility to display bit? i.e. 8/16/24/32 ?

...just a thought

thanx for this! any cli musepack prog is great

some thoughts in case you're looking for more challenges: mpcscan (a la the win32 proggy), mpcsplit (honestly, there has to be lossless splitting of even sv7 files...)


thanx kuniklo!
-mike

kuniklo 13 December 2004 08:36 pm

Quote:

possibility to display bit? i.e. 8/16/24/32 ?

...just a thought

thanx for this! any cli musepack prog is great

some thoughts in case you're looking for more challenges: mpcscan (a la the win32 proggy), mpcsplit (honestly, there has to be lossless splitting of even sv7 files...)


thanx kuniklo!
-mike
It looks like the sample bit depth isn't actually specified in the streaminfo header, at least in the exposed structure in libmusepack. I've been looking a little more closely at the guts of libmusepack so I'll see if I can find it.

What does mpcscan do?

mpcsplit is going to be trickier. From browsing the stream parsing source it doesn't look impossible but definitely non-trivial. I'm hoping to start documenting sv7 a bit so maybe it will become more clear in the process how to do this.

Were you able to get mpcinfo to compile ok?

xmixahlx 14 December 2004 04:00 am

yeah, it compiles fine using libmusepack 1.0.2:

Code:


file: aha.mpc

encoder: Buschmann 1.7.0...9, Klemm 0.90...1.05

profile: 12 - 'Insane'

stream version: 7

sample frequency: 44100 hz

number of channels: 2

average bitrate: 317 kbits/sec

number of frames: 11025

maximum band index: 31

intensity stereo: off

mid/side stereo: on

title replaygain: -240

album replaygain: -199

title peak: 29453

title album: 29453

true gapless: no

although the "true gapless: no" parameter is worrying... ?
must be the older version...

:)

kuniklo 14 December 2004 05:54 am

Quote:

although the "true gapless: no" parameter is worrying... ?
must be the older version...

:)
Must be. I've only tried it on newer files and they seem to all report yes for that field.

xmixahlx 14 December 2004 07:00 am

i'd like to package this for debian/rarewares

is there a particular release you had in mind? i.e. 1.0, 0.1, 20041213, etc?

let me know

edit: i DID :) naming it 0.1, let me know if that ain't cool:
http://rarewares.org/debian/packages/unsta..._0.1-1_i386.deb
http://xmixahlx.dyndns.org/debian/source/

kuniklo 14 December 2004 02:31 pm

Quote:

i'd like to package this for debian/rarewares

is there a particular release you had in mind? i.e. 1.0, 0.1, 20041213, etc?

let me know

edit: i DID :) naming it 0.1, let me know if that ain't cool:
http://rarewares.org/debian/packages/unsta..._0.1-1_i386.deb
http://xmixahlx.dyndns.org/debian/source/
0.1 sounds appropriate. Let's start with that. Thanks!


All times are GMT. The time now is 04:08 pm.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2020, vBulletin Solutions Inc.