Skip to main content
Inspiring
May 14, 2020
Answered

Relink media via code (changeMediaPath) and footage interpretation issue

  • May 14, 2020
  • 1 reply
  • 1683 views

Hi Guys,

i made a script that relink (with changeMediaPath) clips to a new media, but i have a big issue: the relinked clips do not maintain the interetation (fps, starting timecode, fields, ecc). Is there a fast solution where i can change ONLY the path and not all relative interpretation?

I saw that there is set/getFootageInterpretation(), but it is not a quick solution...any idea?

 

Thank you

This topic has been closed for replies.
Correct answer Bruce Bullis

As you've found, there is no quick way. If you change the media path, PPro needs to re-import that media; there's no guarantee the previously applied interpretation will "make sense", for the new media. 
Getting the old interpretation, replacing the media, then setting the new media's interpretation to match the old one (as needed) is the best approach.

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
May 14, 2020

As you've found, there is no quick way. If you change the media path, PPro needs to re-import that media; there's no guarantee the previously applied interpretation will "make sense", for the new media. 
Getting the old interpretation, replacing the media, then setting the new media's interpretation to match the old one (as needed) is the best approach.

Cad81Author
Inspiring
May 14, 2020

Thank you!

Another question: reading the scripting reference ( https://premiere-scripting-guide.readthedocs.io/4%20-%20Project%20Item%20object/projectItem.html#getfootageinterpretation ) of getInterpretation, it only take in consideration these information that you see in the link, but for other info like timecode and audio channel?

 

And do you know if there are other information that will be lost using changeMediaPath?

 

Thanks

Bruce Bullis
Legend
May 14, 2020

I'm not sure which 'timecode' you mean; frame rate? setOverrideFrameRate() should work.


Channelization = get and setAudioChannelMapping().