Burning a Playlist with Foobar/Nero

title says it all

Burning a Playlist with Foobar/Nero

Postby rembetis on Sun Apr 30, 2006 4:58 pm

Update: I just ran into a situation where the timer: wait delay in the event was not long enough for some reason, so you may want to increase it to 1000.

Disclaimer: I am no coder and had no hand in developing any of the applications/tools listed below in the prerequisites, so please don't hold me accountable for any random problems that may arise. This thread seems to indicate some people are having problems burning non-LAME encoded MP3s, but since I don't use MP3s, I cannot confirm.

Prerequisites:
1. The latest version of Xlobby.
2. Foobar2000 v0.9.1 and the new Foobar plugin. (Burning a playlist from within Xlobby can be done with older versions of Foobar [in fact it's even easier], for which I can write a separate guide if there's interest [the event commands are slightly different]).
3. The CD Burning Component for Foobar (place the .dll in Program Files > Foobar 2000 > Components folder).
4. Nero Burning ROM (v6.x or above should be adequate)
5. Whatever Nero Plugin necessary to burn your archived files (mp3, flac, etc.)

Basically you just queue a CD, create your own queue, or load a playlist and then press a button assigned the following event (you will need to adjust the text in red if you installed foobar somewhere other than C:\Program Files). The burn command will be sent to your default burner. If you want to adjust the default options, load Foobar outside of Xlobby, create and highlight a dummy playlist and right click > Convert > Write Audio CD... and make adjustments in the pop-up window. Cancel the burn, but these changes should "stick" for next time your burn from within Xlobby.

I'm in the process of trying to figure out a way to calculate total playlist time, so that you can tell if your playlist will fit on a CD or not, but at the moment at least it provides a handy way to make audio backups of stuff in your archive. I'm also not certain at this point if it's possible to adjust length of gaps between tracks.

Hope this proves helpful for somebody.



<event>
<name>burn playlist</name>
<commands>
<command>
<type>music</type>
<execute>player load playlist</execute>
</command>
<command>
<type>os</type>
<execute>execute file</execute>
<parameter>C:\Program Files\foobar2000\foobar2000.exe</parameter>
<parameter>/command:&quot;Select all&quot;</parameter>
<parameter></parameter>
<parameter></parameter>
</command>
<command>
<type>timer</type>
<execute>wait</execute>
<parameter>20</parameter>
</command>
<command>
<type>os</type>
<execute>execute file</execute>
<parameter>C:\Program Files\foobar2000\foobar2000.exe</parameter>
<parameter>/playlist_command:Convert/&quot;Write Audio CD...&quot;</parameter>
<parameter></parameter>
<parameter></parameter>
</command>
<command>
<type>timer</type>
<execute>wait</execute>
<parameter>1000</parameter>
</command>
<command>
<type>os</type>
<execute>send message</execute>
<parameter>#32770</parameter>
<parameter>Audio CD writer setup</parameter>
<parameter>WM_Command</parameter>
<parameter>1</parameter>
<parameter>787116</parameter>
</command>
</commands>
</event>
Last edited by rembetis on Wed May 24, 2006 2:27 pm, edited 4 times in total.
rembetis
 
Posts: 493
Joined: Thu Jul 28, 2005 10:27 pm

Postby rembetis on Sun Apr 30, 2006 5:09 pm

Here's the event for Foobar 0.8.3 and the previous Xlobby plugin. You will need the old Foobar burning component if you don't have it already. Again adjust lines in red as necessary.

<event>
<name>burn playlist</name>
<commands>
<command>
<type>music</type>
<execute>player load playlist</execute>
</command>
<command>
<type>os</type>
<execute>execute file</execute>
<parameter>C:\Program Files\foobar2000\foobar2000.exe</parameter>
<parameter>/command:&quot;Playlist/Selection/Select all&quot;</parameter>
<parameter></parameter>
<parameter></parameter>
</command>
<command>
<type>os</type>
<execute>execute file</execute>
<parameter>C:\Program Files\foobar2000\foobar2000.exe</parameter>
<parameter>/playlist_command:&quot;Write Audio CD...&quot;</parameter>
<parameter></parameter>
<parameter></parameter>
</command>
</commands>
</event>
rembetis
 
Posts: 493
Joined: Thu Jul 28, 2005 10:27 pm

Postby r.byatt on Tue May 23, 2006 3:42 am

Thanks, this works great.

My wife has been hounding me for an easy way for her to make a CD of here favourite songs to play in the car.

Just wondering how you’re getting on with the way to calculate total playlist time?

thanks again
r.byatt
 
Posts: 13
Joined: Tue Mar 29, 2005 2:05 pm

Postby rembetis on Tue May 23, 2006 12:08 pm

r.byatt wrote:Just wondering how you’re getting on with the way to calculate total playlist time?


I honestly forgot about it. :oops: To do it natively within Xlobby, Steven would have to update the foobar plugin a bit. I spotted a foobar component a while ago that I though might work as a temporary solution but I'm having trouble tracking it down. Will update if I make any progress.

p.s. glad somebody's using this. You were the first to respond...
rembetis
 
Posts: 493
Joined: Thu Jul 28, 2005 10:27 pm

Postby dgemily on Tue May 23, 2006 12:38 pm

rembetis wrote:p.s. glad somebody's using this. You were the first to respond...


I will certainly use too ;)
but yeah, it should be interesting to have the total time.....
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby abobader on Tue May 23, 2006 1:21 pm

dgemily wrote:
rembetis wrote:p.s. glad somebody's using this. You were the first to respond...


I will certainly use too ;)


Me too!

Well done.
abobader
 
Posts: 142
Joined: Fri Apr 21, 2006 5:08 pm