mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 07:06:57 +08:00
feat: 支持音频转码
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
package transcode
|
||||
|
||||
import (
|
||||
"github.com/lkmio/avformat"
|
||||
"github.com/lkmio/avformat/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
CreateAudioTranscoder func(src *avformat.AVStream, dst []utils.AVCodecID) (Transcoder, *avformat.AVStream, error)
|
||||
)
|
||||
|
||||
type Transcoder interface {
|
||||
Transcode(src *avformat.AVPacket, cb func([]byte, int)) (int, error)
|
||||
|
||||
GetEncoderID() utils.AVCodecID
|
||||
|
||||
Close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user