Forwarding ffmpeg output to deepstreams

I am using ffmpeg to capture video in live real time and forward the decoded frames to deep stream (gstreamer),. There are several reason why I want to use the ffmpeg to pull the video and decode it so using the gstreamer decoder isnt an option.
One way that I had in mind is: Ffmpeg pulls the video , decode it and write it as jpgs to folder, in simultanously run the gstreamer in a mode that it reads the jpg from the folder and forward it to deepstream infer. This will require me to implement custom plugin. Is there a non custom way to forward the frames from ffmpeg to gstreamer?