Topic: RIFE for M1 Mac stopped working

Hey guys,

The RIFE profile stopped working for me when I updated to Sonoma. It keeps throwing the following errors:

06:19:28.538 [W]: FrameControl: invalid monitor ID passed -1
06:19:46.551 [E]: Playback [287694b9]: VS - Script evaluation failed:
06:19:46.551 [E]: Playback [287694b9]: VS - Python exception: 'utf-8' codec can't decode byte 0xe5 in position 7: invalid continuation byte
06:19:46.551 [E]: Playback [287694b9]: VS - Traceback (most recent call last):
06:19:46.551 [E]: Playback [287694b9]: VS - File 'src/cython/vapoursynth.pyx', line 3365, in vapoursynth._vpy_evaluate
06:19:46.551 [E]: Playback [287694b9]: VS - File 'src/cython/vapoursynth.pyx', line 3366, in vapoursynth._vpy_evaluate
06:19:46.551 [E]: Playback [287694b9]: VS - File '/Users/inpowered/Library/Application Support/SVP4/scripts/287694b9.py', line 72, in <module>
06:19:46.552 [E]: Playback [287694b9]: VS - smooth = interpolate(clip)
06:19:46.552 [E]: Playback [287694b9]: VS - ^^^^^^^^^^^^^^^^^
06:19:46.552 [E]: Playback [287694b9]: VS - File '/Users/inpowered/Library/Application Support/SVP4/scripts/287694b9.py', line 53, in interpolate
06:19:46.552 [E]: Playback [287694b9]: VS - smooth = core.rife.RIFE(input_m,factor_num=rife_num,factor_den=rife_den,model_path=rife_mpath,gpu_id=rife_gpu,gpu_thread=rife_threads,tta=False,sc=True)
06:19:46.552 [E]: Playback [287694b9]: VS - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
06:19:46.552 [E]: Playback [287694b9]: VS - File 'src/cython/vapoursynth.pyx', line 3101, in vapoursynth.Function.__call__
06:19:46.552 [E]: Playback [287694b9]: VS - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 7: invalid continuation byte
06:19:46.552 [E]: Playback [287694b9]: VS - could not init VS
06:23:05.621 [E]: Playback [287694b9]: VS - Script evaluation failed:
06:23:05.622 [E]: Playback [287694b9]: VS - Python exception: 'utf-8' codec can't decode byte 0xa0 in position 6: invalid start byte
06:23:32.687 [E]: Playback [287694b9]: VS - Traceback (most recent call last):
06:23:32.687 [E]: Playback [287694b9]: VS - File 'src/cython/vapoursynth.pyx', line 3365, in vapoursynth._vpy_evaluate
06:23:32.687 [E]: Playback [287694b9]: VS - File 'src/cython/vapoursynth.pyx', line 3366, in vapoursynth._vpy_evaluate
06:23:32.687 [E]: Playback [287694b9]: VS - File '/Users/inpowered/Library/Application Support/SVP4/scripts/287694b9.py', line 72, in <module>
06:23:32.687 [E]: Playback [287694b9]: VS - smooth = interpolate(clip)
06:23:32.687 [E]: Playback [287694b9]: VS - ^^^^^^^^^^^^^^^^^
06:23:32.687 [E]: Playback [287694b9]: VS - File '/Users/inpowered/Library/Application Support/SVP4/scripts/287694b9.py', line 53, in interpolate
06:23:32.687 [E]: Playback [287694b9]: VS - smooth = core.rife.RIFE(input_m,factor_num=rife_num,factor_den=rife_den,model_path=rife_mpath,gpu_id=rife_gpu,gpu_thread=rife_threads,tta=False,sc=True)
06:23:32.687 [E]: Playback [287694b9]: VS - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
06:23:32.687 [E]: Playback [287694b9]: VS - File 'src/cython/vapoursynth.pyx', line 3101, in vapoursynth.Function.__call__
06:23:32.687 [E]: Playback [287694b9]: VS - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 6: invalid start byte
06:23:32.687 [E]: Playback [287694b9]: VS - could not init VS
06:23:42.285 [E]: Playback [287694b9]: VS - Script evaluation failed:
06:23:42.287 [E]: Playback [287694b9]: VS - Python exception: 'utf-8' codec can't decode byte 0x8c in position 7: invalid start byte
06:23:42.287 [E]: Playback [287694b9]: VS - Traceback (most recent call last):
06:23:42.287 [E]: Playback [287694b9]: VS - File 'src/cython/vapoursynth.pyx', line 3365, in vapoursynth._vpy_evaluate
06:23:42.289 [E]: Playback [287694b9]: VS - File 'src/cython/vapoursynth.pyx', line 3366, in vapoursynth._vpy_evaluate
06:23:42.289 [E]: Playback [287694b9]: VS - File '/Users/inpowered/Library/Application Support/SVP4/scripts/287694b9.py', line 72, in <module>
06:23:42.290 [E]: Playback [287694b9]: VS - smooth = interpolate(clip)

