Re-analyse assets missing their proxies

Here's a handy one-liner to find any assets missing their thumbs or proxies and re-generate them.

*fcsvr_client search --crit "+some critera+" --limit "+number of assets to limit to+" /asset | awk \/asset/\ '{ print "sudo fcsvr_client list parentlinks --linktype 4 "$1" | grep \"DESC_STATUS: missing\"| fcsvr_client analyze "$1 }' | sh*

You can leave out the search criteria and/or the limit if you want to go crzy on all your assets at once.

Note:
Test this first on a backup of your server, because I haven't
Make a backup of your database and proxies first, you might end up re/creating a lot of files
There's no output to the command line unless you have encountered errors, keep an eye on the current running processes and jobs in FCSvr java UI

Mac OS X (10.5.2)

Posted on Oct 29, 2010 1:02 PM

Reply
5 replies

Oct 29, 2010 3:14 PM in response to Vitali

Hi Vitali

Not sure what the behaviour of FCS is when you ask it to analyse an archived asset - you'd hope it'd be smart enough to ignore them. Thats another thing to test...

You could use the word 'online' in your crit, however this isn't going to work if you have loads of assets with the word online elsewhere in the metadata. A safer bet would be to use an xmlcrit file to do the search, and ensure that you only look for online in the archive status metadata field. But that defeats the point of having a one-liner... drat!

Oct 29, 2010 5:46 PM in response to Jim Mellor

I just tested with an archived asset, you have to be careful here. *fcsvr_client analyze* doesn't check whether an asset is online or not, it just goes ahead and tries to create a thumb/poster/proxy clip from the the original asset; if its archived then FCSvr deletes the pre-existing thumb (if any) and then tries to recreate it. Eventually this will time out, as there is no file in 'online' location, and then you're left with an asset with potentially no thumbnail, and no proxy... not a great place to be.

So, tread carefully if you are dealing with archived assets. I would suggest the xmlcrit method described above.

Nov 8, 2010 9:51 AM in response to Jim Mellor

For some reason, fcsvr_client analyze has stopped working this way for me. Two weeks ago, when I ran it on an asset that was missing poster frames/thumbnails, it would submit a job to create them. Starting last week (and possibly corresponding to the recent Pro Applications update), an analyze operation no longer generates proxies if they are missing.

This includes using the right-click Analyze option in the GUI. You can see the job submitted in log section of the Administration window, but it never shows up as a job anywhere else.

The Regenerate all proxies option still works from the GUI, but I need to run through all the assets and find missing proxies, so automation is needed.

Anyone else experienced this? I even did a clean install on another machine, new database, all updates and still experienced this. Did the command break or something?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Re-analyse assets missing their proxies

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.