Help with script to update shotDate for a video clip

As hard as it is for me to believe, Adobe Premiere Pro doesn't take the date code when capturing video clips from a DV camera and put it into the "shotDate" video metadata field. Instead, it (stupidly in my view) sets the shotDate to the date when the video clip is being captured, not when it was shot. I want to write a script to correct this.
So far I've been able to get access to the existing, bad shotDate property, but I can't seem to set it successfully. The relevant portion of my code is as follows. Can anyone point me in the right direction as to why my setting the property isn't working? Thanks in advance!
var md = thumb.synchronousMetadata;
md.namespace = "http://ns.adobe.com/xmp/1.0/DynamicMedia/";
var BadShotDate = md.shotDate;
$.writeln("Bad Shot Date: ", BadShotDate);
// Get the XMP packet as a string and create the XMPMeta object
var xmp = new XMPMeta(md.serialize());
var d = new XMPDateTime(new Date()); // Dummy value for testing
xmp.setProperty(XMPConst.NS_XMP, "shotDate", d, XMPConst.XMPDATE);
var updatedPacket = xmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
thumb.metadata = new Metadata(updatedPacket);

I figured it out, so I thought I would post a follow-up for anybody else running into the same issue. The following function will set the shot date metadata to whatever string is supplied for the given thumbnail:
function SetShotDate(thumb, newshotdate)
if(thumb.hasMetadata)
// Get the metadata object - wait for valid values
var md = thumb.synchronousMetadata;
md.namespace = XMPConst.NS_DM;
var xmp = new XMPMeta(md.serialize());
xmp.setProperty(XMPConst.NS_DM, "shotDate", newshotdate);
var updatedPacket = xmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
thumb.metadata = new Metadata(updatedPacket);

