“Fake” DirectShow video capture device

前端 未结 4 1550
遇见更好的自我
遇见更好的自我 2020-12-10 07:52

This is tangential to the last few questions I\'ve asked.

I need to get video from an IP webcam (SNC-RZ25N) to Flash Media Server. I\'d rather not have to use Window

相关标签:
4条回答
  • 2020-12-10 08:32

    Roman's "IP Video source" directshow relay may do the job: http://alax.info/blog/1223

    Also if you want to write you own, you could base off https://github.com/rdp/screen-capture-recorder-to-video-windows-free it overcomes one bug vivek's has with flash player: http://social.msdn.microsoft.com/Forums/en/windowsdirectshowdevelopment/thread/e02d7ac9-5dfe-4f9d-8ce5-4bb73badb6ed

    So basically you need to implement IAMStreamConfig, and IKsProperty set in the pin, pass IKsProperty queries down to the pin, and specify PIN_CATEGORY_CAPTURE I guess, maybe some of that you don't need...

    0 讨论(0)
  • Use the "vivek directshow capture filter". It is what you basically need. Of course this is a very basic sample code. In order your code to work with Flash Player, you need to implement all neccessary methods like SetFormat/SetMediaType and since DirectShow is rather non friendly interface, you'll spend some time on it.

    0 讨论(0)
  • 2020-12-10 08:43

    You may also want to look at Wowza Media Server, as it is much friendlier with input devices (supports RTP/RTSP/MPEG-TS H.264/AAC ingest). http://www.wowzamedia.com

    0 讨论(0)
  • 2020-12-10 08:50

    It's really not that hard to turn a DirectShow source filter into a capture device. You need to register the filter in the right category, and implement IKsProperty to report the right category on the output pin.

    Take a look at Vivek's capture source filter example at http://tmhare.mvps.org/downloads.htm

    G

    0 讨论(0)
提交回复
热议问题