Is there a way for soundconverter to filter files by extension

Asked by wvarner

My music folder has tons of music files that are fairly randomly encoded into different types audio types (mp3, m4a, wma, ogg, etc.). I would like to convert all and only wma files in the directory to ogg files, and not convert the mp3s or anything else. I know I can hunt through the directory and add each file individually, but I'm wondering if there is a way for soundconverter to filter the folder and add only wma files to the conversion queue. Thanks for the very useful program!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu soundconverter Edit question
Assignee:
No assignee Edit question
Solved by:
GautierPortet
Solved:
Last query:
Last reply:
Revision history for this message
Best GautierPortet (kassoulet) said :
#1

SoundConverter by itself cannot do that.

But you can use find:
    find -name "*.wma" | xargs soundconverter

Revision history for this message
wvarner (winshipvarner) said :
#2

Thanks GautierPortet, that solved my question.

Revision history for this message
wvarner (winshipvarner) said :
#3

A further note: I ran into problems when my files contained spaces, but the way to get around this is to do the following:
    find -name '*.wma' -print0 | xargs -0 soundconverter