feat(webp): add WebP streaming and snapshot APIs

- implement WebP streaming with multipart support
- add snapshot endpoint for WebP format with quality options
- introduce WebP encoding using pure Go library without FFmpeg
- update documentation and links for new WebP features
This commit is contained in:
Sergey Krashevich
2026-03-10 21:37:29 +03:00
parent beb96dd076
commit ea03aa832d
14 changed files with 641 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
package webp
import (
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/mjpeg"
)
// RTPDepay depayloads RTP/JPEG packets and converts the resulting JPEG frame to WebP.
func RTPDepay(handler core.HandlerFunc) core.HandlerFunc {
return mjpeg.RTPDepay(JPEGToWebP(handler))
}