This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

MFDIN TRT Crash
#1
Hello,
When using the Vapoursynth deinterlacer MFDIN with the TRT=True option, Hybrid crashes already at the vspipe stage without outputting a single frame, and the next line in the log shows the encoder error:

x264 [error]: could not open input file `-`

If you disable TRT mode in the Hybrid GUI (TRT=False) or choose any other deinterlacer (e.g., QTGMC), everything works normally. Regardless of whether TRT is enabled or not, the preview always functions correctly but operates very slowly, at approximately 4–5 FPS.
Could the issue be related to launching Torch-TensorRT within MFDIN? Is it possible that the required versions of TensorRT or torch-tensorrt are missing, or that vspipe crashes due to internal plugin errors?

In the archive, I enclose a video clip demonstrating the issue, along with HybridDebugOutput.txt and Report.txt
Archive

I am using an RTX 5080 GPU with driver version 576.28
Hybrid_dev_2025.05.03-203037
Reply
#2
Normally, if the preview works, so should the encoding.
Debug output only shows that there is some issue with the script.
(so I'm surprised that the preview works)
Might be that MFBIN outputs some stuff to stdout which it should not.
=> will look into it.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
Does adding:
import logging
import sys
logging.StreamHandler(sys.stderr)
in a custom section, fix the problem?
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#4
No
   
   


Attached Files
.txt   HybridDebugOutput.txt (Size: 72,68 KB / Downloads: 1)
Reply
#5
I can reproduce the problem.
Problem seems to be that:
[05/04/2025-20:50:55] [TRT] [W] Functionality provided through tensorrt.plugin module is experimental.
is output to stdout instead of stderr.

=> see https://github.com/vapoursynth/vapoursynth/issues/1120
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#6
Replacing the VSPIPE.exe with the one from:
https://github.com/vapoursynth/vapoursyn...2791015549

Fixes the problem.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#7
I really appreciate it, your fix solved my issue.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)