The Traders' Den  

  The Traders' Den > Where we go to learn ..... > Technobabble
 

Notices

Technobabble Post your general Need for Help questions here.
Lossy or Lossless?
Moderators

Reply
 
Thread Tools
  #1  
Old 2005-03-09, 08:55 PM
Five's Avatar
Five Five is offline
TTD Staff
186.65 GB/588.32 GB/3.15
 
Join Date: Oct 2004
Location: Canada
Shntool cmp for more than two files

Hey, here's a question for all you commandline gurus... In the FLAC conversion tutorial linked in my sig there's a section where I show how to comare just the audio in a FLAC set with a SHN set (or any format for that matter). I discovered that this functionality exists in SHNtool as well, but only accepts exactly two files. Can somebody help me out, do I need to use a .bat file or is there a generic command I can type to compare all SHNs with all the FLACs in a folder? It would be cool if I could generate a .log as well.
__________________
Checksums Demystified EAC Config MakeTorrent WinAmp Config

Modern social theory casts a highly skeptical eye on any declaration that a group of persons is without conflict, and insists, on the contrary, that conflict is natural to groups, and even more, is essential to them. -Patrick Henry
Reply With Quote Reply with Nested Quotes
  #2  
Old 2005-03-09, 09:47 PM
jazzbo jazzbo is offline
18.28 GB/38.30 GB/2.09
 
Join Date: Nov 2004
Re: Shntool cmp for more than two files

I think you'll end up having to write a batch file, but another approach to this is to use shntool's md5 command with the -c switch. It will generate a composite md5 of all the files in a directory.

so shntool md5 -c *.shn in one directory should produce the same output as shntool md5 -c *.flac in another directory. To work perfectly, the files would have to be similarly named so the composite output was in the same order, but you'd have that problem with what you're trying to do as well.

I've not used DOS in ages, but there used to be a file compare command (fc), you could redirect the output of both shntool commands into temp files and then compare the results rather easily.

Obviously, if you want to find which file in the shn set is different from the flac set you'll need to do a more precise cmp of each individual file pair.
Reply With Quote Reply with Nested Quotes
  #3  
Old 2005-03-09, 10:06 PM
uhclem
0.00 KB/0.00 KB/---
 
Re: Shntool cmp for more than two files

If the SHNs and FLACs are in the same folder and have the same names except for the extension, then you can type this at the command line:

for %F in (*.flac) do shntool cmp "%F" "%~nF.shn"
Reply With Quote Reply with Nested Quotes
  #4  
Old 2005-03-10, 03:02 AM
Five's Avatar
Five Five is offline
TTD Staff
186.65 GB/588.32 GB/3.15
 
Join Date: Oct 2004
Location: Canada
Re: Shntool cmp for more than two files

thanks uhclem, that did the trick!

so now I'm just wondering how to get a log of the results? I added > cmp.log to the end of your code and it just spit out the results of the last comparison (t8 in this case).

ps thanks also to Jazzbo, I'm sure your suggestion will come in handy with sets where I've corrected SBEs and want to verify the final results.
__________________
Checksums Demystified EAC Config MakeTorrent WinAmp Config

Modern social theory casts a highly skeptical eye on any declaration that a group of persons is without conflict, and insists, on the contrary, that conflict is natural to groups, and even more, is essential to them. -Patrick Henry
Reply With Quote Reply with Nested Quotes
  #5  
Old 2005-03-10, 12:31 PM
uhclem
0.00 KB/0.00 KB/---
 
Re: Shntool cmp for more than two files

Try using >> cmp.log instead, i.e. double the >. See if that helps.
Reply With Quote Reply with Nested Quotes
  #6  
Old 2005-03-10, 03:16 PM
feralicious's Avatar
feralicious feralicious is offline
dare to discover
63.44 GB/133.39 GB/2.10
 
Join Date: Nov 2004
Location: occasionally
Re: Shntool cmp for more than two files

Quote:
Originally Posted by uhclem
If the SHNs and FLACs are in the same folder and have the same names except for the extension, then you can type this at the command line:

for %F in (*.flac) do shntool cmp "%F" "%~nF.shn"
Could you be any smarter?
__________________
feralicious goodies
Don't get even.
Get odd.

....
Reply With Quote Reply with Nested Quotes
Reply

The Traders' Den > Where we go to learn ..... > Technobabble

Similar Threads
Thread Forum Replies Last Post
How do I convert Flac Files to WAV Files in Windows Vista - Steve Remy Technobabble 6 2010-07-19 04:14 PM
Joining Wav files with xACT (shntool) - reece Technobabble 5 2007-02-27 08:54 PM
Hard Drive is full - Original Music Files vs. Back-up Files - cicada Technobabble 6 2007-01-07 03:12 PM
shntool cxx error / 1 channel mono files... don't need help anymore. - feralicious Technobabble 11 2005-04-27 09:02 AM
How to compare shntool md5 checksums against files - Gizby Technobabble 2 2004-11-26 11:13 AM


Thread Tools

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

Forums


All times are GMT -5. The time now is 03:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
Copyright ©2004 - , TheTradersDen.org - All Rights Reserved - Hosted at QuickPacket
no new posts