mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
move pkg/mpeg4audio into pkg/codecs/mpeg4audio
This commit is contained in:
@@ -45,12 +45,13 @@ Features:
|
||||
* Compute and provide SSRC, RTP-Info to clients
|
||||
* Generate RTCP sender reports
|
||||
* Utilities
|
||||
* Parse RTSP elements
|
||||
* Encode/decode format-specific frames into/from RTP packets. The following formats are supported:
|
||||
* Video: H264, H265, M-JPEG, VP8, VP9
|
||||
* Audio: G711 (PCMA, PCMU), G722, LPCM, MPEG4 Audio (AAC), Opus
|
||||
* Parse RTSP elements: requests, responses, SDP
|
||||
* Parse H264 elements and formats: Annex-B, AVCC, anti-competition, DTS
|
||||
* Parse MPEG4 Audio (AAC) element and formats: ADTS, MPEG4 Audio configurations
|
||||
* Parse codec-specific elements. The following codecs are supported:
|
||||
* Video: H264, H265, M-JPEG
|
||||
* Audio: MPEG4 Audio (AAC)
|
||||
|
||||
## Table of contents
|
||||
|
||||
|
@@ -17,11 +17,11 @@ import (
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/auth"
|
||||
"github.com/aler9/gortsplib/v2/pkg/base"
|
||||
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/conn"
|
||||
"github.com/aler9/gortsplib/v2/pkg/format"
|
||||
"github.com/aler9/gortsplib/v2/pkg/headers"
|
||||
"github.com/aler9/gortsplib/v2/pkg/media"
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/sdp"
|
||||
"github.com/aler9/gortsplib/v2/pkg/url"
|
||||
)
|
||||
|
@@ -5,9 +5,9 @@ import (
|
||||
"net"
|
||||
|
||||
"github.com/aler9/gortsplib/v2"
|
||||
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/format"
|
||||
"github.com/aler9/gortsplib/v2/pkg/media"
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
psdp "github.com/pion/sdp/v3"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
|
||||
)
|
||||
|
||||
func TestNewFromMediaDescription(t *testing.T) {
|
||||
|
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
)
|
||||
|
||||
// MPEG4Audio is a MPEG-4 audio format.
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/pion/rtp"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
|
||||
)
|
||||
|
||||
func TestMPEG4AudioAttributes(t *testing.T) {
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/bits"
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
|
||||
)
|
||||
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/pion/rtp"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
|
||||
)
|
||||
|
||||
func mergeBytes(vals ...[]byte) []byte {
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/bits"
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
|
||||
)
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user