Author Topic: XM-spk  (Read 4073 times)

rst

  • Posts: 317
XM-spk
« on: 8 Oct '15 - 21:16 »
previously --> http://www.un4seen.com/forum/?topic=16794.0


XM-spk

Asking on the XMplay forums about a way to run 'spek' program from XMplay, in order to obtain the current song audio spectrum, I had an idea. The reason to obtain the audio spectrum is because helps so much to determine the quality of the sound that we are listening. Yes, I know that only the spectrum isn't enough to determine if some song source is pure lossless or not, but at least helps with the quality, or to discover if some lossless source was transcoded, loosy artifacts, etc.

So the idea was to add this new feature through the encoders function on XMplay. And here it is!

   - Just place 'XM-spk' folder in the path where XMplay is located.
   - Go to XMplay 'Options/Output/Encoders' and add a new encoder called 'XM-spk'
   - In 'Command-line' form add 'XM-spk\XM-spk.exe %i'

Now you can check the current song audio spectrum using the contextual mouse menu with 'Write to Disk/Encoder - XM-spk'

It was succesfully tested with:

   XMplay 3.8.1.18
   Windows XP X64 SP2
   Windows 7 Pro X64

Enjoy it!


Download it --> https://mega.nz/#!5oJHzbwA!loOfZrKgEcUSHWBRq8AgIA88K8fGkNTdwVVovTTDkvE
« Last Edit: 10 Oct '15 - 12:37 by rst »

raina

  • Posts: 1163
Re: XMspk
« Reply #1 on: 9 Oct '15 - 07:06 »
Heh, clever. :)

piovrauz

  • Posts: 1020
Re: XMspk
« Reply #2 on: 9 Oct '15 - 19:32 »
Can you put it on a filehost that does not need login? thanks

rst

  • Posts: 317
Re: XMspk
« Reply #3 on: 9 Oct '15 - 21:58 »
a new version is on the way. The name goes to migrate to XM-spk. A proper name :)
also some minor change on the procedure.

I dont know if spek program support data in stdin or pipes or i dont know. I will be better to use that procedure instead of the temporal wave....

Ok, the new version was added to the first post of the topic.
« Last Edit: 9 Oct '15 - 23:35 by rst »

piovrauz

  • Posts: 1020
Re: XM-spk
« Reply #4 on: 10 Oct '15 - 10:34 »
Okie, can use it now. Handy little program, didn't know about it.
If you will use pipes instead of temp wave I'll be really happy, wouldn't make /Temp grow too fast. ;)

I only have a small problem: if the file is playing when I "write to disk" with this "encoder", XMPlay hangs.
It renders the spectrum, but then XMPlay hangs with the position marker at the end of the track.

Dotpitch

  • Posts: 2878
Re: XM-spk
« Reply #5 on: 10 Oct '15 - 11:07 »
I only have a small problem: if the file is playing when I "write to disk" with this "encoder", XMPlay hangs. It renders the spectrum, but then XMPlay hangs with the position marker at the end of the track.
XMPlay is probably waiting for the encoder to finish. What happens when you close the spectrum window?

rst

  • Posts: 317
Re: XM-spk
« Reply #6 on: 10 Oct '15 - 12:29 »
it is just what xmplay does. Just waiting for the encoder end code. As soon as you close the spectrum program, xmplay will take again the control.

the temp folder will not grow, because xmplay delete the temporary wave file.
Anyways i am about the stdin method.... that will produce the spectrum faster.
« Last Edit: 10 Oct '15 - 12:39 by rst »

piovrauz

  • Posts: 1020
Re: XM-spk
« Reply #7 on: 10 Oct '15 - 16:41 »
@Dotpitch :if I close the Spek window then XMPlay stops. It won't remember playing position but it will not hang.
I suppose XMPlay is, like you said, waiting for the encoder to finish.

@rst: closing the Spek window XMPlay does indeed delete the temp file. The leftover I found were probably created when I didn't close it.
Could XM-spk just "fix" this behaviour somewhat? Being able to hang XMPlay so easily is not desirable I think.
Also: one could be interested in comparing 2 files spectrum, what would happen in that case? Right now it's impossible.
Just my toughts, I'm grateful for this little program + plugin, will be really handy to me.

rst

  • Posts: 317
Re: XM-spk
« Reply #8 on: 11 Oct '15 - 11:38 »
Quote
Also: one could be interested in comparing 2 files spectrum, what would happen in that case? Right now it's impossible.

yes. I will think on that.