obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Deinterlacing "Bottom Frame First" footage in Double Framerate yields incorrect output

Open ray890 opened this issue 4 years ago • 1 comments

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

27.2.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/XatW6D21UZ_tunCz

OBS Studio Crash Log URL

No response

Expected Behavior

Sets of fields should be reconstructed in their appropriate frames, constructing the first set of fields in every odd frame, and the second set of fields in every even frame. This results in smooth video output with every frame in order, represented by the pattern of 1, 2, 3, 4, 5, 6, [...].

This would match the existing working OBS behavior when "Top Fields First" footage is deinterlaced in "Top Fields First" mode.

image

https://user-images.githubusercontent.com/11812575/156069727-a23ffc5b-bfc7-40cd-a7f8-4376223009c6.mp4

Current Behavior

In the video output, top fields are delayed by 6 frames while bottom frames are constructed properly, resulting in a jerky video constructed out of order in the pattern of 1, 6, 3, 8, 5, 10, [...]

image

https://user-images.githubusercontent.com/11812575/156070214-fe5a290e-9591-4f11-a307-64e6dd4c9d61.mp4

Steps to Reproduce

  1. Add an input source that contains video content that is interlaced using the "Bottom Field First" method
  2. Enable the Deinterlacing using Blend 2x, Linear 2x or Yadif 2x
  3. Set the Deinterlacing mode to "Bottom Field First"
  4. Watch the video output

Anything else we should know?

If a "Top Fields First" video were to be properly deinterlaced with "Bottom Fields First", and vice versa, then the second set of fields should be constructed one frame behind, leading to a mildly jerky video output. This is expected behavior, and not the behavior currently achieved with this bug.

image

https://user-images.githubusercontent.com/11812575/156070765-bb9e33e8-ffc1-4d74-8f77-e7c7602adaac.mp4

https://user-images.githubusercontent.com/11812575/156070243-0939d936-c4e2-4d9c-b8df-61edb971ef80.mp4

ray890 avatar Mar 02 '22 00:03 ray890

Agree! It really annoys me as well. I can't double the output framerate in OBS and it cause wrong output frame order

faradey8951 avatar Dec 17 '22 06:12 faradey8951