Is there a way to convert a UMediaTexture to a UTexture2D?

Hi, I’m new to unreal and I’m trying to get a thumbnail image from a video. I think it would be good if I could get a frame from the video and create a UTexture2D from it. Is it possible? I couldn’t find an answer to this question anywhere