DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: command line program to strip ID tags from WMA files  (Read 14,994 times)

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
DONE: command line program to strip ID tags from WMA files
« on: January 01, 2006, 03:46 PM »
well heres an odd-sounding request for a snack.  I need a console (commandline) program that basically removes all the ID tags from a set of WMA files.  No frills needed, multiple file handling would be nice or the ability to specify DOS wildcards, e.g:

C:\>stripwma file1.wma file2.wma file3.wma

or

C:\>stripwma c:\myfolder\200512??.wma

which would strip all WMAs beginning with "200512" followed by any 2 chars. (standard DOS wildcard)

WHY on earth do you need this you might ask?  :-\
Well I have written some scripts that download a radio program that I enjoy listening to each day off the net.  I have scripted it to save the files (they are WMA files) to a folder so I can listen to the shows at a later time.  The files are named with the current date so I know when each show was from.  For example "200051230.wma" and "20051015.wma". The problem is that whoever is encoding the shows, always specifies the EXACT same "title" which is just the name of the show itself.  Let's call it "Jim and Bob's Great Show" for example.  So when I open these in Windows Media Player, my playlist is filled up with a bunch of "Jim and Bob's Great Show" and I have no idea which show is from which date.  Even opening them in WinAMP the filenames are quickly replaced with the Title tags from the files so again I have no idea what's what.

So it would be great to be able to strip out the useless tags as part of my script.  I searched and searched but while I found some things that worked on MP3 files, nothing seems to be able to do this for WMAs.  I imagine that Microsoft must have this documented somewhere on MSDN and for a programmer I would hope this should be a simple "snack". 

Any takers?  that would be really helpful!! :)

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
Re: DONE: command line program to strip ID tags from WMA files
« Reply #1 on: January 02, 2006, 12:02 AM »
Mp3tag is the most popular tag management freeware, give it a try.
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

LuckMan212

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 137
Re: DONE: command line program to strip ID tags from WMA files
« Reply #2 on: January 02, 2006, 12:04 AM »
yes kimmchii, I am aware of mp3tag, in fact I use it on my "normal" mp3s.  however it has no commandline support, and I have already spoken to the developers and for whatever reason they are quite reluctant to add any commandline support to the program.  so the search continues..... :huh:

Ruffnekk

  • Uhm yeah...
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
    • Programming School - Stage 1 Medal
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
    • Linux User
Re: DONE: command line program to strip ID tags from WMA files
« Reply #3 on: December 19, 2006, 11:51 AM »
I was wondering if you ever found the tool for this LuckMan? I need something like this!
Regards,
RuffNekk

Programming is an art form that fights back.

ohad188

  • Participant
  • Joined in 2010
  • *
  • Posts: 2
Re: DONE: command line program to strip ID tags from WMA files
« Reply #4 on: September 29, 2012, 01:43 PM »
I'm bumping up this old thread in case anyone is still interested in such a tool (this thread shows up on Google searches)
Since I wasn't able to find one I went ahead and wrote one based on taglib#:
https://sourceforge.net/projects/taggersharp/

It's a general purpose tag editor but it has a clear option as well (-e).
It can also be combined with another tool I wrote to achieve exactly what LuckMan212 was trying to do, automatically:
https://sourceforge.net/projects/streamrecnet/
(use Tagger# as the post processor with arguments {in} -e to clear the metadata)

Enjoy 8)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: command line program to strip ID tags from WMA files
« Reply #5 on: September 29, 2012, 09:28 PM »
Welcome to the site, ohad188, and thanks for sharing.  Much appreciated.  =]

ohad188

  • Participant
  • Joined in 2010
  • *
  • Posts: 2
Re: DONE: command line program to strip ID tags from WMA files
« Reply #6 on: September 29, 2012, 11:42 PM »
Welcome to the site, ohad188, and thanks for sharing.  Much appreciated.  =]
You're welcome  :D
Hopefully someone finds it useful

Original address: https://www.donationcoder.com/forum/index.php?topic=1988.0