Jerky Motion on One Video

Hi. I have been using VEAI for about a month now. I used it to upscale episodes of a TV show from DVD quality to 1080 (keeping 4:3 aspect ratio - 1416x1080) using GHQ-5. They all look great! Except one episode. When I watch the original it looks fine, but the upscaled version has choppy playback when there is a lot of motion (like a camera panning across the scene.)

I’ve tried going back to the original source, re-encoding the source into another format before upscaling and it always has choppy playback. I’ve done hundreds of episodes of this show and watched dozens of them. I saved my default settings so they have all been converted exactly the same way, yet so far, this episode is the only one that exhibits this behavior.

I am running on Windows 10 Pro 64-bit with 64 GB of RAM, 10th Gen i9 and GTX3080 graphics card and using PCIe NVMe M.2 SSD.

Any ideas on why this one episode would have the issue and how I might work around it?

Thank you.

Are you using a variable bitrate codec setting? Panning left or right puts a huge load on your CPU/GPU, and often the bitrate if fixed is not enough to deal with rhe huge amount of changing data.

if you upload it somewhere we could examine the video file. :slight_smile:

Hi. Thank you for the reply. I am using the mp4 output from VEAI. I’m not aware of any way to tweak the encode settings for mp4 output. None of the other episodes seem to have this issue. Although, your question does offer an idea. I can try outputting it in a different format.

EDIT: Just started it, it will be done in a little more than an hour (getting .10 - .11 seconds per frame!)

Alas, I do not think I want to get banned from the forums on my first day. :slight_smile:

What I can do is upload the ffprobe output from the input file and the output file. (Except I can’t because new users cannot upload attachments.)

Okay, here is the stream section of the input file, including an error message. This was created with handbrake - mostly I removed the chapters to make it smaller and the filename to remove the name of the show:

  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2021-03-06T16:15:15.000000Z
    encoder         : HandBrake 1.3.3 2020061300
  Duration: 00:25:33.01, start: 0.000000, bitrate: 1714 kb/s
 Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 708x480 [SAR 8:9 DAR 59:45], 1546 kb/s, 24.01 fps, 59.94 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2021-03-06T16:15:15.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      creation_time   : 2021-03-06T16:15:15.000000Z
      handler_name    : Stereo
      vendor_id       : [0][0][0][0]
  Stream #0:2(eng): Data: bin_data (text / 0x74786574), 0 kb/s
    Metadata:
      creation_time   : 2021-03-06T16:15:15.000000Z
      handler_name    : SubtitleHandler
Unsupported codec with id 100359 for input stream 2

And here is the stream section of the output file:

  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.20.100
  Duration: 00:25:32.99, start: 0.041000, bitrate: 13193 kb/s
  Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 1416x1080, 13092 kb/s, 24.01 fps, 24.01 tbr, 570873562.00 tbn, 48.02 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 95 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]

Thank you.

I am not familar with reading Metadata I am afraid. :neutral_face:

.mov did not help, but it DID create a really large file.

I am doing .png now.

This is weird. It is rendering to png now. I just watched a section where I notice jerkiness. As it leads up to it, I can step through one png file at a time and each one is different than the one before, but when it gets to what I notice as the jerky part, there are 2 identical pngs before the picture changes. It’s like it’s duplicating a frame and dropping another.

I can actually take the original video and look at it side-by-side with the png files and see that frames are missing and duplicate frames are inserted for the missing frames.

What could possibly be causing this?

Thank you.

The Unsupported Codec is in all likelihood the cause.

But all of the episodes have that. It was encoded using handbrake. Does VEAI use ffmpeg? on the inbound side? I will try upscaling the original .mkv file and see if that helps.

either the output framerate does not match the input framerate exactly or the output is told to match the length of the audio which may stretch the video a bit by inserting unwanted frames. O.o

I cannot affect those settings. I can see that when encoding, it shows the frame rate at the bottom and they are the same. The ffprobe shows the frame rates are the same, and that the length is off by .02 seconds, which at the 24.01 fps works out to less than half a frame.

Seems like there is something about this ONE episode that is causing issues. Seems like Topaz might be interested in looking into what might be a bug in their software.

Thanks.

have you tried to play the video with different video players? I sometimes have videos that don t run perfect in one but smooth in another …

Is it possible that the original input, before handbrake, is interlaced? And do the jerky scenes play OK after handbrake but before Topaz (or is the problem there already)? I have been struggling with a DVD film rip, trying to clean speckles, comets, scratches etc and getting the same effect you describe. It turns out that the original source was reporting TFF whereas it was actually BFF and the jerkiness was only obvious in fast motion sequences

Should be the problem with compression. Increase the compression may help. I personally use CRF 16.