psycamp - command line media player with PSYC remote control
psycamp [<flags>] [-b <uniform>] [-n <nick>] [-s <sort-algorithm>] [-M <UNI>] [-S <screen>] [<media-files|directories>]
[-b]ind PSYC uniform and accept commands from both PSYC and stdin [-M] sends currently playing title to a monitoring entity via PSYC [-n]ickname to use for monitoring, otherwise a default will be used [-s]ort playlist according to one of the algorithms explained below [-S]creen number to display videos on (default: 0)
Flags: [-H] shows an explanation what this tool is good for, try it! [-r]andomize using a smart shuffle algorithm, much better than "-s r" [-v]erbose: shows some extra output [-q]uiet: shows close to no output [-c]alculate cumulative duration of selections [-L]oad the tracks in the playlist only if they really exist [-x] will terminate perl and exec mplayer, use when short on memory [-j]ump to end of track: a way to scan through a playlist [-d]elete files after playing if the path contains the word '$VOLATILE'. [-D]elete files after playing unless the path contains the word '$KEEP'.
Without arguments, psycamp resumes from last run's playlist.
n(ame) # sorts by file path (directory first) N(ame) # sorts by file ending (reverse of -n) s(ize) # hear silly small sound snippets first S(ize) # hear big epic pieces first m(odification) # hear newest tracks first M(odification) # hear oldest tracks first a(ccessTime) # hear tracks you haven't heard in a long time first A(ccessTime) # hear tracks you recently accessed first cr # gives the order given on commandline a slight shuffle
You can append 'r' to each algorithm (as in 'nr' or 'Ar') to apply a slight random shuffle of the items while roughly following the sorting principle.
This has been around as 'psycmp3', but since 2017 it can also play other formats.. so I shalt rename it to 'psycamp', the psyc amplifier, or the psyca media player... :)
This media player is over a decade old, but it still is my tool of choice. I gave it functions i didn't find in any other.. How useful is a media player that can't easily reorganize or at least delete files you don't want to consume ever again?
For further help on how to actually use the beast, type 'h' and ENTER once it is playing some media.
You can use the 'psyccmd' script to remote control psycamp which therefore can act as a music jukebox or media player daemon. You could be generating those PSYC messages from whichever other tool you find appropriate. The format is easy. You may need to use '-b' to bind to an accessible network interface.
psycamp can obviously generate 'playing now' notifications. Just provide '-M' and '-b' accordingly.
psycamp uses a line mode interface. Each command needs to be submitted to the program by hitting the ENTER key. It's unusual, but not a problem.
psycamp ignores so-called ID3. it expects tracks to have meaningful file and directory names instead, since that is where you need the information when shuffling files around.
When watching video with psycamp, keystrokes in the video frame will go directly to mplayer, bypassing psycamp. This is fine for several interactions but psycamp gets stuck if you quit mplayer.
carlo von lynX.
This program is free software, published under the Affero GNU Public License. A disclaimer isn't necessary in my country, nor do I need to mention the current year to assert a copyright.
[Further information on the perlpsyc main page]