HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: vsub on 2014-04-11 11:49:47

Title: Searching for some features from XMPlay
Post by: vsub on 2014-04-11 11:49:47
I recently switched to foobar and so far,it's better than xmplay but I'm missing few features.
Are there any components for those:

1.In xmplay all dead songs in the playlist are overlined(is there is any way to display some kind of info to know which songs are dead).I can edit the path of each song to the correct location but I don't see how can I do that in foobar.
There was also an option to scan for dead track and fix all of them by telling the program where to scan.

2.If the next track is missing or can't be played for some reason,xmplay was jumping to the next track(foobar is trying to play it non stop)

3.XMPlay was able to automatically constantly adjusting the volume.

4.Save playlist with full paths

And some other questions...
1.Is there is any component that have buttons which will allow me to do A\B repeat.

2.I like that when you click on the back\next buttons,foobar scroll to the item in the playlist(Cursor follows playback)but it's bothersome when I'm scrolling and foobar jump back to the current\next\previous song...is there is any fix for this?

3.If I accidentally click on some column,is there is a way to restore the previous order
Title: Searching for some features from XMPlay
Post by: derty2 on 2014-04-11 17:18:33
To configure foobar2000 to not show popup message if track cannot be played (and move on to next track):

      File -> Preferences -> Advanced -> Playback -> Seek: uncheck 'Show error message popups'

To configure foobar2000 to dynamically adjust the volume of playing items:

      Assuming you chose to include the replay gain component when installing fb2k,
      File -> Preferences -> Playback -> ReplayGain: choose your preferences from the dropdown lists,
      also play with the 'Preamp' controls to achieve the volume level you like.

To save the playlist with full path strings:

      Save the playlist in M3U format,
      File -> Save playlist -> choose 'm3u files' from the 'Save as type' dropdown list.
      Open the M3U file in a text editor and have a look.

To configure playback behaviour so foobar does or does not jump to the new playing item:

      File -> Preferences -> Playback: play with the checkboxes named 'Cursor follows playback' and 'Playback follows cursor'

If you accidentally click on some column header, the playlist will sort according to the syntax pattern for that column.

      To restore the previous order, you must know what the previous order was.
      If you don't know, then assume the sort order was the default one you use for incoming files.
      You set your default syntax pattern at: File -> Preferences -> Shell Integration -> 'Sort incoming files by:'
      To quickly sort the playlist items by file path: Select all -> menu item: Edit -or- context menu: 'Operations' -> Sort -> 'Sort by file path'
Title: Searching for some features from XMPlay
Post by: Robertina on 2014-04-11 17:22:31
Handling of dead items

- Choose from the main menu Edit > Remove dead items.
- The menu command View > Console will list dead entries.
- To re-add them to the playlist, just invoke Edit > Undo.

