Under linux/bash, it would be something like.... cd /MusicDirectory find . -type f -name "*.flac" -exec sh -c 'flac -t {} && flac -8V {}' \; Or to simplify and not test each file before re-encode.... find . -type f -name "*.flac" -exec flac -8 {} \; -print Can someone translate this into NTBatch? Basically, recursive "dir" *.flac files as a nested command into a for loop or something? I'd hate to suggest someone install cygwin just because I don't remember how to script in dos. No need for a "GUI" when you can one-line it. Frank> Date: Fri, 28 Sep 2007 14:50:27 +1200 > From: lists@whitehouse.org.nz > To: tranzedude@gmail.com > Subject: Re: [flac] re-encode tool win32 > CC: flac@xiph.org > > > does somebody know a re-encode tool for win32? So it must have a GUI to make > > a list of FLAC files that need to be re-encoded to a newer flac version and > > it must automatically re-encode the whole list of files (so like the flac > > frontend but with re-encode support). > > I wouldn't mind one for Linux, either! > > Aaron > _______________________________________________ > Flac mailing list > Flac@xiph.org > http://lists.xiph.org/mailman/listinfo/flac_________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20070927/1954aa56/attachment.html
> Under linux/bash, it would be something like.... > cd /MusicDirectory > find . -type f -name "*.flac" -exec sh -c 'flac -t {} && flac -8V {}' \;Wouldn't it be nice if it was something closer to: flac --reencode --recursive -8 *.flac Aaron
Someone try this on a test music directory and see if this works in cmd.exe..... cd c:\MusicDirectory FOR /F "usebackq delims==" %i IN (`dir /B /S *.flac`) DO flac -t %i && flac -8V %i I don't fully understand the syntax of FOR loops in dos.. The instructions seem a bit lacking..... Windows is a strange beast indeed. Frank From: russofris@hotmail.com To: lists@whitehouse.org.nz; tranzedude@gmail.com Subject: RE: [flac] re-encode tool win32 Date: Thu, 27 Sep 2007 21:15:06 -0700 CC: flac@xiph.org Under linux/bash, it would be something like.... cd /MusicDirectory find . -type f -name "*.flac" -exec sh -c 'flac -t {} && flac -8V {}' \; Or to simplify and not test each file before re-encode.... find . -type f -name "*.flac" -exec flac -8 {} \; -print Can someone translate this into NTBatch? Basically, recursive "dir" *.flac files as a nested command into a for loop or something? I'd hate to suggest someone install cygwin just because I don't remember how to script in dos. No need for a "GUI" when you can one-line it. Frank> Date: Fri, 28 Sep 2007 14:50:27 +1200 > From: lists@whitehouse.org.nz > To: tranzedude@gmail.com > Subject: Re: [flac] re-encode tool win32 > CC: flac@xiph.org > > > does somebody know a re-encode tool for win32? So it must have a GUI to make > > a list of FLAC files that need to be re-encoded to a newer flac version and > > it must automatically re-encode the whole list of files (so like the flac > > frontend but with re-encode support). > > I wouldn't mind one for Linux, either! > > Aaron > _______________________________________________ > Flac mailing list > Flac@xiph.org > http://lists.xiph.org/mailman/listinfo/flacConnect to the next generation of MSN Messenger Get it now! _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20070927/d8b1c9fc/attachment-0001.htm
Sure.. just copy and paste it into flac-reencode.sh, replace the "8" with a @1 var and you are all set. No need for "--reencode" as it is redundant. Ping me if you want a hand with that (sarcasm). Frank> Date: Fri, 28 Sep 2007 16:55:47 +1200 > From: lists@whitehouse.org.nz > To: russofris@hotmail.com > Subject: Re: [flac] re-encode tool win32 > CC: tranzedude@gmail.com; flac@xiph.org > > > Under linux/bash, it would be something like.... > > cd /MusicDirectory > > find . -type f -name "*.flac" -exec sh -c 'flac -t {} && flac -8V {}' \; > > Wouldn't it be nice if it was something closer to: > flac --reencode --recursive -8 *.flac > > Aaron_________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20070927/7e8dba1a/attachment.htm
2007/9/28, Aaron Whitehouse <lists@whitehouse.org.nz>:> > > Under linux/bash, it would be something like.... > > cd /MusicDirectory > > find . -type f -name "*.flac" -exec sh -c 'flac -t {} && flac -8V {}' > \; > > Wouldn't it be nice if it was something closer to: > flac --reencode --recursive -8 *.flacI think this would be a great feature, in this way re-encoding in windows, linux, ... can happen the same way without complicated scripts (that maybe even don't work in windows because of crappy wildcard support, ...) are there plans to implement this? It's a clean way to re-encode all files I think. Harry Aaron>-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20070928/1b7ceb8e/attachment.htm