Importing A 23.976 FPS .mkv File But TVAI 6.0.3 Detecting It As A 29.97 FPS File

Hi There!

For some reason TVAI 6.0.3 is detecting all 23.976 FPS Files (Verified by Media Info) that I import as 29.97 FPS (Original). If I manually switch the Frame Rate back to 23.976 FPS it activates Frame Interpolation. Not sure why this is all of the sudden happening. Wondering if it is a Bug? However, I didn’t see any recent posts in the “Bugs” section so perhaps it’s just me!

Anyone else see this behavior?

Thanks

Hi, could I take a look at the file for testing?

You can securely submit your file(s) to our Dropbox using the link below. Please be sure to send me a note to let me know you sent something and include the file name.
Submit File to Dropbox

Thanks Margaux!

I Uploaded The File…

After doing some more research my guess is that it has something to do with needing to complete an Inverse Telecine on the file before processing in TVAI.

The file is a DVD Rip of an Older TV Show that would have been recorded in Interlace Format I assume and then converted to a different format / frame rate for Broadcast & possibly DVD Release.

I was hoping to give it the TVAI Treatment as I know it will not ever be release in HD.

The Frame Order appears to be starting from Frame Zero (I,B,B,P,B,B,P,B,B,P,B,B,I,B,B,P,B,B,P,B,B,P,B,B,I,) and it obviously repeats itself.

As you can see below everywhere is saying its a 23.976 Frame Rate but is the 2:3 Pulldown causing TVAI to report that as 29.97?

When I ran it through TVAI at 29.97 (Original) the Video and Audio was completely out of sync.

Below is the Media Info Tree…
image

You can turn on IVTC in the input settings dialog (the cog button):

I don’t think TVAI auto detects telecine in the input file.

Your file looks like it has “soft” telecine, and I’ve never processed a file like that in TVAI, so I don’t know what issues may present themselves.

In your MediaInfo Screenshot I can see Frame Rate Mode: variable

You should do constant frame rate of it. You can do this with Avisynth CLI or with Avidemux:

Choose “Resample” Filter and set desired frame rate. This does not affect film duration, the set frame rate gets reached by drop or adding frames (copy frames)

Image: Avidemux
Resample

TVAI does not telecine. For my unterstanding something went wrong by working with the source. Normally by a 23.976 record to a 29.97 conversion, existing frames gets copied, then you have some double frames in it and the duration of the movie does not change audio still fits.

By doing Re-Telecine you delete this double frames again and lowering speed to 23.976 as it was originally, this gives not VFR, but your source has VFR.

Hi There!

First off thanks for all the replies…

My question @Mayday is that are we sure that TVAI cannot do an Inverse Telecine or Re-Telecine as you called it? Isn’t that what @alanhusband-677420 showed in the post above how to do in TVAI?

Perhaps I’m not understanding fully? Would be awesome if TVAI Setting could handle this functionality but understand that there is so many variables when it comes to Video Footage that it’s nearly impossible for a 1 program to do all type of thing.

I did download Avidemux as I tend to be more Visual and appreciate the GUI. However my version does look different than yours. Prior to Selecting any Filters which “Video Output” Option would you use? Obviously just want to essentially “Copy” the video but Resample the FPS.

Thanks

If you speak bash, utahjohnnymontana wrote a bash script that detects/removes telecine & interlacing to prep DVD rips. He’s a really nice guy and has been continuing to update and improve the process in his github repo.

I think I may have answered my own question… I used @alanhusband-677420 suggestion and selected Telecine and 23.976 (IVTC) in TVAI and it produced a file that has Video and Audio out of Sync.

So it appears that I need to use Avidemux to Inverse Telecine first and then process through TVAI.

As I’m not famiiar with this software my question is which “Video Output” Option should I use prior to applying a Transformation → Resample Filter?

I have…

image
image

I’m not really wanting Avidemux to change the format as I am going to use TVAI to do that… I’d like to more or less preserve all the source video formats / settings / etc. and just resample the FPS.

Also my Resample Filter Prompt does not include the Keine Interpolation Option. I have None, Blend, and Motion Compensation. Perhaps none of that is important for a FPS Resample.

Again not very familiar with the program but can I not just select 23.976 from the Mode Dropdown or do I have to leave that as Custom and input the 23.976 in the New Frame Rate Field.
image

Thanks Again!

Apart from audio sync, did the video playback correctly? Did you select a small section from the video as a test, or process the whole video? What were your audio settings in TVAI? How you process the audio (or don’t) can also cause sync issues.

In practice you don’t want to re-encode the video to remove the telecine, you just want to remove the pulldown down flags from the file, because it’s soft telecine. Tools like eac3to can remove pulldown flags.

Hi @alanhusband-677420!

Thanks for your replies… I did process the whole video. I imported my .mkv file and updated my Output Settings to H265 Codec. I’m Copying Audio and using a .mkv Container (Sames As Source).

image

As far as adjustments My Output Resolution is 1280x720 using the Artemis AI Model with Input Condition set to Low Quality and Apply Grain clicked off.

image

I Clicked Off Telecine in the Input Settings as you suggested and

image

And made sure the Frame Rate was 23.976 (IVTC) in the Frame Interpolation section

The result is that it produced a .mkv file that had the Audio Track at 49 min 9 sec and the Video Track at 39 min 19 sec. Thus creating the Audio / Video out of Sync.

image

Doesn’t eac3to just work with the Audio only? I wasn’t aware that it would work on video too?

I’m not wanting to modify the Video or Audio Quality… Just looking to get the file into a format that TVAI can use to upscale & clean-up while keeping that Video & Audio in sync.

Currently processing this file through TVAI causes Video & Audio out of Sync because it was filmed in 23.976 FPS but then converted to 29.97 for broadcast or DVD distribution (I Assume). Thus, the inclusion of Soft Telecine. So, looking for a simple solution to Inverse Telecine the file before TVAI Processing. Was hopeful the option you suggested in TVAI would complete that before / during / or after the AI Model Treatment but as I say it appears to not have done what I was hoping. Unless I have not selected something that I should have (or vice versa).

Yeah when Source is just soft telecined, remove of the pulldown flag works lossless. This could be the Tool you’re looking for :slightly_smiling_face:

no demux is needed, direct import your mpeg video file (mkv) into this Tool and set new pulldown value, maybe for none pulldown what you want, try “Custom” and set two times the same value, 23.976 - > 23.976

Thanks Mayday!

Tried your suggestion and used the Custom Output with a 23.976 → 23.976 values and imported that file into TVAI and it is still being reported as a 29.97 (Original) Frame Rate.

Using Media Info to inspect the file shows the only difference to be the Scan Order for the Video going from 2:3 Pulldown in the Original File to Top Field First in the file processed by the DGPulldown App.

Its main use is for audio, but it can used for a few video operations like removing pulldown flags. The tool Hybrid might also be useful, but I don’t have any soft telecine video files to test how good these tools are for this purpose.

In TVAI, copying the audio may not be a good option for maintaining sync, you may have to convert.

SIDENOTE: Beware Windows Media Player on Win10 for audio sync issues.