Use foo_playlist_revive (http://www.hydrogenaudio.org/forums/index.php?showtopic=73910) for trying to fix dead tracks automatically.


foobar's cursor behaviour

Untick Playback > Cursor follows playback.


Restoring last column sorting order

Edit > Undo

Please don't use only one thread for so many different questions. It is more difficult to answer then.

EDIT: too slow...
Title: Searching for some features from XMPlay
Post by: derty2 on 2014-04-11 17:32:19
Your post and mine should be edited and combined to one and he will have the perfect answer(s) 
Title: Searching for some features from XMPlay
Post by: vsub on 2014-04-11 19:41:45
Quote from: derty2 link=msg=0 date=
To configure foobar2000 to not show popup message if track cannot be played (and move on to next track):

      File -> Preferences -> Advanced -> Playback -> Seek: uncheck 'Show error message popups'

I didn't say I have an error message...I disable this long time ago.I want to play the next if there is some error with the current...something like "skip dead"
Quote from: derty2 link=msg=0 date=
To configure foobar2000 to dynamically adjust the volume of playing items:

      Assuming you chose to include the replay gain component when installing fb2k,
      File -> Preferences -> Playback -> ReplayGain: choose your preferences from the dropdown lists,
      also play with the 'Preamp' controls to achieve the volume level you like.

Ok,I'll try. 
Quote from: derty2 link=msg=0 date=
To save the playlist with full path strings:

      Save the playlist in M3U format,
      File -> Save playlist -> choose 'm3u files' from the 'Save as type' dropdown list.
      Open the M3U file in a text editor and have a look.

Already tried that but all paths that point to certain location are not full paths...for example:

Create a list that contains 3 songs...one from C:\some track.mp3,one from D:\some track.mp3 and one from the desktop\music
If you save the playlist to the desktop,when you open the platlist in notepad,you will see

C:\some track.mp3
D:\some track2.mp3
and the one from the desktop\music,you will only see music\some track3.mp3(not the full path)

Meaning,all paths leading to sub folders of the location where you save the playlist are not with full paths.
Quote from: derty2 link=msg=0 date=
To configure playback behaviour so foobar does or does not jump to the new playing item:

      File -> Preferences -> Playback: play with the checkboxes named 'Cursor follows playback' and 'Playback follows cursor'

Those options don't help...I tried them already

Cursor follows playback - will display the next\previous item when you use the back\next buttons but it will also auto scroll to the current track when foobar autocatically play the next track or replay the curent.
The only way to not auto scroll is to disable the option but that way I will lose the ability to auto scroll to the next\previous track when I'm using the buttons.

It would be better if it's maded to autoscroll only if you use the buttons or hotkeys.

Playback follows cursor - that's just my option but this option is annoying...switching to the selected track when the current end(I usually listen one song more than 10 times if I like it)
Quote from: derty2 link=msg=0 date=
If you accidentally click on some column header, the playlist will sort according to the syntax pattern for that column.

      To restore the previous order, you must know what the previous order was.
      If you don't know, then assume the sort order was the default one you use for incoming files.
      You set your default syntax pattern at: File -> Preferences -> Shell Integration -> 'Sort incoming files by:'
      To quickly sort the playlist items by file path: Select all -> menu item: Edit -or- context menu: 'Operations' -> Sort -> 'Sort by file path'

There is no pattern which foobar can use.I place them the way I like them to be ordered.
Quote from: Robertina link=msg=0 date=
Handling of dead items

- Choose from the main menu Edit > Remove dead items.


I want to fix them not remove them and keep the same playlist order.
Quote from: Robertina link=msg=0 date=
- The menu command View > Console will list dead entries.


Just for a test,I renamed a folder and restart foobar.When I start it again and then run an item from the playlist that point to that folder,there was nothing inside the console related to dead tracks(only spamming the path of the current tract foobar is constantly trying to run)
Quote from: Robertina link=msg=0 date=
Use foo_playlist_revive (http://www.hydrogenaudio.org/forums/index.php?showtopic=73910) for trying to fix dead tracks automatically.

I have this installed already but the need to add every folder I have in a playlist to the library doesn't seems like a good idea to me.
Quote from: Robertina link=msg=0 date=
Restoring last column sorting order

Edit > Undo


Forgot about that...yes,it's good enough.
Quote from: Robertina link=msg=0 date=
Please don't use only one thread for so many different questions. It is more difficult to answer then.


Sorry,I'm not very fond to creating multiple threads for every question I have

Title: Searching for some features from XMPlay
Post by: derty2 on 2014-04-11 20:36:03
To save the playlist with full path strings to the clipboard:

      - Install this component..........http://www.foobar2000.org/components/view/foo_texttools
      - Go to menu..........File > Preferences > Tools > Text Tools
      - Create a new 'Quick copy command'..........Name = Path  |  Pattern = %path%
      - Select all in playlist
      - Go to context menu..........Utilities > Text Tools > 'Copy: Path'
      - Paste into a text file and save it as an M3U file
Title: Searching for some features from XMPlay
Post by: vsub on 2014-04-11 21:52:18
Hmm,so there is no way to save it that way without installing extra component and do all of those?
In that case,I can just create an autohotkey script that edit the playlist.

Code: [Select]
#NoTrayIcon
FileSelectFile,File,3,, Open a file,Playlists (*.m3u;*.m3u8)
If File =
ExitApp
SplitPath,File,,WDir
FileRead,Playlist,% File
Loop,Parse,Playlist,`r,`n
{
If A_LoopField =
Break
If A_LoopField not contains :\
Current := WDir "\" A_LoopField
Else
Current := A_LoopField
List .= Current "`n"
}
FileDelete,% File
FileAppend,% List,% File
Run,C:\WINDOWS\notepad.exe "%File%"
ExitApp
Title: Searching for some features from XMPlay
Post by: derty2 on 2014-04-12 00:03:17
So you would rather compile an Autohotkey EXE which will be at least 400 KB in size, and after going through the motions in foobar2000 of saving a playlist somewhere, you then run the AHK EXE on your local computer and browse to the saved playlist and run it through notepad.

Using the foo_texttools component, it is 187 KB in size and would be a permanent part of your foobar2000 setup so if you copy the app to another computer the component comes along too. ......... Select all items in playlist, right click, copy to clipboard, paste to text file, done! you have a playlist.

Apart from copying the path of all items to clipboard, you can do more, such as this example. . . . .

Create an enhanced M3U playlist file which also contains useful information:

File > Preferences > Tools > Text Tools > Create a new 'Quick copy command'..........Name = Path + Info (for playlist) | Pattern = see code below
Code: [Select]
'# ------------------------------------------------------------------------'$crlf()%path%$crlf()$crlf()'# '$if2($meta(artist),'<no artist>')  --  $if2($meta(album),'<no album>')  '('$if2($meta(date),'<no date>')')'  --  $if2($meta(tracknumber),'<no tracknum>').  $if2($meta(title),'<no title>')    '['$iflonger(%length_ex%,9,$left('00:00:00.000',$sub(12,$len(%length_ex%)))%length_ex%,$right('00:00.000',$sub(9,$len(%length_ex%)))%length_ex%)']'$crlf()


Example output using the above code - M3U playlist:
Code: [Select]
# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\01.track.flac

# The Clash  --  London Calling  (1979)  --  1.  London Calling    [03:19.755]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\02.track.flac

# The Clash  --  London Calling  (1979)  --  2.  Brand New Cadillac    [02:08.941]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\03.track.flac

# The Clash  --  London Calling  (1979)  --  3.  Jimmy Jazz    [03:54.243]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\04.track.flac

# The Clash  --  London Calling  (1979)  --  4.  Hateful    [02:44.111]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\05.track.flac

# The Clash  --  London Calling  (1979)  --  5.  Rudie Can't Fail    [03:28.915]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\06.track.flac

# The Clash  --  London Calling  (1979)  --  6.  Spanish Bombs    [03:19.256]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\07.track.flac

# The Clash  --  London Calling  (1979)  --  7.  The Right Profile    [03:54.897]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\08.track.flac

# The Clash  --  London Calling  (1979)  --  8.  Lost in the Supermarket    [03:47.333]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\09.track.flac

# The Clash  --  London Calling  (1979)  --  9.  Clampdown    [03:49.493]

# ------------------------------------------------------------------------
G:\music\the clash - london calling (1979) - vinyl dutch first press\10.track.flac

# The Clash  --  London Calling  (1979)  --  10.  The Guns of Brixton    [03:09.020]




Title: Searching for some features from XMPlay
Post by: kode54 on 2014-04-12 03:48:05
Whether or not the player skips a dead track also depends on whether you have repeat track enabled, I think.
Title: Searching for some features from XMPlay
Post by: vsub on 2014-04-12 07:45:33
Quote
So you would rather compile an Autohotkey EXE which will be at least 400 KB in size, and after going through the motions in foobar2000 of saving a playlist somewhere, you then run the AHK EXE on your local computer and browse to the saved playlist and run it through notepad.

I have Autohotkey installed already and associated with ahk files(I have around 100 that are doing tons of things)
There is no need the compile to script,I can run it directly by opening the ahk file which is less than 2kb.

I'll try the component but with the script looks much faster(I don't need extra information in the list,just the paths)...it would be nice if foobar just save a playlist with full patch for all files(xmplay have an option in the save playlist dialog to choose if you want to save with full paths or not)
Quote from:  link=msg=862886 date=0
Whether or not the player skips a dead track also depends on whether you have repeat track enabled, I think.

Yes,that does go to the next track on error but that's not how I use the player...I always keep it on repeat(track) and switch to some other manually(I extremely rarely(you could say never)switch to something other than repeat(track)).