OSX & Linux users: something to help manage your 'collections'

sithl0rd

New Member
May 17, 2012
6
4
Hello. Long time lurker, first time poster.

Now, if you're like me, you may or may not have a sizeable collection of videos built up, and when the mood strikes, you may feel like viewing a random selection of one, or more, of these videos,
...and I find the management of this task can become a bit of a distracting headache ... especially with your hands full, so to speak. :p

So, I wrote a perl script to play a random video from my collection. It started as a simple script but has evolved over nearly 10+ years of 'heavy use'.
And suddenly, I'm inspired to share it with my fellow JAV enthusiasts, if only that you can find it as 'handy' as I do :)

If you keep your collection somewhat organized and well labeled, you can also search the collection and narrow down the available results by matching filename keywords, sort by date-added, newest vids, etc... This has proven quite useful :)


It of course requires a command-line mplayer executable.

{
Linux users; You probably already know what to do by now.
OSX users; I recommend installing mplayer via 'homebrew' : http://mxcl.github.io/homebrew/ - you'll likely also require Xcode via the app store to get this installed.
Windows users; untested.
}

>>UPDATED<<
Script available here: http://pastebin.com/raw.php?i=8SFsxd6t

Download and chmod +x, edit the script to define your @Collections, and enjoy.

I'm interested in improving this script so feedback is welcome! :)
 
Last edited by a moderator:
  • Like
Reactions: 1 person

CoolKevin

Nutcase on the loose
Staff member
Super Moderator
Mar 30, 2007
9,992
3,594
I am still trying to find a good collections manager
 

BudEWiser

Active Member
Dec 24, 2008
224
112
For photos, the best thing I have found so far is an abandoned project called Pictomio http://www.pictomio.com/Default.aspx It works great, doesn't call home like Google's option, but it crashes a lot.
For videos, I've been working on a database and a web front end for cataloging, tagging, adding videos to collection, etc. A friend of mine will then convert this into a stand-alone windows application that will integrate an opensource media player. The project keeps getting backburnered due to work and other paying projects, but it will get done sometime in the next few years.
 
  • Like
Reactions: 1 person

CoolKevin

Nutcase on the loose
Staff member
Super Moderator
Mar 30, 2007
9,992
3,594
For photos, the best thing I have found so far is an abandoned project called Pictomio http://www.pictomio.com/Default.aspx It works great, doesn't call home like Google's option, but it crashes a lot.
For videos, I've been working on a database and a web front end for cataloging, tagging, adding videos to collection, etc. A friend of mine will then convert this into a stand-alone windows application that will integrate an opensource media player. The project keeps getting backburnered due to work and other paying projects, but it will get done sometime in the next few years.



I love the bit, where it will be done in the next few years, :pandalaugh:

if it is anything like mine, many years later, STILL NOTHING :pandalaugh:

I think it is a never ending job/task
 

BudEWiser

Active Member
Dec 24, 2008
224
112
LOL, that is so true. I do have a lot of the SQL done, but I need to keep changing things that are taking advantage of MYSQL's unique features, because my friend who wants to convert it to an app can't integrate MYSQL into his program.
The frustration of being somewhat limited is one of the things that keeps getting the project tossed on the back burner.
 
  • Like
Reactions: 1 person

sithl0rd

New Member
May 17, 2012
6
4
Script updated, and extended.
Some fun new features, such as opening multiple windows with one execution, limit search by file modification dates, etc.
Try it out - you may never go back to point-n-clicking your way through your collection!

http://pastebin.com/raw.php?i=8SFsxd6t

fapomatic.pl [options] [dir]
(v.3.1)

-h This Help.
-p Pretend Only. No execution.
-q No Volume. Play Muted.
-a Autoplay. Bypass confirmation prompt.
-l List available videos.
-o Sort listing by file modification times.
-n [#] Play Nth numbered result. (As numbered by the "-l" option)
-e [TERM] Quick check against collection and exit. Shorter than '-s -p'
-s [TERM] Search files using keywords.
("." = wildcard, "," = expanded search terms)
-x [TERM] Exclude a term from search results.
-t [#x] Only list files newer than [Xx]. +X for 'older than' X.
x = (d/w/m/y). Ex: 5d / 2w / 1m / 1y
-r [#][all] Repeat selection process X amount of times. default: 5
Will increment to n+X if starting point specified with -n
-i Open any images related to selection, if found.
-fs Full Screen.
-m Attach MPlayer output, do not fork to background.
-k Kill any existing mplayer instances before starting new ones.
-c Toggle $use_colors on/off.
-v Verbose information about the selected file. (file date)
-vv Very verbose: even more info.
--debug Include script execution debug info.


Example Usages:

Play a random file from the locations set in @Collections array:
(@Collections = "/Volumes/ENCRYPTED")
fapomatic.pl

List files and play a random file from another directory:
fapomatic.pl -l ~/Downloads

Order listing by mtime, select 3rd video from list:
fapomatic.pl -l -o -n 3

Open multiple videos, no prompt. If not given, $default_repeat = 5:
fapomatic.pl -r 3 -a

List and play 5 videos from the past month, muted, kill any already running:
fapomatic.pl -q -l -t 1m -r -k

Starting at first vid, sequential play all videos that match search term:
fapomatic.pl -l -o -s "star wars" -n 1 -r all
 
Last edited by a moderator: