Skip to content

fix: Playback performance is lower and less stable than OpenRV #96

Closed

Description

@SR2610

Description

Playback performance significantly lower than OpenRV

Video playback in OpenUTV is consistently less smooth and achieves a lower playback frame rate than OpenRV when using the same media and equivalent playback settings.

The issue has been reproduced across multiple machines, multiple media types, and different OpenUTV versions.

Test case 1

OpenUTV: 2026.7
OpenRV: 1.0.0
System:

  • Windows 11 Pro, Build 26200
  • AMD Ryzen 9 7950X
  • NVIDIA GeForce RTX 4090
  • 96 GB RAM

Media:

  • H.264 MP4
  • Approx. 100 MB
  • 30 fps

Using the same file and equivalent playback settings:

  • OpenRV maintains a stable 30 fps
  • OpenUTV drops to approximately 27 fps and fluctuates during playback

Hardware acceleration has been tested both enabled and disabled in OpenUTV, with no significant improvement.

Test case 2

A second user has reproduced a much larger performance difference with the following versions:

  • OpenRV 1.0.0
  • OpenUTV 2026.9

Using the same settings in both applications and the same 6144 × 6144 PNG image sequence:

  • OpenRV: approximately 45 fps
  • OpenUTV: approximately 13.9 fps

Possible caching / reader thread issue

We have also noticed potentially related behaviour with the Reader Threads setting under caching.

For example:

  1. Set Reader Threads from 1 to 16.
  2. Restart OpenUTV so the setting takes effect.
  3. After restart, the setting correctly shows 16.
  4. Load footage and begin playback.
  5. The Reader Threads setting appears to revert to 1.

This may be unrelated, but it could potentially explain some of the playback performance difference if OpenUTV is falling back to a single reader thread during playback.

Expected behaviour

OpenUTV should maintain playback performance broadly comparable to OpenRV when using the same media, hardware and equivalent settings.

In particular, it should be able to maintain the source frame rate where OpenRV can do so comfortably on the same hardware.

Actual behaviour

OpenUTV consistently performs below OpenRV:

  • A 30 fps H.264 file that plays at a stable 30 fps in OpenRV fluctuates around 27 fps in OpenUTV.
  • A 6144 × 6144 PNG sequence that reaches approximately 45 fps in OpenRV reaches only approximately 13.9 fps in OpenUTV.

The issue has been reproduced on multiple machines and across different media types.

Reproducibility

Consistently reproducible across:

  • Multiple machines
  • Multiple media files
  • H.264 video and PNG image sequences
  • OpenUTV 2026.7 and 2026.9
  • Hardware acceleration enabled and disabled

Operating System

Windows 10 / 11

Logs or Console Output (Optional)

Code of Conduct

Activity

  1. added
    bug
    on Oct 5, 2026
  2. mcoliver commented on Oct 10, 2026

    @mcoliver
    Collaborator

    Thank you very much for taking the time to report. Most of my testing has been on macOS. Performance is of the utmost importance so thank you for flagging and sharing all the detail. I think I introduced this regression when I rolled out the auto caching and I have been able to reproduce it.

    A bit of background. OpenRV / RV's caching system is useful but complex and a lot of people do not know how to use it properly. Additionally I found that for certain codecs on modern hardware (nvme and Metal API's) RV's caching system actually introduced a poorer experience than when no caching is enabled. This is due to a bunch of things that need to be rethought from the ground up. As a patch mitigation I introduced AutoCache to help set the cache for the everyday user appropriately. You can change this in RV preferences to disable Auto Cache. It is set to Auto by default for new users.

    There are some fixes in place that I'm working to merge today and would love your feedback/validation on the dev release before we cut an official one. Standby and thanks again for taking the time to report!

  3. mcoliver commented on Oct 11, 2026

    @mcoliver
    Collaborator

    Thanks for the detailed report. The image-sequence slowdown is fixed in OpenUTV 2026.13.

    Since 2026.9, the default Auto caching mode turned caching off for image sequences (PNG, EXR, DPX and so on). Every frame was decoded one at a time during playback, which is also why changing Reader Threads made no difference. On a 6144 × 6144 PNG sequence, playback on the same machine went from about 2 fps to about 16 fps with 8 reader threads (#109, #113). For frames that large, also raise the look-ahead cache size in Preferences > Caching so it holds enough frames: one 6K RGB frame is about 108 MB.

    We couldn't reproduce the H.264 case (30 fps in OpenRV, about 27 in OpenUTV) on macOS: a 1080p30 H.264 file played at a steady 30 fps. Could you try 2026.13 on your Windows machine? If it still drops frames, please capture a playback log and attach it here:

    1. Open a Command Prompt in a folder you can write to, for example cd %USERPROFILE%\Desktop.
    2. Run set RV_PLAYBACK_DIAG=1 and then start UTV from that same window, e.g. utv path\to\clip.mp4.
    3. Play the clip for about 30 seconds, then quit UTV.
    4. Attach the rv-playback-diag.log file it writes in that folder.

    That log records each displayed frame, the decode times and the cache state, so it will show where the frames are being lost.

  4. SR2610 commented on Oct 12, 2026

    @SR2610
    Author

    Thanks for the fix for image sequence's, they're playing much better now.

    On the H.264 case, we were been mistaken, the test file is actually a hevc and it was mislabelled, so the issue is with the hevc decoding.
    On our openrv 1.0 build the file plays back fine with no buffering outside of the initial load, however, in UTV (Tested on 2026.13), it does buffer and won't play back smooth. For refernce, we retested with a 4k60 video file from this site: https://lf-tk-sg.ibytedtos.com/obj/tcs-client-sg/resources/video_demo_hevc.html (HEVC Main Profile - SDR - Sample 7 (4K + 60P)).

    I've attached the playback log.
    Through looking at task manager, playback in utv doesn't trigger video decoding on the GPU so some of the impact may be from it falling back to software decoding.

    h265-rv-playback-diag.log

  5. mcoliver commented on Oct 12, 2026

    @mcoliver
    Collaborator

    Copy thanks for confirming the image sequence fix. I snagged the video https://lf-tk-sg.ibytedtos.com/obj/tcs-client-sg/resources/hevc_4k60P_main_dji_mavic3.mov and will run some tests later this evening. Thanks for attaching the playback log as well.

    On my mac with latest openutv 2026.13 I can playback that video at 60fps with look ahead cache enabled so I'll need to spend some time this evening to test on windows.

    Before I dive in, off the top of my head I have a couple questions regarding your setup. OpenUTV should not be able to playback hevc on Windows unless one of three things has been done:
    a) you purchased the hevc video extensions for $0.99 https://apps.microsoft.com/detail/9nmzlz57r3t7?hl=en-US&gl=US
    b) you have supercharged ffmpeg either by using the tools in openutv (help menu supercharge ffmpeg) to guide you, or by overwriting the ffmpeg binaries/dlls in the UTV dependencies folder
    c) you are an advanced user and have set environment variables to point UTV to use an alternate ffmpeg that has been compiled with hevc/x265 support

    Can you let me know if any of those apply to your situation?

    I think you're onto something with the hardware decode no kicking in. If you have a nvidia gpu (which you reported you do) and using ffmpeg to decode the hevc, you also want to ensure that ffmpeg was compiled with nvdec / nvenc (nvidia decode and encode) support. You can see what decoders are available for your ffmpeg build by running ffmpeg -decoders

  6. SR2610 commented on Oct 13, 2026

    @SR2610
    Author

    Thanks for looking into this! I've spent some time investigating the Windows hardware decoding issue and have managed to get CUDA decoding working.

    To answer your original questions:

    a) Microsoft HEVC Video Extensions: Yes, I have these installed from the Microsoft Store.

    b) Supercharged FFmpeg: No, I hadn't manually supercharged FFmpeg on the fresh OpenUTV installation. I was using the FFmpeg dependencies already present from the installation/setup process.

    c) Custom FFmpeg environment: Not initially. I've since tested this to diagnose the problem.

    Here's what I found:

    1. The existing FFmpeg build didn't include NVIDIA CUDA/NVDEC support.

    The FFmpeg executable at D:\Software\UTV\Deps\tools\ffmpeg\ffmpeg.exe reported:

    Hardware acceleration methods:
    dxva2
    d3d11va
    d3d12va
    

    There was no CUDA support, and attempting to use hevc_cuvid returned Unknown decoder.

    I also verified that OpenUTV was loading the FFmpeg DLLs from D:\Software\UTV\Deps\bin, and that the avcodec-63.dll there matched the one supplied with the FFmpeg executable.

    2. Hardware acceleration wasn't enabled by default.

    The playback logs showed:

    OPENUTV_HWACCEL=none
    UTV_HWACCEL=none
    

    I tested D3D11VA directly using FFmpeg, which successfully decoded the DJI H.265 test file and triggered GPU Video Decode activity.

    Then I launched OpenUTV with these environment variables:

    OPENUTV_HWACCEL=d3d11va
    UTV_HWACCEL=d3d11va
    

    Hardware decoding then worked in OpenUTV.

    3. I managed to enable CUDA decoding as well.

    I downloaded a CUDA-enabled FFmpeg shared build with matching DLL major versions, verified that cuda and hevc_cuvid were available, and successfully decoded the same DJI video through CUDA directly in FFmpeg.

    I then manually replaced the relevant FFmpeg DLLs in the UTV dependencies folder and launched OpenUTV with:

    OPENUTV_HWACCEL=cuda
    UTV_HWACCEL=cuda
    

    The playback log now confirms:

    INFO: Using cuda hardware acceleration for 'hevc' decoding.
    

    The file plays well, and GPU video decoding is active.

    So there appear to be two separate things worth investigating on Windows:

    1. The FFmpeg build provided through my dependency setup doesn't include NVIDIA CUDA/CUVID support, although D3D11VA does work.
    2. Hardware acceleration was set to none by default. Manually selecting a supported backend allowed hardware decoding to work.

    I'm not sure whether the none setting is intentional, whether the application should automatically select a supported hardware decoder, or whether both environment variables are necessary.

    Hopefully this helps narrow things down. I can provide the original and working playback logs if useful!

  7. mcoliver commented on Oct 13, 2026

    @mcoliver
    Collaborator

    AMAZING FEEDBACK! Thank you! It most definitely should select the hardware acceleration and nvenc/nvdec should be shipping with the default ffmpeg. We want UTV to be intelligent and take advantage of any and all hardware it can to provide an optimal experience.

    These things slipped through because our ci/cd environment does not have a nvidia gpu, and the majority of my testing is done on vm's that also lack nvidia gpus. So thank you very much for the real world feedback here.

    I took a quick look at the 26.5 dependency build and you are right, I misread vcpkg features and failed to include the all feature which includes the nvcodec among other things (I thought the ffmpeg feature included those things by default).

    I have kicked off a new build of the dependencies 26.6 which will take a couple hours to build but should hopefully resolve this going forward.

    Will also verify the search order on windows and env settings to ensure they are optimal. I should probably also figure out the UX to notify users who have nvidia / amd gpus if for some reason hwaccelleration is not running. Ideally that would never happen but perhaps there could be situations where it does.

    Thanks again!

  8. jimhourihan commented on Oct 13, 2026

    @jimhourihan
    Contributor

    Michael, I think there's possibly a better solution to these cache issues than turning off the cache-- at least with hardware decoding. In the HW decode case, if the FBs returned from the reader plugins had an attribute whose value was some kind of token indicating that the pixels are already controlled by the GPU (and they were never brought back) it would be marked as "cached" but the pixels would not be present (takes no time/memory).

    In the rare case that the pixels are needed on the CPU side they could be downloaded lazily. In 2027 there's basically no reason that will happen unless you're running it on a RPi or something.

    Correct me if I'm wrong about what's going on here.

    -Jim
    
  9. mcoliver commented on Oct 13, 2026

    @mcoliver
    Collaborator

    Thanks again for digging into this. Your findings led us to two fixes, both now in the development build, and one question.

    1. NVIDIA, AMD and Intel decoding in the Windows dependencies. OpenUTV Dependencies 26.6 includes FFmpeg's NVIDIA (cuda/NVDEC), AMD (AMF) and Intel (QSV) support, and the development build requires it (#125). FFmpeg loads the NVIDIA and AMD libraries from your GPU driver, so no CUDA toolkit is needed. FFmpeg is still 9.0.1, so the DLL names don't change, which is why swapping the DLLs into your install worked.

    2. Software decoding was using one CPU core for HEVC. While looking into this we found a second cause, which also explains why OpenRV 1.0 played the clip better on the same machine. OpenUTV was telling FFmpeg to use slice threading only. Most camera HEVC and H.264 files have one slice per frame, so the decode ran on a single core. #121 switches software H.264, HEVC, VP9 and AV1 decoding to frame threading, as OpenRV does. On a Mac with hardware decoding turned off, your DJI 4K60 clip went from about 23 fps to about 40 fps. This matters whenever the GPU can't decode a file.

    #121 also logs why a file is decoded on the CPU, once per codec, so this is easier to spot next time. For example:

    INFO: Decoding 'hevc' on the CPU: hardware decoding is turned off in Preferences > Caching.
    INFO: Decoding 'hevc' on the CPU: no hardware decoder could be opened for it (this FFmpeg build has dxva2, d3d11va, d3d12va).
    

    A question about the none setting. OpenUTV picks the hardware decoder automatically by default. On Windows it tries cuda, then d3d11va, dxva2 and qsv, so with your 26.5 dependencies it should have chosen d3d11va without any environment variables. OpenUTV only sets UTV_HWACCEL=none when Preferences > Caching > Hardware Video Decoding is set to Disabled (Software CPU), and that setting is saved between sessions. Could you check what that's set to? If it shows Disabled, we'd like to know whether you remember changing it, so we can tell whether something else set it.

    To try it, install the development build, which also installs OpenUTV Dependencies 26.6:

    & ([scriptblock]::Create((irm https://openutv.com/install.ps1))) -Version dev-build

    Then:

    1. Clear UTV_HWACCEL and OPENUTV_HWACCEL. The DLLs you copied are in the 26.5 dependencies folder, which the development build no longer uses.
    2. Set the preference above to Auto (All Supported Codecs) and play the DJI clip.
    3. Check the log for Using cuda hardware acceleration for 'hevc' decoding. and Task Manager for GPU Video Decode activity.

    None of our test machines have an NVIDIA or AMD GPU, so your results would be the first real check of this. Thank you!

  10. SR2610 commented on Oct 14, 2026

    @SR2610
    Author

    Good news! I've managed to get everything working with the development build.

    I deleted my existing dependencies folder and let OpenUTV reinstall the dependencies from scratch. This resolved the FFmpeg plugin loading issue, and the original DJI HEVC 4K60 clip now opens and plays successfully.

    The log confirms:

    INFO: Using cuda hardware acceleration for 'hevc' decoding.
    

    Playback is now running at a consistent 60 fps, and I've confirmed GPU Video Decode activity in Windows Task Manager. So NVIDIA CUDA hardware decoding appears to be working correctly with the updated dependencies!

    Regarding the original hardware decoding preference, it was initially set to Auto, but I manually changed it to Disabled (Software CPU) during the early troubleshooting. However, I'm not entirely sure whether I changed it back to Auto afterwards, so it's possible I left it on Disabled without realising.

    I also cleared both UTV_HWACCEL and OPENUTV_HWACCEL before launching. They still appear as all in the application log, presumably because OpenUTV sets them internally when Auto decoding is selected.

    Thanks for looking into this and getting the fixes implemented!

  11. mcoliver commented on Oct 16, 2026

    @mcoliver
    Collaborator

    Thanks again for testing the development build. Both Windows decoding fixes are now in OpenUTV 2026.14:

    Could you install 2026.14 and check that the DJI 4K60 HEVC clip still plays at 60 fps with Hardware Decoding set to Auto? To install, run the usual command in PowerShell; it installs Dependencies 26.6 if needed:

    irm https://openutv.com/install.ps1 | iex

    If you still have the original H.264/HEVC test file from your first report, a quick check of that would help too.

    On UTV_HWACCEL and OPENUTV_HWACCEL showing all in the log: you're right, UTV sets them itself when Hardware Decoding is Auto, so that's expected.

    If everything plays as it did with the development build, I'll close this issue. Thanks for all the detailed testing, it found two real bugs.

  12. mcoliver commented on Oct 16, 2026

    @mcoliver
    Collaborator

    13. Michael, I think there's possibly a better solution to these cache issues than turning off the cache-- at least with hardware decoding. In the HW decode case, if the FBs returned from the reader plugins had an attribute whose value was some kind of token indicating that the pixels are already controlled by the GPU (and they were never brought back) it would be marked as "cached" but the pixels would not be present (takes no time/memory).
    In the rare case that the pixels are needed on the CPU side they could be downloaded lazily. In 2027 there's basically no reason that will happen unless you're running it on a RPi or something.
    Correct me if I'm wrong about what's going on here.
    -Jim

    Hey Jim, apologies for not responding. You're not wrong and this is something that could be an improvement. However for this particular issue it was the lack of nvcodec support in ffmpeg coupled with poorly crafted auto cache logic on my end. I'll move your comment ot a new issue for investigation.

  13. SR2610 commented on Oct 20, 2026

    @SR2610
    Author

    Sorry for the delay, I've tested that new release with the original problem file and it plays perfectly, thank you so much for sorting it!

    As a bonus, UTV can now play a 8k60 video file smoothly which our original build of OpenRV was unable to do!

    I'm happy for this issue to be closed from my perspective.

  14. mcoliver commented on Oct 21, 2026

    @mcoliver
    Collaborator

    Awesome! Glad to hear it and thank you again so much for the detailed bug report and healthy discussion. Really really appreciate you helping make UTV better for everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions