sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
414 stars 94 forks source link

Have any plan support sending H264 stream to server by rtmp/rtsp? #195

Closed Riton2013 closed 2 years ago

Riton2013 commented 2 years ago

I am trying to send H264 stream to server but failed, it can't be player after sending. Maybe I did wrong with video format? I get 3 kinds of buffer, one of them is fixed 8-byte length, and others I guess they are video and audio. It take me a lot of time.

sskodje commented 2 years ago

I don't have any plans for that in the immediate future, but I made a small demo project on how to remux to FLV and send to a RTMP server with FFMPEG you can check out here: https://github.com/sskodje/ScreenRecorderLib/tree/streaming_demo/TestConsoleAppStreaming

Riton2013 commented 2 years ago

Doing test all day yesterday, FFMPEG is not good enough, delay 2 seconds at begin, 2 hour later(keep pushing data), delay 7 seconds. I try to compare with OBS, obs is good. Anyway, very very very thanks for your help!!