Any ideas as to what may be failing here? Thanks So much!

Re: RIFE for M1 Mac stopped working

you probably have to update Homebrew as well

Re: RIFE for M1 Mac stopped working

The RIFE profile stopped working for me too on my mac
have updated homebrew to the latest

Re: RIFE for M1 Mac stopped working

Add me as another SVP4/mpv user who is hitting VS errors related to starting VS on a Mac (2019 MacBook Pro, i9, i630, OSX 15.3.1).  I have built VapourSynth and mpv on my machine from the latest source.  In fact, viewing an MKV with mpv, the SVP control panel actually shows that the playback frame rate is 3x, as specified.

But I keep hitting invocation errors that I cannot find replicated through fairly exhaustive web-searching.  No matter how many times I rebuild and reinstall VS, I keep hitting these errors:

13:11:53.819 [eye]: Playback: starting up...
13:11:53.826 [eye]: Playback [bfe5b793]: resulting video frame 1920x1080
13:11:53.826 [eye]: Playback [bfe5b793]: 4 acceptible profiles, best is 'Copy of RIFE AI engine' [0]
13:11:53.828 [eye]: Playback [bfe5b793]: enabled while video is playing
13:11:53.832 [eye]: Playback [bfe5b793]: playing at 71.928 [23.976 *3/1] /10 bit
13:11:54.420 [W]: FrameControl: invalid monitor ID passed -1
13:11:55.701 [eye]: Playback [bfe5b793]: full screen mode deactivated
13:11:55.748 [eye]: Playback [bfe5b793]: playing at 71.928 [23.976 *3/1] /10 bit
13:12:01.748 [E]: Playback [bfe5b793]: VS - Script evaluation failed:
13:12:01.748 [E]: Playback [bfe5b793]: VS - Python exception: RIFE: failed to create GPU instance
13:12:01.748 [E]: Playback [bfe5b793]: VS - Traceback (most recent call last):
13:12:01.748 [E]: Playback [bfe5b793]: VS - File 'src/cython/vapoursynth.pyx', line 3387, in vapoursynth._vpy_evaluate
13:12:01.748 [E]: Playback [bfe5b793]: VS - File 'src/cython/vapoursynth.pyx', line 3388, in vapoursynth._vpy_evaluate
13:12:01.748 [E]: Playback [bfe5b793]: VS - File '/Users/wab/Library/Application Support/SVP4/scripts/bfe5b793.py', line 76, in <module>
13:12:01.748 [E]: Playback [bfe5b793]: VS - smooth = interpolate(clip)
13:12:01.748 [E]: Playback [bfe5b793]: VS - ^^^^^^^^^^^^^^^^^
13:12:01.749 [E]: Playback [bfe5b793]: VS - File '/Users/wab/Library/Application Support/SVP4/scripts/bfe5b793.py', line 57, in interpolate
13:12:01.749 [E]: Playback [bfe5b793]: VS - smooth = core.rife.RIFE(input_rife,factor_num=rife_num,factor_den=rife_den,model_path=rife_mpath,gpu_id=rife_gpu,gpu_thread=rife_threads,tta=False,sc=False)
13:12:01.749 [E]: Playback [bfe5b793]: VS - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13:12:01.749 [E]: Playback [bfe5b793]: VS - File 'src/cython/vapoursynth.pyx', line 3123, in vapoursynth.Function.__call__
13:12:01.749 [E]: Playback [bfe5b793]: VS - vapoursynth.Error: RIFE: failed to create GPU instance
13:12:01.749 [E]: Playback [bfe5b793]: VS - could not init VS

