Frame interpolation fails on Dreamina videos: VFR source tagged as 60 fps

Problem: Videos downloaded from Dreamina (Seedance 2.5) are tagged as 60 fps but really contain 24 fps content with variable frame timing. Topaz seems to use the 60 fps tag instead of the real frame timing, so frame interpolation does not work. I noticed it about 3 weeks ago, on Windows.

Source file (Dreamina):

  • 720 x 1280, H.264 High, ~11.6 Mbps, AAC 44.1 kHz, 15.02 s
  • r_frame_rate = 60/1, but avg_frame_rate = 21660/901 (24.04 fps)
  • 361 frames in 15 s
  • Frame durations alternate 50 ms / 33.3 ms (VFR)

Test 1: Apollo, 60 FPS, Proteus, 1440 x 2560

  • Output: r_frame_rate = 60/1, avg_frame_rate = 10830/451 (24.01 fps)
  • Same 361 frames and the same 50 / 33.3 ms timing, no interpolated frames
  • Metadata: “Framerate changed to 60 using apo-8 replacing duplicate frames”
  • Same result at 2160 x 3840 with Apollo Fast (24.01 fps)

Test 2: Apollo, 24 FPS, no upscale

Expected: Topaz should detect the real frame rate of VFR sources, or let the user set the input frame rate manually.

I can share the source file, output file and logs privately if needed.

The original source video is in a variable rate and mistagged in the metadata? That will cause issues with the model trying to process and convert the frame rate.

If you remux the file via Handbrake to a CFR, then it should not have that issue within the app and should be able to be processed correctly. At this time, there are still issues with VFR sources within the AI engine that the team has been trying to address.

Can you share the files and logs with us?

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

Hi Kyle, I’ve uploaded the 3 files and the logs you asked for to your Dropbox:

  • Original Dreamina source 720x1280, 21.1 MB (VFR, tagged as 60 fps).mp4
  • Output with Apollo Fast at 60 FPS + Proteus 4K 2160x3840, 88.5 MB (still 24 fps VFR, no interpolated frames).mp4
  • Output with Apollo at 24 FPS 720x1280, 5.30 MB (comes out at 9.61 fps).mp4
  • logs

Thanks!

Got them and running some tests now.

The main source is showing as 24fps but has the maximum set to 60. The app is going to default to that 24fps. Converting it to a CFR is ideal for the app to handle it with the models and then apply Apollo Fast to convert if that is what you want.

Thanks for testing it, Kyle! Yes, that’s exactly what I ended up doing. Since Dreamina exports the files incorrectly, I now use HandBrake or CapCut just to convert the videos to a constant 24 fps. After that, I can upscale them from 720p 24 fps to 4K 60 fps without any problems, and they no longer look “bad” on my social media.

The report was mainly so that, when a broken file like these comes in, Topaz can detect it and handle it correctly, for example by warning the user or converting it to CFR automatically.

Thanks.

Appreciate the heads up on the situation. The report has been passed onto the devs and they will be looking into the situation further.

Hi, did you remux the video first, for example, using MakeMKV? Some videos are simply tagged incorrectly. The first step is to find out whether it’s actually VFR (in this case, up to 60 fps) or just incorrectly tagged.

If it’s really VFR in the videostream, there are several ways to handle it. I’d probably use FFmpeg to drop or add duplicate frames to make it CFR, or you could interpolate new frames (although those wouldn’t have the same quality as the original frames).

Thanks for the suggestion! Just to clarify, as mentioned earlier in the thread: the problem comes from the videos downloaded from Dreamina, an AI video platform similar to Higgsfield. You generate the video there (in my case with Seedance 2.5), and the file you download is already broken: it’s tagged as 60 fps, but it’s really 24 fps with variable timing.

We ran some tests to find where the problem starts, and it’s definitely the Dreamina export, not Topaz or my settings.

My fix is simple: I convert the Dreamina video to a constant 24 fps in HandBrake first. After that, Topaz reads it correctly as 24 fps instead of 60, and the interpolation to 60 fps works without any problems.

What I’d like to see in Topaz is a way to handle files like this automatically. With the original Dreamina file, setting 60 FPS didn’t create any new frames: the output was tagged as 60 fps but still had the same 24 frames per second. Setting 24 FPS even gave me 9.61 fps. Ideally, Topaz would detect the real frame rate from the actual frame timing, warn the user, or convert the source to CFR before processing, so the interpolation works correctly without needing another program first.

All the details, file analysis and steps I followed are already in this thread, so most of these questions have been answered in the replies above. Feel free to check them if you need more info.