chore: Changing package namespace
This commit is contained in:
parent
b84505600f
commit
56489a0866
@ -5,10 +5,10 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
"github.com/deepch/vdk/av/pktque"
|
"github.com/honuworx/vdk/av/pktque"
|
||||||
"github.com/deepch/vdk/av/transcode"
|
"github.com/honuworx/vdk/av/transcode"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Debug bool
|
var Debug bool
|
||||||
|
@ -9,9 +9,9 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HandlerDemuxer struct {
|
type HandlerDemuxer struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package pktque
|
package pktque
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Buf struct {
|
type Buf struct {
|
||||||
|
@ -4,7 +4,7 @@ package pktque
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Filter interface {
|
type Filter interface {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/pktque"
|
"github.com/honuworx/vdk/av/pktque"
|
||||||
)
|
)
|
||||||
|
|
||||||
// time
|
// time
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/pktque"
|
"github.com/honuworx/vdk/av/pktque"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Debug bool
|
var Debug bool
|
||||||
|
@ -17,9 +17,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
)
|
)
|
||||||
|
|
||||||
const debug = false
|
const debug = false
|
||||||
|
@ -20,8 +20,8 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
)
|
)
|
||||||
|
|
||||||
type VideoDecoder struct {
|
type VideoDecoder struct {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/utils/bits"
|
"github.com/honuworx/vdk/utils/bits"
|
||||||
)
|
)
|
||||||
|
|
||||||
// copied from libavcodec/mpeg4audio.h
|
// copied from libavcodec/mpeg4audio.h
|
||||||
|
@ -3,8 +3,8 @@ package codec
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/fake"
|
"github.com/honuworx/vdk/codec/fake"
|
||||||
)
|
)
|
||||||
|
|
||||||
type OpusCodecData struct {
|
type OpusCodecData struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CodecData struct {
|
type CodecData struct {
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/utils/bits"
|
"github.com/honuworx/vdk/utils/bits"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -4,10 +4,11 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/deepch/vdk/av"
|
|
||||||
"github.com/deepch/vdk/utils/bits"
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/honuworx/vdk/av"
|
||||||
|
"github.com/honuworx/vdk/utils/bits"
|
||||||
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SPSInfo struct {
|
type SPSInfo struct {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package mjpeg
|
package mjpeg
|
||||||
|
|
||||||
import "github.com/deepch/vdk/av"
|
import "github.com/honuworx/vdk/av"
|
||||||
|
|
||||||
type CodecData struct {
|
type CodecData struct {
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CodecData struct {
|
type CodecData struct {
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Muxer struct {
|
type Muxer struct {
|
||||||
|
@ -12,9 +12,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec"
|
"github.com/honuworx/vdk/codec"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -5,14 +5,14 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
"github.com/deepch/vdk/codec"
|
"github.com/honuworx/vdk/codec"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/fake"
|
"github.com/honuworx/vdk/codec/fake"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/flv/flvio"
|
"github.com/honuworx/vdk/format/flv/flvio"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
var MaxProbePacketCount = 20
|
var MaxProbePacketCount = 20
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AMF0ParseError struct {
|
type AMF0ParseError struct {
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TsToTime(ts int32) time.Duration {
|
func TsToTime(ts int32) time.Duration {
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DecoderConfigDescriptor struct {
|
type DecoderConfigDescriptor struct {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StreamDescriptor struct {
|
type StreamDescriptor struct {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Tag uint32
|
type Tag uint32
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package fmp4io
|
package fmp4io
|
||||||
|
|
||||||
import "github.com/deepch/vdk/utils/bits/pio"
|
import "github.com/honuworx/vdk/utils/bits/pio"
|
||||||
|
|
||||||
const AVC1 = Tag(0x61766331)
|
const AVC1 = Tag(0x61766331)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package fmp4io
|
package fmp4io
|
||||||
|
|
||||||
import "github.com/deepch/vdk/utils/bits/pio"
|
import "github.com/honuworx/vdk/utils/bits/pio"
|
||||||
|
|
||||||
const MVEX = Tag(0x6d766578)
|
const MVEX = Tag(0x6d766578)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package fmp4io
|
package fmp4io
|
||||||
|
|
||||||
import "github.com/deepch/vdk/utils/bits/pio"
|
import "github.com/honuworx/vdk/utils/bits/pio"
|
||||||
|
|
||||||
const FTYP = Tag(0x66747970)
|
const FTYP = Tag(0x66747970)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package fmp4io
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MOOF = Tag(0x6d6f6f66)
|
const MOOF = Tag(0x6d6f6f66)
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetTime32(b []byte) (t time.Time) {
|
func GetTime32(b []byte) (t time.Time) {
|
||||||
|
@ -3,7 +3,7 @@ package fmp4io
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MDIA = Tag(0x6d646961)
|
const MDIA = Tag(0x6d646961)
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MOOV = Tag(0x6d6f6f76)
|
const MOOV = Tag(0x6d6f6f76)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package fmp4io
|
package fmp4io
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deepch/vdk/format/fmp4/esio"
|
"github.com/honuworx/vdk/format/fmp4/esio"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MP4A = Tag(0x6d703461)
|
const MP4A = Tag(0x6d703461)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package fmp4io
|
package fmp4io
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -3,7 +3,7 @@ package fmp4io
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const DREF = Tag(0x64726566)
|
const DREF = Tag(0x64726566)
|
||||||
|
@ -3,7 +3,7 @@ package fmp4io
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const STBL = Tag(0x7374626c)
|
const STBL = Tag(0x7374626c)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package fmp4io
|
package fmp4io
|
||||||
|
|
||||||
import "github.com/deepch/vdk/utils/bits/pio"
|
import "github.com/honuworx/vdk/utils/bits/pio"
|
||||||
|
|
||||||
const SIDX = Tag(0x73696478)
|
const SIDX = Tag(0x73696478)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package fragment
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Fragment struct {
|
type Fragment struct {
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/format/fmp4/fmp4io"
|
"github.com/honuworx/vdk/format/fmp4/fmp4io"
|
||||||
"github.com/deepch/vdk/format/fmp4/fragment"
|
"github.com/honuworx/vdk/format/fmp4/fragment"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package fmp4
|
package fmp4
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/format/fmp4/fmp4io"
|
"github.com/honuworx/vdk/format/fmp4/fmp4io"
|
||||||
"github.com/deepch/vdk/format/fmp4/fragment"
|
"github.com/honuworx/vdk/format/fmp4/fragment"
|
||||||
"github.com/deepch/vdk/format/fmp4/timescale"
|
"github.com/honuworx/vdk/format/fmp4/timescale"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fragmentWithData struct {
|
type fragmentWithData struct {
|
||||||
|
@ -3,12 +3,12 @@ package fmp4
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/codec/opusparser"
|
"github.com/honuworx/vdk/codec/opusparser"
|
||||||
"github.com/deepch/vdk/format/fmp4/esio"
|
"github.com/honuworx/vdk/format/fmp4/esio"
|
||||||
"github.com/deepch/vdk/format/fmp4/fmp4io"
|
"github.com/honuworx/vdk/format/fmp4/fmp4io"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Track creates a TRAK atom for this stream
|
// Track creates a TRAK atom for this stream
|
||||||
|
@ -3,10 +3,10 @@ package fmp4
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/fmp4/fmp4io"
|
"github.com/honuworx/vdk/format/fmp4/fmp4io"
|
||||||
"github.com/deepch/vdk/format/fmp4/fragment"
|
"github.com/honuworx/vdk/format/fmp4/fragment"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TrackFragmenter writes a single audio or video stream as a series of CMAF (fMP4) fragments
|
// TrackFragmenter writes a single audio or video stream as a series of CMAF (fMP4) fragments
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package format
|
package format
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
"github.com/deepch/vdk/format/aac"
|
"github.com/honuworx/vdk/format/aac"
|
||||||
"github.com/deepch/vdk/format/flv"
|
"github.com/honuworx/vdk/format/flv"
|
||||||
"github.com/deepch/vdk/format/mp4"
|
"github.com/honuworx/vdk/format/mp4"
|
||||||
"github.com/deepch/vdk/format/rtmp"
|
"github.com/honuworx/vdk/format/rtmp"
|
||||||
"github.com/deepch/vdk/format/rtsp"
|
"github.com/honuworx/vdk/format/rtsp"
|
||||||
"github.com/deepch/vdk/format/ts"
|
"github.com/honuworx/vdk/format/ts"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RegisterAll() {
|
func RegisterAll() {
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/mkv/mkvio"
|
"github.com/honuworx/vdk/format/mkv/mkvio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Demuxer struct {
|
type Demuxer struct {
|
||||||
|
@ -3,8 +3,8 @@ package mkv
|
|||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CodecTypes = []av.CodecType{av.H264, av.AAC}
|
var CodecTypes = []av.CodecType{av.H264, av.AAC}
|
||||||
|
@ -3,7 +3,7 @@ package mkv
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stream struct {
|
type Stream struct {
|
||||||
|
@ -6,10 +6,10 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Demuxer struct {
|
type Demuxer struct {
|
||||||
|
@ -3,8 +3,8 @@ package mp4
|
|||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CodecTypes = []av.CodecType{av.H264, av.AAC}
|
var CodecTypes = []av.CodecType{av.H264, av.AAC}
|
||||||
|
@ -3,7 +3,7 @@ package mp4io
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MOOF = Tag(0x6d6f6f66)
|
const MOOF = Tag(0x6d6f6f66)
|
||||||
|
@ -966,7 +966,7 @@ func genatoms(filename, outfilename string) {
|
|||||||
&ast.GenDecl{
|
&ast.GenDecl{
|
||||||
Tok: token.IMPORT,
|
Tok: token.IMPORT,
|
||||||
Specs: []ast.Spec{
|
Specs: []ast.Spec{
|
||||||
&ast.ImportSpec{Path: &ast.BasicLit{Kind: token.STRING, Value: `"github.com/deepch/vdk/utils/bits/pio"`}},
|
&ast.ImportSpec{Path: &ast.BasicLit{Kind: token.STRING, Value: `"github.com/honuworx/vdk/utils/bits/pio"`}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
&ast.GenDecl{
|
&ast.GenDecl{
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ParseError struct {
|
type ParseError struct {
|
||||||
|
@ -6,13 +6,13 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/codec/h265parser"
|
"github.com/honuworx/vdk/codec/h265parser"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Muxer struct {
|
type Muxer struct {
|
||||||
|
@ -3,8 +3,8 @@ package mp4
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stream struct {
|
type Stream struct {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package mp4f
|
package mp4f
|
||||||
|
|
||||||
import "github.com/deepch/vdk/format/mp4/mp4io"
|
import "github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
|
|
||||||
type FDummy struct {
|
type FDummy struct {
|
||||||
Data []byte
|
Data []byte
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package mp4fio
|
package mp4fio
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (self MovieFrag) Tag() mp4io.Tag {
|
func (self MovieFrag) Tag() mp4io.Tag {
|
||||||
|
@ -966,7 +966,7 @@ func genatoms(filename, outfilename string) {
|
|||||||
&ast.GenDecl{
|
&ast.GenDecl{
|
||||||
Tok: token.IMPORT,
|
Tok: token.IMPORT,
|
||||||
Specs: []ast.Spec{
|
Specs: []ast.Spec{
|
||||||
&ast.ImportSpec{Path: &ast.BasicLit{Kind: token.STRING, Value: `"github.com/deepch/vdk/utils/bits/pio"`}},
|
&ast.ImportSpec{Path: &ast.BasicLit{Kind: token.STRING, Value: `"github.com/honuworx/vdk/utils/bits/pio"`}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
&ast.GenDecl{
|
&ast.GenDecl{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package mp4fio
|
package mp4fio
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ElemStreamDesc struct {
|
type ElemStreamDesc struct {
|
||||||
|
@ -6,14 +6,14 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/codec/h265parser"
|
"github.com/honuworx/vdk/codec/h265parser"
|
||||||
"github.com/deepch/vdk/format/fmp4/fmp4io"
|
"github.com/honuworx/vdk/format/fmp4/fmp4io"
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
"github.com/deepch/vdk/format/mp4f/mp4fio"
|
"github.com/honuworx/vdk/format/mp4f/mp4fio"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Muxer struct {
|
type Muxer struct {
|
||||||
|
@ -3,10 +3,10 @@ package mp4f
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/format/mp4"
|
"github.com/honuworx/vdk/format/mp4"
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
"github.com/deepch/vdk/format/mp4f/mp4fio"
|
"github.com/honuworx/vdk/format/mp4f/mp4fio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stream struct {
|
type Stream struct {
|
||||||
|
@ -6,10 +6,10 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Demuxer struct {
|
type Demuxer struct {
|
||||||
|
@ -3,8 +3,8 @@ package mp4
|
|||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CodecTypes = []av.CodecType{av.H264, av.AAC}
|
var CodecTypes = []av.CodecType{av.H264, av.AAC}
|
||||||
|
@ -3,7 +3,7 @@ package mp4io
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MOOF = Tag(0x6d6f6f66)
|
const MOOF = Tag(0x6d6f6f66)
|
||||||
|
@ -966,7 +966,7 @@ func genatoms(filename, outfilename string) {
|
|||||||
&ast.GenDecl{
|
&ast.GenDecl{
|
||||||
Tok: token.IMPORT,
|
Tok: token.IMPORT,
|
||||||
Specs: []ast.Spec{
|
Specs: []ast.Spec{
|
||||||
&ast.ImportSpec{Path: &ast.BasicLit{Kind: token.STRING, Value: `"github.com/deepch/vdk/utils/bits/pio"`}},
|
&ast.ImportSpec{Path: &ast.BasicLit{Kind: token.STRING, Value: `"github.com/honuworx/vdk/utils/bits/pio"`}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
&ast.GenDecl{
|
&ast.GenDecl{
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ParseError struct {
|
type ParseError struct {
|
||||||
|
@ -6,11 +6,11 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Muxer struct {
|
type Muxer struct {
|
||||||
|
@ -3,8 +3,8 @@ package mp4
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/format/mp4/mp4io"
|
"github.com/honuworx/vdk/format/mp4/mp4io"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stream struct {
|
type Stream struct {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Muxer struct {
|
type Muxer struct {
|
||||||
|
@ -4,11 +4,11 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/deepch/vdk/codec/h265parser"
|
"github.com/honuworx/vdk/codec/h265parser"
|
||||||
|
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
var startCode = []byte{0, 0, 0, 1}
|
var startCode = []byte{0, 0, 0, 1}
|
||||||
|
@ -14,11 +14,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
"github.com/deepch/vdk/format/flv"
|
"github.com/honuworx/vdk/format/flv"
|
||||||
"github.com/deepch/vdk/format/flv/flvio"
|
"github.com/honuworx/vdk/format/flv/flvio"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Debug bool
|
var Debug bool
|
||||||
|
@ -9,6 +9,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
//"log"
|
//"log"
|
||||||
"net"
|
"net"
|
||||||
"net/textproto"
|
"net/textproto"
|
||||||
@ -17,13 +18,13 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
"github.com/deepch/vdk/codec"
|
"github.com/honuworx/vdk/codec"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/rtsp/sdp"
|
"github.com/honuworx/vdk/format/rtsp/sdp"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrCodecDataChange = fmt.Errorf("rtsp: codec data change, please call HandleCodecDataChange()")
|
var ErrCodecDataChange = fmt.Errorf("rtsp: codec data change, please call HandleCodecDataChange()")
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
|
@ -3,8 +3,8 @@ package rtsp
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/format/rtsp/sdp"
|
"github.com/honuworx/vdk/format/rtsp/sdp"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stream struct {
|
type Stream struct {
|
||||||
|
@ -19,12 +19,12 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec"
|
"github.com/honuworx/vdk/codec"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/codec/h265parser"
|
"github.com/honuworx/vdk/codec/h265parser"
|
||||||
"github.com/deepch/vdk/format/rtsp/sdp"
|
"github.com/honuworx/vdk/format/rtsp/sdp"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -6,12 +6,12 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/codec/mjpeg"
|
"github.com/honuworx/vdk/codec/mjpeg"
|
||||||
"github.com/deepch/vdk/format/ts/tsio"
|
"github.com/honuworx/vdk/format/ts/tsio"
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Demuxer struct {
|
type Demuxer struct {
|
||||||
|
@ -3,8 +3,8 @@ package ts
|
|||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/av/avutil"
|
"github.com/honuworx/vdk/av/avutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Handler(h *avutil.RegisterHandler) {
|
func Handler(h *avutil.RegisterHandler) {
|
||||||
|
@ -5,10 +5,10 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/aacparser"
|
"github.com/honuworx/vdk/codec/aacparser"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/deepch/vdk/format/ts/tsio"
|
"github.com/honuworx/vdk/format/ts/tsio"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CodecTypes = []av.CodecType{av.H264, av.AAC}
|
var CodecTypes = []av.CodecType{av.H264, av.AAC}
|
||||||
|
@ -3,8 +3,8 @@ package ts
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/format/ts/tsio"
|
"github.com/honuworx/vdk/format/ts/tsio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stream struct {
|
type Stream struct {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/utils/bits/pio"
|
"github.com/honuworx/vdk/utils/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/webrtc/v2"
|
"github.com/pion/webrtc/v2"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
"github.com/pion/webrtc/v2/pkg/media"
|
"github.com/pion/webrtc/v2/pkg/media"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/deepch/vdk/codec/h264parser"
|
"github.com/honuworx/vdk/codec/h264parser"
|
||||||
|
|
||||||
"github.com/deepch/vdk/av"
|
"github.com/honuworx/vdk/av"
|
||||||
"github.com/pion/interceptor"
|
"github.com/pion/interceptor"
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
"github.com/pion/webrtc/v3/pkg/media"
|
"github.com/pion/webrtc/v3/pkg/media"
|
||||||
|
Loading…
Reference in New Issue
Block a user