VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    I have a script with approx. 100 lines doing ReplaceFrameRIFE:

    Code:
    function ReplaceFrameRIFE(clip Source, int N, int "X")
    {
      # N is number of the 1st frame in Source that needs replacing. 
      # X is total number of frames to replace
      # e.g. ReplaceFrameRIFE(101, 5) would replace 101,102,103,104,105 , by using 100 and 106 as reference points for interpolation
      #
      # requires RGB24, RIFE with model 9 (v4)
    
      Trim(Source, N-1, 1)+Trim(Source, N+X, 1)
      Rife(gpu_thread=1, model=9, factor_num=X+1, factor_den=1, sc=false) # model 9 needed for custom factor/rate
      AssumeFPS(Source.FrameRateNumerator, Source.FrameRateDenominator)
      Trim(1,X)
    #Subtitle("RIFE", align=5) "" # optional label to verify replacement
    
      Source.trim(0,N-1) ++ last ++ Source.trim(N+X,0)
    }

    Unfortunately, it generates the error as title in both Vdub and ffmpeg:

    Code:
    [0 AMD Radeon(TM) Graphics] queueC=1[2] queueG=0[1] queueT=2[1]
    [0 AMD Radeon(TM) Graphics] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
    [0 AMD Radeon(TM) Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
    [0 AMD Radeon(TM) Graphics] subgroup=64 basic=1 vote=1 ballot=1 shuffle=1
    vkAllocateMemory failed -2
    [avisynth @ 00000181a4c8a3c0] System exception - Access Violation
    (C:/Program Files (x86)/AviSynth+/plugins64+/ReplaceFrameRIFE.avsi, line 10)  <-- indicates a call to RIFE in ReplaceFrameRIFE
    (avs-rife (after neat).avs, line 57)
    [in#0 @ 00000181a4c8a280] Error opening input: Unknown error occurred
    Error opening input file avs-rife (after neat).avs.
    Error opening input files: Unknown error occurred
    I suspect memory allocation issues or some problems with RIFE&GPU.
    Is there any way to force the script to execute itself?
    Sometimes the file will load into VDub/ffmpeg and recode goes, but then it crashes early and VDub just closes.
    Same when trying to play in MPC.

    Edit: latest Adrenaline drivers.
    Last edited by rgr; 9th Aug 2023 at 08:58.
    Quote Quote  
  2. Originally Posted by rgr View Post
    I suspect memory allocation issues or some problems with RIFE&GPU.
    Yes - with multiple calls, it does not seem to release GPU memory properly

    Is there any way to force the script to execute itself?
    Divide and conquer. Figure out how many entries you can do with your GPU memory, divide up the script
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!