Similar Messages

  • Help with Adobe Reader update installation on mac book pro

    am trying to update adobe reader 9.4.6 to the latest version on my mac book pro. Am able to download the updtae to 10. whatever and proceed with installation. At the step where I am asked to choose the adobe reader file, I select the file and then the process stops and I get a message that installation has failed and i am to contact the software manufacturer.

    I figured it out. Thanks!
    The key, during both life and death, is to recognize illusions as illusions, projections as projections, and fantasies as fantasies. In this way we become free.
    Date: Mon, 10 Sep 2012 04:54:45 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help with Adobe Reader update installation on mac book pro
        Re: Help with Adobe Reader update installation on mac book pro
        created by Nikhil.Gupta in Adobe Reader - View the full discussion
    How exactly are you trying to update your Adobe Reader 9.4.6Try the following link to download latest Adobe Raeader: http://get.adobe.com/reader/
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4686315#4686315
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4686315#4686315. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • HT4623 Hi, I need help on how to update software for my ipad1, can someone help me?

    Hi, I need help on how to update software for my ipad1, can someone help me?

    The iPad 1 can not be upgraded beyond 5.1.1. If you haven't upgraded to iOS 5.1.1, see the info below.
    If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
    http://support.apple.com/kb/HT4972
    Also read the instructions from the section entitled "Update your device using iTunes" at the link below.
    http://support.apple.com/kb/HT4623
    Information regarding transferring purchases from your iDevice to iTunes on your syncing computer can be found at the link below.
    http://support.apple.com/kb/ht1848

  • I need help with setting up time machine for backup

    I would like help with setting up time machine for backup.

    You will need an external hard drive (formatted for a Mac).
    Then you plug it in and go to system preferences>time machine and select the external HD and turn it on.
    The backups are automatic.
    Barry

  • WHY? 3 out of 4 of my vimeo videos coming up with 'oops the embed code for this video isn't valid'!

    I have inserted my showreel, its working fine, but now I have tried to embed 3 others videos, they all come up with 'oops the embed code for this video isn't working'
    I really don't understand why?
    Holly

    Hello,
    How are you trying to preview the page ? "Preview"tab in Muse or Preview Page in Browser.
    Do you have any URL for us to see ? Please share the codes that you are using to embed the video.
    Regards
    Vivek

  • How do I display the complete time sequence for a video clip in iMovie?

    How do I display the time complete time sequence for a video clip in iMovie?
    I'm trying to create a movie for someone where they provided me the video clips and what time sequences they want extracted.  For example:  Video footage from time 5m22s to 9m:18s and 11m17s to 15m31s from the imported video clip.  I know you can select video but I cannot figure out how to select from those requested time markers.
    Any help would be apreciated.

    Open the file using QuickTime Player and then open the Movie Inspector window.

  • Sound/audio is off for news/video clips Mac Pro , ML

    sound/audio is off for news/video clips Mac Pro , ML

    >certain clips
    What ARE those clips?
    Read Bill Hunt on a file type as WRAPPER http://forums.adobe.com/thread/440037?tstart=0
    What is a CODEC... a Primer http://forums.adobe.com/thread/546811?tstart=0
    What CODEC is INSIDE that file? http://forums.adobe.com/thread/440037?tstart=0
    Report back with the codec details of your file, use the programs below
    For Mac http://mediainfo.massanti.com/
    Once you know exactly what it is you are editing, report back with that information... and your project setting, and if there is a red line above the video in the timeline, which indicates a mismatch between video and project

  • Please help with script for right-mouse click on 3D objects

    Hi!
    I have PDF file with two simple 3d objects (for example with two cube).
    I need to make script that when user right-click to first cube, a PDF file (c:\a.pdf) opening (or c:\b.pdf for second one) in new windows. How to make it? Thank you so much!

    Hi,
    please check SDK sample 22 Right-Click, there is everything you need.
    First catch RightClickEvent, then create the menu entry when beforeAction = true, and when beforeAction = false you have to remove it again (otherwise you will receive an error when rightclicking again).
    Regards
    Sebastian

  • Help with Scripting forms when additional characters added

    Hi,
    I am new to scripting in adobe professional, I thank anyone in advance for any advice or help they can give me.
    I am trying to use the calcuations within the forms that I am putting fields onto.  In the process I discovered that the program the forms are within are attaching a pipe and additional characters after the actual name that I have named them.  So, I am not able to use even the simple calculations within adobe to "sum" fields.   For example: I named the field "1_1Text" and this is what displays when you go into the calculations and pick the fields you want.  But the actual name is "1_1Text|1234567" so the calculations will not work.
    I take it then I need to use the advanced scripting but I am unsure of the format for a routine such as this.  I have a little knowledge of javascript but it has been awhile.  There must be a scan to find the pipe and then you should be able to chop off the extra characters since I will never know the characters the program adds on so then I can do calculations on these fields. Then you would have to put them into an array or something to save them?   Any help with a script or hints would surely be appreciated.
    Thanks!

    Could explain more fully how you are creating your forms and what programs you are using from the creation of the base document to which program and how you are adding fields.
    I think you are misunderstanding me.   I use Adobe Acrobat Professional 6.0.  I can get the calculations to work correctly if I use the form as it is after creating it. 
    But these forms are put into an SQL database and they get selected within a VB.net program or ASP.net program (both are used).  So these programs (VB.net or ASP.net) are adding the extra characters at the end, hence I do not know the names of the fields when the forms are being filled in.  So the calculations do not work with the "original names" that I created for the fields.
    I just figured if I created a routine that looped through and chopped off the extra characters these programs put on the end I would be able to do the calcuations and they would work.  I believe there is a substring operation within javascript.

  • Need help with "Nokia Software Updater"...Plz

    hi
    plz help me
    every time i try to install
    and it gave me this MSG
    " Error 2738.Could not access VBScript run time for custom action."
    my Lap work with W.vista
    and i have N95-8GB
    plz i need a help to update my phone

    Please do a search on this forum for "6280 software update" and you will have your answer.
    Many people have written here about Nokia software updater that tries to flash their 6280 phones with V6.10 (intended for the 6288) and then breaks their phones.
    I myself was busy downloading the firmware for a friends 6280 that was just minutes away from being flashed with 6.10 when I came across messages on many sites telling about the issue with the software updater and 6280 phones. I managed to save that 6280 from sure doom.
    If you also searched before hand you would not have this trouble.
    You need to take the phone to a nokia Service centre to have it flashed now and get it into a working state.

  • Help with Footers (New Update Glitch)

    Hi there,
    I'm in need of some urgent help with my website as upon publishing with the new update installed all my footers have changed.
    I now have massive gaps between where my content ends and the footer begins on almost every page. Example.
    Pages which are attached to the Master pages are not reading the same footer positions now. For example, my home page footer begins at nearly 1300 but the master it's attached to it should be closer to 950..... Everything was fine until the update today.
    Any help would be appreciated. Thanks!

    Maybe I can explain this a little better, issue is still going on, spoke with an Adobe representative but didn't get any helpful advice, actually got no advice other than to send the file in.
    So here's my home page: you can see the gap between the content and the footer (with the footer starting at around 1300.
    But then here's the Master page it's attached to, the footer is set to start way higher, this is happening on every one of my pages.

  • Help with automating "System Update"

    edit:
    please help - who do I contact in Lenovo / IBM to get real help with this ?
    this is a corporate project and I need to resolve this as soon as possible.
    does anyone from Lenovo actually read this forum?
    I've opend a support call in Lenovo's helpdesk (via email) but no reply except an automated one for... like a week.
    help! help! help! we don't mind paying for it, we NEED to resolve this.
    any help at all would be greatly appretiacted. please point me at the right direction?
    sorry for this venting but really, I just need to get a move on this already... :-0
    can anyone at all help ?
    any idea where I can find more information / expert assistance ?
    thanks for any help...
    -Shay
    Hi,
    I've been able to fully automate System Update distribution using Group Policy. this works perfectly.
    I am now trying to achive the same functionality using scritps.
    the problem: I get quite a few prompts for "License Agreement" - not the "master" initial one, only a few for the different installs.
    here's my setup:
    1. a local server is the repository.
    2. I import a .reg file before installing "System Update" using an automated install.
    3. after a restart, a command runs on the local machine.
    here are the details:
    registry settings:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update]
    "LanguageOverride"="EN"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update\UserSettings\General]
    "IgnoreLocalLicense"="YES"
    "DisplayLicenseNotice"="NO"
    "DisplayLicenseNoticeSU"="NO"
    "ExtrasTab"="NO"
    "RepositoryLocation1"="***my internal server here ****"
    "RepositoryLocation2"=""
    "RepositoryLocation3"=""
    "NotifyInterval"="36000"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update\UserSettings\Scheduler]
    "SchedulerAbility"="YES"
    "SchedulerLock"="LOCK"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\MND\TVSUAPPLICATION]
    *** network drive mapping here, this part works ***
    also, I use this command to run the updates:
    call "C:\Program Files\Lenovo\System Update\tvsu.exe" /CM -search A -action INSTALL -IncludeRebootPackages 1,3,4 -noicon
    I am just about desperate... I would REALLY REALLY appreciate any help, hint etc :-)
    Thanks for ...even trying... lol
    regards,
    Shay
    Message Edited by catman2u on 03-18-2008 05:04 AM
    Message Edited by catman2u on 03-25-2008 02:41 AM

    catman2u wrote:
    does anyone from Lenovo actually read this forum?
    From the Communiy Rules in the Welcome section....
     Objectives of Lenovo Discussion Forums
    These communities have been created to provide a high quality atmosphere in which users of Lenovo products and services may share experiences and expertise. While members from Lenovo may participate at intervals to engage in the discussions and offer advice and suggestions, this forum is not designed as a dedicated and staffed support channel. This is an informal and public forum, and Lenovo does not guarantee the accuracy of information and advice posted here -- see important Warranty information below.
    No amount of ranting is going to get you anything more than you will achieve with a clear exposition of your issue... so you might want to try doing that instead of ranting and assuming that everyone already knows what you know etc etc.
    Cheers,
    Bill
    I don't work for Lenovo

  • Help with scripting TOC

    Is there a way to script creating the TOC? (PC, CS4 InDesign)
    When I create the TOC I go through a number of actions:
    Select "Table of Contents..." from the Layout menu,
    I then select certain items in the TOC window, such as "include book documents..."
    I then select the styles from the right-hand list and 'add' to the left-hand list.
    I would like to have a script that would select the styles in the right-hand list by style name.
    I know that I can set a style for the TOC, but that has caused some issues with my co-workers. For example, if one of my co-workers places a "headings" style into a style group in one section (document) in a book, and another group with a different group name in another section (document) in the final book, then that style name is repeated multiple times in the right-hand list in the toc dialog. So, a TOC style is beyond their comprehension. It just confuses them.
    So, rather than set a toc style, I would like to script the process. Is it possible to get the right-hand list out, filter it through a script that looks for any style with the word "head" in it, move it to the left-hand list, apply a toc style and done?
    any suggestions are appreciated.
    Thank in advance,
    RP

    Could explain more fully how you are creating your forms and what programs you are using from the creation of the base document to which program and how you are adding fields.
    I think you are misunderstanding me.   I use Adobe Acrobat Professional 6.0.  I can get the calculations to work correctly if I use the form as it is after creating it. 
    But these forms are put into an SQL database and they get selected within a VB.net program or ASP.net program (both are used).  So these programs (VB.net or ASP.net) are adding the extra characters at the end, hence I do not know the names of the fields when the forms are being filled in.  So the calculations do not work with the "original names" that I created for the fields.
    I just figured if I created a routine that looped through and chopped off the extra characters these programs put on the end I would be able to do the calcuations and they would work.  I believe there is a substring operation within javascript.

  • I need help with a software update problem??

    I recently got a new macbook pro and I was doing a software update last night as it was required but then when it started to do the update the computer installed the software and then a barring noise came from the mac and it tried to restart 4 times before it eventually came back on. The software trying to install was Fireware 800 I think. Can anyone help with this?

    Try MacBook notebook forum to talk to other users, or OS Software (Lion or Snow Leopard)
    Does not sound like an Apple OS update though.
    http://support.apple.com/downloads/
    https://discussions.apple.com/community/notebooks
    http://www.apple.com/support/macbookpro

  • Need help with itunes iphone update

    When I try to sync my iphone 4 with ios 7 to itunes for windows, I also receive the "can't use devise...requires itunes 11.1 or higher". I am advised to download this version at itunes.com. However, when I follow the link, I am not allowed to download b/c my phone already has itunes installed on it. The download link offers no tab or lik for either updating or downloading any new software. What am I missing? BTW, my pc is updated with itunes 11.1.

    Same problem here. It shows up under devices but there is no "page" for it. No tabs, music, apps, nothing.

Maybe you are looking for

  • Java running under linux with crontab

    I'm having a problem: i want to run a java program under linux with crontab. my classes are in a directory and aren't in a package. i run em by invoking ./start which is a small script that i wrote. The script is in the same dir as the classes and in

  • Microphone does not work after restarting computer

    I just received the Creative Xmod soundcard yesterday after using an Icemat siberia usb headset sound card for a couple months. The sound is a lot better with the creative soundcard however, if I restart my computer and go back into ventrilo, my micr

  • My iPod Touch calendar no longer receives updates

    My iPod Touch calendar no longer receives updates from the calendar program in my MacBook.  Used to work fine, via iTunes synch.  Have I inadvertently turned that function off?

  • MEGA 180 as Media Center (experiences)

    I am trying to use my MEGA 180 as a Media Center, i.e. to listen to radio and CD's, to watch TV and DVD's, and to use the HDD to record programs on temporarily to watch later. Plus the TV pause facility. I am using Windows XP home on it, and have all

  • Need to remove the "customize" from a portlet

    Hi Everyone, Hoping someone can help with this... I would like to remove the "customize" link from the portlet header. There are no user servicable parts inside when the portlet appears, it has essentially all it needs to function properly. Can I mak