For the first invocation error, "13:11:54.420 [W]: FrameControl: invalid monitor ID passed -1”, I can find no references to monitor ID’s in any of the VS docs.  I can find no references to “FrameControl” errors at all.  I have no clue, therefore, as to the relevant details.

For the second invocation error, "VS - Python exception: RIFE: failed to create GPU instance”, the root issue seems to be start-up Python scripting errors much like previous ones described in this thread.  Same errors when invoking any of the three standard RIFE AI models.  it looks very much as if I have VS configured to look for various Python scripts along the wrong path, but I have invoked and exported all the relevant shell variables multiple times.  The web search 'vapoursynth "RIFE: failed to create GPU instance”’ returns one hit to a Russian-language page.

Yes, I upgraded homebrew itself as well.

Re: RIFE for M1 Mac stopped working

RIFE definitely won't run on a i630 graphics

6 (edited by mashennik322 03-03-2025 21:56:18)

Re: RIFE for M1 Mac stopped working

Hi! I’m new to SVP (RIFE AI engine) and don’t fully understand all the settings yet. I’m experiencing an issue when trying to interpolate a video.

I keep getting this error in SVP:

23:25:05.499: ===== Starting mpv ======
23:25:05.499: Command line: /opt/homebrew/bin/mpv /Users/.../Downloads/manofsteel.mp4 --o=/Users/.../Downloads/manofsteel.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=/tmp/mpvencodesocket --input-media-keys=no --no-msg-color --video-crop=0x0+0+0 --vf=vapoursynth:/Users/.../Library/Application Support/SVP4/scripts/ffff.py:4:11 --of=matroska --ovc=h264_videotoolbox --ovcopts=b=60817598,profile=high,threads=11
23:25:05.757: ● Video --vid=1 (h264 3840x2160 23.9433 fps) [default]
23:25:05.757: ○ Audio --aid=1 (aac 2ch 48000 Hz 320 kbps) [default]
23:25:05.900: [0 Apple M3 Pro] queueC=0[1] queueG=0[1] queueT=0[1]
23:25:05.900: [0 Apple M3 Pro] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
23:25:05.900: [0 Apple M3 Pro] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
23:25:05.900: [0 Apple M3 Pro] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
23:25:05.903: [vapoursynth] Script evaluation failed:
23:25:05.903: [vapoursynth] Python exception: 'utf-8' codec can't decode byte 0xa9 in position 10: invalid start byte
23:25:05.903: [vapoursynth]
23:25:05.903: [vapoursynth] Traceback (most recent call last):
23:25:05.903: [vapoursynth] File "src/cython/vapoursynth.pyx", line 3387, in vapoursynth._vpy_evaluate
23:25:05.903: [vapoursynth] File "src/cython/vapoursynth.pyx", line 3388, in vapoursynth._vpy_evaluate
23:25:05.903: [vapoursynth] File "/Users/.../Library/Application Support/SVP4/scripts/ffff.py", line 76, in <module>
23:25:05.903: [vapoursynth] smooth = interpolate(clip)
23:25:05.903: [vapoursynth] File "/Users/.../Library/Application Support/SVP4/scripts/ffff.py", line 57, in interpolate
23:25:05.903: [vapoursynth] smooth = core.rife.RIFE(input_rife,factor_num=rife_num,factor_den=rife_den,model_path=rife_mpath,gpu_id=rife_gpu,gpu_thread=rife_threads,tta=False,sc=False)
23:25:05.903: [vapoursynth] File "src/cython/vapoursynth.pyx", line 3123, in vapoursynth.Function.__call__
23:25:05.903: [vapoursynth] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 10: invalid start byte
23:25:05.903: [vapoursynth]
23:25:05.910: (!!!) Intermediate file may be broken: /Users/.../Downloads/manofsteel.SVP.temporary.mkv
23:25:05.910: ===== mpv exited with code 9 =====

I’m using a MacBook with an Apple M3 Pro chip MacOS 15.3.1, mpv is installed via Homebrew, and Vapoursynth is also installed. In SVP, I’m using videotoolbox for encoding.

Re: RIFE for M1 Mac stopped working

do not set RIFE threads count to more than 1