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
kingecg
0aaff1b28f
```
...
chore(project): 添加MIT许可证文件
向项目中添加完整的MIT许可证文本,明确版权归属和使用条款,
为goffmpeg项目提供法律保护和开源许可说明。
```
2026-03-20 21:55:00 +08:00
kingecg
b938e3ac5f
```
...
feat: 添加 goffmpeg 项目的 README 文档
新增完整的项目说明文档,包含以下内容:
- 项目简介和系统依赖说明
- 详细的项目结构介绍
- 构建方法和使用示例
- API 概览,包括 FormatContext、OutputFormatContext、Stream、
CodecParameters、Context、Packet、Frame 等核心组件的接口说明
- 使用注意事项和许可证信息
```
2026-03-20 21:53:09 +08:00
kingecg
03039dec91
Remove simple-transcode example binary
2026-03-20 21:49:56 +08:00
kingecg
387ecc992a
Add .gitignore, enhance build script output, and implement codec context methods
2026-03-20 21:48:53 +08:00
kingecg
3fdc475316
添加构建脚本
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 21:12:45 +08:00
kingecg
8a258d8b60
Initial FFmpeg CGO bindings library structure
...
- Add CGO configuration with pkg-config for FFmpeg libraries
- Implement FormatContext for input/output operations
- Add Stream and CodecParameters wrappers
- Implement Codec/Context with encode/decode API
- Add Frame and Packet wrappers for media data
- Include error types and FFmpegError
- Add CLI tool and simple-transcode example
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 21:02:47 +08:00
kingecg
3b0dbf6014
first
2026-03-20 20:45:13 +08:00