change owner (#217)

This commit is contained in:
Alessandro Ros
2023-03-31 12:34:07 +02:00
committed by GitHub
parent e3f37a3e36
commit 04f5a4041c
121 changed files with 301 additions and 307 deletions

View File

@@ -4,7 +4,7 @@
[![Lint](https://github.com/bluenviron/gortsplib/workflows/lint/badge.svg)](https://github.com/bluenviron/gortsplib/actions?query=workflow:lint)
[![Go Report Card](https://goreportcard.com/badge/github.com/bluenviron/gortsplib)](https://goreportcard.com/report/github.com/bluenviron/gortsplib)
[![CodeCov](https://codecov.io/gh/bluenviron/gortsplib/branch/main/graph/badge.svg)](https://app.codecov.io/gh/bluenviron/gortsplib/branch/main)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/aler9/gortsplib/v2)](https://pkg.go.dev/github.com/aler9/gortsplib/v2#pkg-index)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/bluenviron/gortsplib/v3)](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3#pkg-index)
RTSP 1.0 client and server library for the Go programming language, written for [rtsp-simple-server](https://github.com/aler9/rtsp-simple-server).
@@ -50,12 +50,6 @@ Features:
* Video: H264, H265, M-JPEG
* Audio: MPEG4 Audio (AAC)
## Important announcement
my main open source projects are being transferred to the [bluenviron organization](https://github.com/bluenviron), in order to allow the community to maintain and evolve the code regardless of my personal availability.
In the next months, the repository name will be changed accordingly.
## Table of contents
* [Examples](#examples)
@@ -101,7 +95,7 @@ In the next months, the repository name will be changed accordingly.
## API Documentation
https://pkg.go.dev/github.com/aler9/gortsplib/v2#pkg-index
https://pkg.go.dev/github.com/bluenviron/gortsplib/v3#pkg-index
## Standards

View File

@@ -2,7 +2,7 @@
Package gortsplib is a RTSP 1.0 library for the Go programming language,
written for rtsp-simple-server.
Examples are available at https://github.com/aler9/gortsplib/tree/master/examples
Examples are available at https://github.com/bluenviron/gortsplib/tree/main/examples
*/
package gortsplib
@@ -20,16 +20,16 @@ import (
"github.com/pion/rtcp"
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/auth"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/bytecounter"
"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/liberrors"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/sdp"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3/pkg/auth"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/bytecounter"
"github.com/bluenviron/gortsplib/v3/pkg/conn"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/liberrors"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/sdp"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
func isAnyPort(p int) bool {

View File

@@ -6,10 +6,10 @@ import (
"github.com/pion/rtcp"
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/rtcpreceiver"
"github.com/aler9/gortsplib/v2/pkg/rtcpsender"
"github.com/aler9/gortsplib/v2/pkg/rtpreorderer"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/rtcpreceiver"
"github.com/bluenviron/gortsplib/v3/pkg/rtcpsender"
"github.com/bluenviron/gortsplib/v3/pkg/rtpreorderer"
)
type clientFormat struct {

View File

@@ -7,8 +7,8 @@ import (
"github.com/pion/rtcp"
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/media"
)
type clientMedia struct {

View File

@@ -16,14 +16,14 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/net/ipv4"
"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/url"
"github.com/bluenviron/gortsplib/v3/pkg/auth"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/mpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/conn"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
func mustMarshalMedias(medias media.Medias) []byte {

View File

@@ -13,13 +13,13 @@ import (
"github.com/pion/rtp"
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"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/sdp"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/conn"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/sdp"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
var testH264Media = &media.Media{

View File

@@ -8,11 +8,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/auth"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/conn"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3/pkg/auth"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/conn"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
func mustParseURL(s string) *url.URL {

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,10 +4,10 @@ import (
"log"
"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/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/mpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -4,9 +4,9 @@ import (
"log"
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -5,9 +5,9 @@ import (
"net"
"time"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -5,9 +5,9 @@ import (
"net"
"time"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/pion/rtp"
)

View File

@@ -3,8 +3,8 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
// This example shows how to

View File

@@ -3,9 +3,9 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,9 +3,9 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -8,10 +8,10 @@ import (
"strconv"
"time"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,10 +3,10 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -7,8 +7,8 @@ import (
"os"
"time"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/asticode/go-astits"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h264"
)
// mpegtsMuxer allows to save a H264 stream into a MPEG-TS file.

View File

@@ -3,10 +3,10 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,10 +3,10 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph265"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtph265"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,9 +3,9 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -5,10 +5,10 @@ import (
"image/jpeg"
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpmjpeg"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,9 +3,9 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,9 +3,9 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,10 +3,10 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpvp8"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpvp8"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,10 +3,10 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpvp9"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpvp9"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -4,10 +4,10 @@ import (
"log"
"time"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtcp"
"github.com/pion/rtp"
)

View File

@@ -4,10 +4,10 @@ import (
"log"
"time"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtcp"
"github.com/pion/rtp"
)

View File

@@ -3,10 +3,10 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,10 +3,10 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtcp"
"github.com/pion/rtp"
)

View File

@@ -5,10 +5,10 @@ import (
"sync"
"time"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url"
"github.com/pion/rtp"
)

View File

@@ -3,8 +3,8 @@ package main
import (
"log"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
type server struct {

View File

@@ -7,11 +7,11 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/media"
)
// This example shows how to

View File

@@ -7,8 +7,8 @@ import (
"os"
"time"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/asticode/go-astits"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h264"
)
// mpegtsMuxer allows to save a H264 stream into a MPEG-TS file.

View File

@@ -7,10 +7,10 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
)
// This example shows how to

View File

@@ -6,10 +6,10 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
)
// This example shows how to

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/aler9/gortsplib/v2
module github.com/bluenviron/gortsplib/v3
go 1.18

View File

@@ -17,10 +17,10 @@ import (
"github.com/pion/rtp"
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/bluenviron/gortsplib/v3"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/format"
"github.com/bluenviron/gortsplib/v3/pkg/media"
)
var serverCert = []byte(`-----BEGIN CERTIFICATE-----

View File

@@ -5,9 +5,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/headers"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
func mustParseURL(s string) *url.URL {

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/headers"
)
// Sender allows to generate credentials for a Validator.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
func TestSenderErrors(t *testing.T) {

View File

@@ -6,9 +6,9 @@ import (
"fmt"
"strings"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/headers"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
// Validator allows to validate credentials generated by a Sender.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
func TestValidatorErrors(t *testing.T) {

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"strconv"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
const (

View File

@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
func mustParseURL(s string) *url.URL {

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/bluenviron/gortsplib/v3/pkg/bits"
)
func getPictureOrderCount(buf []byte, sps *SPS) (uint32, error) {

View File

@@ -3,7 +3,7 @@ package h264
import (
"fmt"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/bluenviron/gortsplib/v3/pkg/bits"
)
const (

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/bluenviron/gortsplib/v3/pkg/bits"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h264"
)
func getPictureOrderCount(buf []byte, sps *SPS, pps *PPS) (uint32, uint32, error) {

View File

@@ -3,8 +3,8 @@ package h265
import (
"fmt"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/bluenviron/gortsplib/v3/pkg/bits"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h264"
)
// PPS is a H265 picture parameter set.

View File

@@ -3,8 +3,8 @@ package h265
import (
"fmt"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/bluenviron/gortsplib/v3/pkg/bits"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h264"
)
const (

View File

@@ -3,7 +3,7 @@ package mpeg4audio
import (
"fmt"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/bluenviron/gortsplib/v3/pkg/bits"
)
// Config is a MPEG-4 Audio configuration.

View File

@@ -5,7 +5,7 @@ import (
"bufio"
"io"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
const (

View File

@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/url"
"github.com/bluenviron/gortsplib/v3/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/url"
)
func mustParseURL(s string) *url.URL {

View File

@@ -6,7 +6,7 @@ import (
psdp "github.com/pion/sdp/v3"
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/mpeg4audio"
)
func TestNewFromMediaDescription(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package format
import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpsimpleaudio"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpsimpleaudio"
)
// G711 is a format that uses the G711 codec, encoded with mu-law or A-law.

View File

@@ -3,7 +3,7 @@ package format
import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpsimpleaudio"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpsimpleaudio"
)
// G722 is a format that uses the G722 codec.

View File

@@ -10,8 +10,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h264"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtph264"
)
// check whether a RTP/H264 packet contains a IDR, without decoding the packet.

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph265"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtph265"
)
// H265 is a format that uses the H265 codec.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtplpcm"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtplpcm"
)
// LPCM is a format that uses the uncompressed, Linear PCM codec.

View File

@@ -3,7 +3,7 @@ package format
import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpmjpeg"
)
// MJPEG is a format that uses the Motion-JPEG codec.

View File

@@ -7,8 +7,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/mpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpmpeg4audio"
)
// MPEG4Audio is a format that uses a MPEG-4 audio codec.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp"
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/mpeg4audio"
)
func TestMPEG4AudioAttributes(t *testing.T) {

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpsimpleaudio"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpsimpleaudio"
)
// Opus is a format that uses the Opus codec.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpvp8"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpvp8"
)
// VP8 is a format that uses the VP8 codec.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpvp9"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpvp9"
)
// VP9 is a format that uses the VP9 codec.

View File

@@ -8,8 +8,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h264"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
// ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -7,8 +7,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h264"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
const (

View File

@@ -7,8 +7,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/h265"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/h265"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
// ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
const (

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
// Decoder is a RTP/LPCM decoder.

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
const (

View File

@@ -7,9 +7,9 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/jpeg"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg/headers"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/jpeg"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpmjpeg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
// ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -8,9 +8,9 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/jpeg"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg/headers"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/jpeg"
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpmjpeg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
const (

View File

@@ -7,9 +7,9 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/bits"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/mpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
// ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -10,7 +10,7 @@ import (
"github.com/pion/rtp"
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/mpeg4audio"
)
func TestDecode(t *testing.T) {

View File

@@ -6,9 +6,9 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/bits"
"github.com/bluenviron/gortsplib/v3/pkg/codecs/mpeg4audio"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
const (

View File

@@ -5,7 +5,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
// Decoder is a RTP/simple audio decoder.

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
const (

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp"
"github.com/pion/rtp/codecs"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
// ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp"
"github.com/pion/rtp/codecs"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
const (

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp"
"github.com/pion/rtp/codecs"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
// ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp"
"github.com/pion/rtp/codecs"
"github.com/aler9/gortsplib/v2/pkg/rtptime"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime"
)
const (

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
// AuthMethod is an authentication method.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
var casesAuthenticate = []struct {

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
// Authorization is an Authorization header.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
var casesAuthorization = []struct {

View File

@@ -6,7 +6,7 @@ import (
"strings"
"time"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
func leadingZero(v uint) string {

View File

@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
var casesRange = []struct {

View File

@@ -5,7 +5,7 @@ import (
"strconv"
"strings"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
// RTPInfoEntry is an entry of a RTP-Info header.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
var casesRTPInfo = []struct {

View File

@@ -5,7 +5,7 @@ import (
"strconv"
"strings"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
// Session is a Session header.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
var casesSession = []struct {

View File

@@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/base"
)
func parsePorts(val string) (*[2]int, error) {

Some files were not shown because too many files have changed in this diff Show More