goffmpeg/pkg/ffmpeg
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
..
stream feat: add Media Stream Reader high-level API 2026-03-21 07:48:45 +08:00
cgo.go feat: add Media Stream Reader high-level API 2026-03-21 07:48:45 +08:00
codec.go Add .gitignore, enhance build script output, and implement codec context methods 2026-03-20 21:48:53 +08:00
errors.go Initial FFmpeg CGO bindings library structure 2026-03-20 21:02:47 +08:00
ffmpeg.go Add .gitignore, enhance build script output, and implement codec context methods 2026-03-20 21:48:53 +08:00
frame.go Initial FFmpeg CGO bindings library structure 2026-03-20 21:02:47 +08:00
packet.go Initial FFmpeg CGO bindings library structure 2026-03-20 21:02:47 +08:00