Skip navigation
This discussion is archived

Set filename to metadata field

3380 Views 9 Replies Latest reply: Feb 3, 2009 12:30 AM by StefSOFT RSS
StefSOFT Calculating status...
Currently Being Moderated
Jan 30, 2009 7:50 AM
I'm currently in the process of building a Final Cut Server workflow.

One part in the workflow is to trancode an asset to MPEG2 for broadcast. We use conventional filenames, so if we trancode the file should get a given filename and title. In FCSRV I created a metadatafield called 'filename'.
I already succesfully created a subscription which encodes the file to MPEG2 if a metadata field is set on 'true'. But now I want to add to that subscription that the filename and the asset's title are set to the specified metadatafield. Is this possible?
iMac 24" 3,06 Ghz, Mac OS X (10.5.4)
  • Nicholas Stokes Level 2 Level 2 (490 points)
    Currently Being Moderated
    Jan 30, 2009 12:58 PM (in response to StefSOFT)
    So I have tried a combination of the following.

    Create a script response using the following paramaters

    *Command Path: /bin/mv
    Command Parameters: /PATHTO_FOLDER_YOUR_RESPONSE_IS_SAVINGTO/[File Name] [File Name]_[Title]

    For me this reliably save the file then renames the file with the asset's title. I can't however get it to output something like the Filename+Title.m2v. Don't know why, but that a start.
    8 Core Mac Pro, Mac OS X (10.5.5)
  • Nicholas Stokes Level 2 Level 2 (490 points)
    Currently Being Moderated
    Jan 30, 2009 3:40 PM (in response to StefSOFT)
    So I keep playing and came up with the following

    *Command Path: /bin/mv
    Command Parameters: /PATHTO_FOLDER_YOUR_RESPONSE_IS_SAVINGTO/[File\ Name] /PATHTO_FOLDER_YOUR_RESPONSE_IS_SAVINGTO/[File\ Name]_[Title].mov

    However, your file will be saved something like "FileName.mov_Title.mov" so you need another script that searches for the pattern .mov_ and replaces that with .mov
    8 Core Mac Pro, Mac OS X (10.5.5)
  • Nicholas Stokes Level 2 Level 2 (490 points)
    Currently Being Moderated
    Feb 2, 2009 6:46 AM (in response to StefSOFT)
    If you prefer to speak with me over the phone to resolve this issue.
    Give me a call, I am up. I live in the United States and it's about 6:45 am right now.
    Don't know what time it's in the Netherlands.

    My contact info is my profile. Got to my website.

    Nicholas Stokes
    XPlatform Consutling
    8 Core Mac Pro, Mac OS X (10.5.5)
  • Matt McM Level 1 Level 1 (65 points)
    Currently Being Moderated
    Feb 2, 2009 6:30 PM (in response to StefSOFT)
    If I were to use the script response for this I would not call /bin/mv or /bin/cp directly. I'd call a ruby or shell script and then do the move operations in that. Easier to test, debug and get errors / logging from.

    However, you probably don't need to even use a script - although this depends on what else your FC Svr is doing. You could change the metadata mapping so that your custom 'Filename' field maps to the Filename 'To Field' for the destination device type that you are writing to.

    If you go to Metadata Maps and search for 'filename' you will get the idea.

    The default is that the destination filename (in the 'To Field') is mapped from 'Title' (the 'From Field'). So you can make a new mapping using your created field as the 'From Field' and give it a higher priority than the existing one. See the manual section on metadata mapping for more details.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.