n00mkrad / flowframes

Flowframes Windows GUI for video interpolation using DAIN (NCNN) or RIFE (CUDA/NCNN)
GNU General Public License v3.0
1.52k stars 117 forks source link

1.40 Rife 4.6 does not work with GIF format #213

Closed marmosetjones closed 1 year ago

marmosetjones commented 1 year ago

Rife 4.6 does not work with GIF format in the 1.40 release. The error I receive is: Unhandled Thread Exception!

Sequence contains no elements

Stack Trace: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at Flowframes.Interpolate.d10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Flowframes.Interpolate.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Flowframes.Form1.d__40.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

n00mkrad commented 1 year ago

GIF Format as input or output, or both?

marmosetjones commented 1 year ago

Output.

n00mkrad commented 1 year ago

Cannot reproduce, please post your full settings

marmosetjones commented 1 year ago

image image image image image image image -pix_fmt yuv420p -vf scale=out_color_matrix=bt709 -colorspace bt709 -color_primaries bt709 -color_trc bt709 is used for the gif as well under additional (Output) arguments.

n00mkrad commented 1 year ago

GIF does not support those args, it's not a YUV format

marmosetjones commented 1 year ago

It doesn't work even if I don't have any of that in the dev options.

marmosetjones commented 1 year ago

Unhandled Thread Exception!

Sequence contains no elements

Stack Trace: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at Flowframes.Interpolate.d10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Flowframes.Interpolate.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Flowframes.Form1.d__40.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

The error has been copied to the clipboard. Please inform the developer about this.

The format I'm trying to use is PNG. I've tried it with JPEG as well and neither work.

n00mkrad commented 1 year ago

First of all, use RIFE NCNN VS

marmosetjones commented 1 year ago

Thought cuda was for nvidia cards.

n00mkrad commented 1 year ago

Thought cuda was for nvidia cards.

NCNN is faster and can be used without having to write the frames to disk first.

marmosetjones commented 1 year ago

I'll give it a go later on to night when I get off work. Ty.

marmosetjones commented 1 year ago

image Got this when I used NCNN/VS I'm using all default settings except for not deleting the interpolations after it finishes. Nothing in additional (Output) arguments. Here's the log ffmpeg.txt Here are the settings I'm using from the interpolation menu image

marmosetjones commented 1 year ago

Also when using NCNN/VS for mp4 interpolated frames are deleted regardless of settings.

n00mkrad commented 1 year ago

I see. Can reproduce

n00mkrad commented 1 year ago

Also when using NCNN/VS for mp4 interpolated frames are deleted regardless of settings.

VS does not produce any interpolated frames

n00mkrad commented 1 year ago

https://github.com/n00mkrad/flowframes/commit/693a2471d1e9f6362f0964ed33ddfa46f6f2a2c1

Fixed in next update

marmosetjones commented 1 year ago

Could you please release the fix? I've been waiting over a month for it now. Side note, if you did release the fix it didn't work.