Musepack Forums  

Go Back   Musepack Forums > Main > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 07 December 2004, 11:02 pm   #1
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default 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
kuniklo is offline   Reply With Quote
Old 13 December 2004, 08:23 pm   #2
xmixahlx
Musepack developer
 
xmixahlx's Avatar
 
Join Date: Nov 2004
Location: seattle, washington usa
Posts: 111
Send a message via ICQ to xmixahlx
Default

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
__________________
-xmixahlx, the one they call "mike"
http://xmixahlx.com -|- http://rarewares.org
xmixahlx is offline   Reply With Quote
Old 13 December 2004, 08:36 pm   #3
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

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?
kuniklo is offline   Reply With Quote
Old 14 December 2004, 04:00 am   #4
xmixahlx
Musepack developer
 
xmixahlx's Avatar
 
Join Date: Nov 2004
Location: seattle, washington usa
Posts: 111
Send a message via ICQ to xmixahlx
Default

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...

__________________
-xmixahlx, the one they call "mike"
http://xmixahlx.com -|- http://rarewares.org
xmixahlx is offline   Reply With Quote
Old 14 December 2004, 05:54 am   #5
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

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.
kuniklo is offline   Reply With Quote
Old 14 December 2004, 07:00 am   #6
xmixahlx
Musepack developer
 
xmixahlx's Avatar
 
Join Date: Nov 2004
Location: seattle, washington usa
Posts: 111
Send a message via ICQ to xmixahlx
Default

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/
__________________
-xmixahlx, the one they call "mike"
http://xmixahlx.com -|- http://rarewares.org
xmixahlx is offline   Reply With Quote
Old 14 December 2004, 02:31 pm   #7
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default

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!
kuniklo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My return to using MPC... Gow General 11 01 July 2006 01:02 am
mpc and Wavelab 5 Kattara MPC for Windows 2 27 April 2006 02:52 am
All MPC files broken after file restore deus62 MPC for Windows 3 19 August 2005 05:55 pm
low level clicks and noise davidm General 20 29 June 2005 09:05 am
Ripping Audio Cd's to MPC then Burning Soupaloop MPC for Windows 2 22 February 2005 06:46 pm


All times are GMT. The time now is 02:29 am.


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