A PLS file can tell VLC and other players to start playing an online radio. VLC is also capable of recording an audio stream to a file. Currently I tell VLC to do this manually and it requires many clicks. I would like to automate this task by creating a PLS or other kind of file that do that for me. I will just have to open the file in VLC and it will start to record the stream. Is that possible? Or will I have to create a macro in AutoHotKey? Or there is another tool that could help me?
The easiest way to control VLC streaming is from the command line. While you could learn the syntax needed to control VLC in this manner, you can make the GUI do most of the work for you.
Go ahead and copy that string. At the simplest, you can create a shortcut somewhere like your desktop that will run VLC and start recording the stream. Just copy the existing VLC shortcut by right-clicking on the VLC icon on your desktop, selecting Send to, and choosing Desktop (as shortcut), then right-click on the new shortcut and click Properties. In the Target box, add a space after the closing quote at the end, and then enter the address of the stream you want to record. Then, add another space and paste in the stream output string you copied earlier. If you need to change the save location, its located right after
Now you can just double-click that icon (or launch it with a hotkey) to record the stream.