Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Add timecode to slate #2929

Merged
merged 37 commits into from
May 31, 2022
Merged

Conversation

jrsndl
Copy link
Collaborator

@jrsndl jrsndl commented Mar 22, 2022

Brief description

Add timecode to reviews with Nuke slate.

Description

Source Timecode is read from the review. Slate is assumed to be one frame. Source timecode is offseted -1 frame and added to the slate encode.

Additional info

This PR also has an initial attempt to solve adding slate to the review with audio. Concatenating slate with review with sound no longer fails, but sometimes produces two frame slate. More work is needed for clean audio concatenation.

Testing notes:

  1. Setup mov review with slate
  2. Publish a version from Nuke with Nuke slate
  3. Check that review mov has a slate and source timecode of the first frame matches the publish. Slate timecode is STC - 00:00:00:01

@jrsndl jrsndl added type: bug Something isn't working host: Nuke labels Mar 22, 2022
@jrsndl jrsndl self-assigned this Mar 22, 2022
@ynbot
Copy link
Contributor

ynbot commented Mar 22, 2022

@jrsndl jrsndl changed the title Add timecode and silent audioto slate Add timecode and silent audio to slate Mar 22, 2022
Copy link
Member

@jakubjezek001 jakubjezek001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If DVXHD on MXF is configured in Settings

My ffmpeg output args were:

-codec:v dnxhd
-pix_fmt yuv422p
-b:v 115M

Here is Traceback:

Traceback (most recent call last):
  File "C:\CODE\__PYPE\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
    runner(*args)
  File "C:\CODE\__PYPE\OpenPype\openpype\plugins\publish\extract_review_slate.py", line 95, in process
KeyError: 'timecode'

@jrsndl
Copy link
Collaborator Author

jrsndl commented Mar 28, 2022

Another try. Tested on Prores, DNxHD, MXF and H264 mp4, with and withouth sound.
Tested for 23.974 FPS
Sound slates are not done, Pyblish shows warning and makes review with no slate instead.

@jrsndl jrsndl linked an issue Mar 29, 2022 that may be closed by this pull request
@jrsndl jrsndl requested a review from iLLiCiTiT March 31, 2022 07:05
@jrsndl
Copy link
Collaborator Author

jrsndl commented May 2, 2022

This might close Nuke: Nuke Slate MXF review fails on 23.976 FPS project #3014

@jrsndl jrsndl marked this pull request as draft May 6, 2022 10:30
@jrsndl jrsndl marked this pull request as ready for review May 6, 2022 10:31
@jrsndl jrsndl marked this pull request as draft May 10, 2022 12:58
@jrsndl jrsndl changed the title Add timecode and silent audio to slate Add timecode to slate May 11, 2022
@jakubjezek001
Copy link
Member

Hey @jrsndl, shouldn't this be marked as review ready? I had just tested it and all is working fine as expected ;) I am ready to approve and merge.

@jrsndl jrsndl marked this pull request as ready for review May 23, 2022 09:55
Copy link
Member

@jakubjezek001 jakubjezek001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and works fine

jrsndl and others added 2 commits May 23, 2022 13:19
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
@mkolar
Copy link
Member

mkolar commented May 23, 2022

Does it also fix #3014 ?

@jrsndl jrsndl linked an issue May 23, 2022 that may be closed by this pull request
@jrsndl
Copy link
Collaborator Author

jrsndl commented May 23, 2022

Does it also fix #3014 ?
Yes. Ffmpeg prefers 23.976 as 24000/1001. This PR fixes that

@iLLiCiTiT
Copy link
Member

Isn't this duplicate of #3162 ?

@iLLiCiTiT iLLiCiTiT merged commit 918a9cb into develop May 31, 2022
@mkolar mkolar deleted the bugfix/OP-2913-Nuke-Slate-no-timecode branch June 9, 2022 07:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Nuke type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nuke: Nuke Slate MXF review fails on 23.976 FPS project Nuke: Review with Slate doesn't have source timecode
5 participants