mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.8k stars 581 forks source link

How to define customized file video capturer? #627

Closed cyclizationz closed 1 month ago

cyclizationz commented 9 months ago

I want to carry out some pre-processing on the captured frame in the video capture. However, I am not sure where the frame is constructed.

Can I use the onData() function in livevideosource.h, line104? If that works and the video is H264 coded, at which line is the frame data first captured and I can cast operations?

mpromonet commented 9 months ago

Hi,

onData is the callback of RTSPConnection, it is called when data should be processed, it contains coded frame.

Best Regards, Michel.