mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-27 03:26:01 +08:00
19 lines
362 B
Go
19 lines
362 B
Go
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()
|
|
}
|