kingecg
|
fd53f97770
|
feat: add Media Stream Reader high-level API
Add stream package providing StreamReader interface for reading media
streams from URLs (rtsp/http/https/ws) or io.Reader with optional
transcoding support.
- pkg/ffmpeg/stream/reader.go: Core StreamReader implementation
- pkg/ffmpeg/stream/options.go: TranscodeOptions configuration
- pkg/ffmpeg/stream/mediaInfo.go: MediaInfo and StreamInfo structs
- pkg/ffmpeg/stream/pipe.go: io.Reader to FFmpeg bridge
- pkg/ffmpeg/stream/errors.go: Error definitions
- pkg/ffmpeg/stream/helpers.go: Codec/format name converters
- pkg/ffmpeg/cgo.go: Add Duration/StartTime/BitRate/ChannelLayout methods
- examples/stream-reader/: Example demonstrating usage
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-21 07:48:45 +08:00 |