Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th November 2025, 20:47   #1  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 419
VSEdit - cuFFT issue

When a script using vs-dfttest2 with the cuFFT backend is reloaded in VSEdit (or when closing the editor), VapourSynth throws:

setVideoInfo: The VSVideoFormat pointer passed by DFTTest was not obtained from registerFormat() or getFormatPreset()

Conditions

Happens only on script reload or editor exit, not during normal encoding.

Only occurs when DFTTest2() is used with Backend.cuFFT().

The crash occurs even if the clip formats are unchanged and all processing is valid.

Any throughts?
Cary Knoop is offline   Reply With Quote
Old 9th November 2025, 04:38   #2  |  Link
WolframRhodium
Registered User
 
Join Date: Jan 2016
Posts: 172
I'm sorry. What's the cideo format of the source?
WolframRhodium is offline   Reply With Quote
Old 9th November 2025, 07:22   #3  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 419
Quote:
Originally Posted by WolframRhodium View Post
I'm sorry. What's the cideo format of the source?
Source is a float 32 GRAY plane.
Cary Knoop is offline   Reply With Quote
Old 9th November 2025, 08:34   #4  |  Link
WolframRhodium
Registered User
 
Join Date: Jan 2016
Posts: 172
Sorry but I can't reproduce the issue.
WolframRhodium is offline   Reply With Quote
Old 13th November 2025, 04:33   #5  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 419
I tried this but that did not make the problem go away:

Code:
try:
    from dfttest2 import DFTTest as DFTTest2, Backend
    
    # Create once, reuse forever
    _DFTTEST_BACKEND = None
    def get_dfttest_backend():
        global _DFTTEST_BACKEND
        if _DFTTEST_BACKEND is None:
            _DFTTEST_BACKEND = Backend.cuFFT(device_id=0, in_place=True)
        return _DFTTEST_BACKEND
    
    _DFTTEST_BACKEND = get_dfttest_backend()
except ImportError:
    raise RuntimeError("PMOyster Error: dfttest2 not found.")
Cary Knoop is offline   Reply With Quote
Old 13th November 2025, 09:17   #6  |  Link
WolframRhodium
Registered User
 
Join Date: Jan 2016
Posts: 172
This is expected because the Python code doesn't change the logic at the underlying C API level.
WolframRhodium is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:21.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.