Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Addressing right click playlist functions from the commandline (Read 1280 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Addressing right click playlist functions from the commandline

Hi,

hope someone can help with a commandline query...

I'm trying to load a few tracks into a playlist and then convert them but I can't get the switch to work.

So far:

Code: [Select]
foobar2000.exe "C:\Test Recording2.mp3" "C:\Test Recording.flac"

Will load the two clips into a playlist and start playing.

But how can I address the Convert to > a saved preset called "WAVtest"?

Going by the wiki page:
  /command:<menu command> - invokes the specified main menu command
  /playlist_command:<context menu command> - invokes the specified context menu command on current playlist selection
  /playing_command:<context menu command> - invokes the specified context menu command on currently played track
  /context_command:<context menu command> <files> - invokes the specified context menu command on the specified files

Code: [Select]
foobar2000.exe /context_command:WAVTest "C:\Test Recording2.mp3" "C:\Test Recording.flac"

Doesn't work.

Also is it possible to run the command Replaygain > Scan per-file track gain via the commandline?

Thanks in advance

Addressing right click playlist functions from the commandline

Reply #1
Found this topic on addressing volume controls from the command line.

[a href='index.php?showtopic=94883']Volume control command line[/a]

So foobar2000.exe "/command:Up" will increase the volume

But none of these variations work:
foobar2000.exe "/command:WAVtest" "C:\Test Recording2.mp3" "C:\Test Recording.flac"
foobar2000.exe "/context_command:WAVtest" "C:\Test Recording2.mp3" "C:\Test Recording.flac"
foobar2000.exe "/playlist_command:WAVtest" "C:\Test Recording2.mp3" "C:\Test Recording.flac"
foobar2000.exe "C:\Test Recording2.mp3" "C:\Test Recording.flac" "/playlist_command:WAVtest"

What's missing?!

 

Addressing right click playlist functions from the commandline

Reply #2
You could try the foo_runcmd component. With it you can launch foobar2000 with the following command line:
Code: [Select]
foobar2000.exe "/runcmd-files=<pattern>" <files>

Replace <files> with the list of files you want to convert and <pattern> with a pattern for your converter preset. "Convert/WAVtest" might work. You can use the "Run Command" GUI to test the pattern.