ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

read/write to ffmpeg without closing stdin?????

Open Dragon-Batch opened this issue 3 years ago • 0 comments

I am trying to create a remote controll app for my computer/school computer so i can play games and for this i need to have a decent fps. my internet is good but its not so good where you can send 1gb files in a microsecond.

i am using dxcam to get frames of my screen in numpy array output and im wondering if i can somehow call ffmpeg and write these frames into it and read the output imediatly without closing the stdin.

because i have to close stdin i have to create another process of ffmpeg over and over again to convert a frame into a encoded data (that is realy small).

if i was to just send the numpy array in bytes it would mean sending like 5mb of data every frame.

how can i convert frames into 264 encoded data and vice versa.

Dragon-Batch avatar Nov 11 '22 05:11 Dragon-Batch