Change Timecode for multiple clips at the same time.

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline
User avatar

Mylonas Films

  • Posts: 77
  • Joined: Mon Aug 05, 2019 5:41 am
  • Location: Central Coast - Australia
  • Real Name: Stephen Mylonas

Re: Change Timecode for multiple clips at the same time.

PostSun Dec 18, 2022 11:50 am

Sergey Mirontsev wrote:
Mylonas Films wrote:Thanks serg...
My version:
Code: Select all
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from datetime import datetime

currentProject = resolve.GetProjectManager().GetCurrentProject()
mediaPool = currentProject.GetMediaPool()
currentBin = mediaPool.GetCurrentFolder()
clips = currentBin.GetClipList()
for clip in clips:
    print clip.GetClipProperty('File Name')
    created = datetime.strptime(clip.GetClipProperty('Date Created'), "%a %b %d %H:%M:%S %Y")   
    clip.SetClipProperty('Start TC', created.strftime("%H:%M:%S:00"))


Is there any reason this code all of a sudden stopped working ? On my laptop and PC workstation. I'm on Version 18 DaVinci Resolve
-----------------------------------------
stephen.mylo@gmail.com
DOP/Colorist
DaVinci Resolve V20
Windows 10 Pro 64-bit (10.0, Build 19041)
GeForce RTX 2070Super Gaming OC 8GB
Intel(R) Core(TM) i9-10920X CPU @ 3.50GHz (24 CPUs)
Memory: 132GB RAM
Offline
User avatar

roger.magnusson

  • Posts: 3874
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: Change Timecode for multiple clips at the same time.

PostTue Feb 28, 2023 7:54 pm

I already posted in the Feature Request thread that accompanies this thread, I've created a script that is hopefully more robust and easy to use. Available here: Set Timecode for Media Pool Clips

You can set timecode or offset with timecode or frames.
Image
Offline

rhrn.ch

  • Posts: 113
  • Joined: Thu Jun 06, 2019 10:37 am
  • Real Name: Jonathan Moy de Vitry

Re: Change Timecode for multiple clips at the same time.

PostFri Mar 03, 2023 1:55 pm

Thank you Roger, will try this out!
Offline
User avatar

joema4

  • Posts: 438
  • Joined: Wed Feb 03, 2021 3:26 pm
  • Real Name: Joe Marler

Re: Change Timecode for multiple clips at the same time.

PostMon May 15, 2023 11:13 am

Uli Plank wrote:@Chris
Normally I get TC across from files used in FCP. Could you check if those originals had TC with a tool like MediaInfo? Maybe it was switched off in the camera, which is a bad idea for any workflow.


There is an issue whereby FCP cannot read timecode from certain MP4 containers. The symptom is clip or source timecode shows as starting with 00:00. To fix that and several of the other previously-mentioned timcode issues, there is a Mac and Windows 3rd-party utility QTChange. By default, on an MP4 it will rewrite the timecode metadata in the header to Quicktime format, but it doesn't touch anything else. This assumes valid source timecode is present in the clip, IOW the camera was set to free run TC when recording. https://www.videotoolshed.com/handcraft ... /qtchange/

It can also read the clip creation time and set timecode to that value, or offset the timecode a user-specified +/- amount, plus do other things.

Obviously this should be tested on your own data and used at your own risk. It's good to keep before and after versions of the files and spot-check some with Invisor, MediaInfo, etc. However it works well in the cases I've tried. My favorite Mac tool for such inspections is Invisor since it provides a grid-format side-by-side comparison of the metadata from multiple files: https://apps.apple.com/us/app/invisor-m ... 7586?mt=12
Offline
User avatar

Dwaine Maggart

Blackmagic Design

  • Posts: 13239
  • Joined: Wed Aug 22, 2012 2:53 pm

Re: Change Timecode for multiple clips at the same time.

PostWed May 24, 2023 7:09 pm

Thanks for the heads up on Invisor! Nice app!
Dwaine Maggart
Blackmagic Design DaVinci Support
Offline
User avatar

Uli Plank

  • Posts: 25458
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Change Timecode for multiple clips at the same time.

PostThu May 25, 2023 2:08 am

From my side too. I bought it right away. I does what I miss sometimes in MediaInfo, in particular the comparison of the info for several clips side-by-side.
Worth the few bucks and invaluable if you need to spot issues with source files!
My disaster protection: export a .drp file to a physically separated storage regularly.
www.digitalproduction.com

Studio 19.1.3
MacOS 13.7.4, 2017 iMac, 32 GB, Radeon Pro 580 + eGPU
MacBook M1 Pro, 16 GPU cores, 32 GB RAM, MacOS 14.7.2
SE, USM G3
Previous

Return to DaVinci Resolve

Who is online

Users browsing this forum: AndrewTheGreat, cyberphile, dennis9880, Google [Bot], kevDavinci, pauliesheehy and 299 guests