1930 Commits

Author SHA1 Message Date
Alessandro Ros
b1804d77e8 bump golangci-lint (#784) 2025-05-23 14:51:33 +02:00
Parallelc
2694ed941f fix invalid TID=0 in writeAggregationUnit of rtph265 encoder (#782)
* fix invalid TID=0 in writeAggregationUnit of rtph265 encoder

* return error in case of invalid NALUs

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-05-21 22:48:45 +02:00
dependabot[bot]
bd07e2e04f Bump github.com/pion/sdp/v3 from 3.0.11 to 3.0.12 (#783) 2025-05-21 10:20:38 +02:00
dependabot[bot]
21f5b4eef4 Bump golang.org/x/net from 0.39.0 to 0.40.0 (#780) 2025-05-06 07:29:51 +02:00
dependabot[bot]
d972c1e299 Bump github.com/bluenviron/mediacommon/v2 from 2.1.0 to 2.1.1 (#779)
Bumps [github.com/bluenviron/mediacommon/v2](https://github.com/bluenviron/mediacommon) from 2.1.0 to 2.1.1.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v2.1.0...v2.1.1)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon/v2
  dependency-version: 2.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v4.14.0
2025-05-04 17:15:31 +02:00
Alessandro Ros
b407cb1dd0 server: support reading back channels (#597) (#777) 2025-05-04 17:04:15 +02:00
Alessandro Ros
cc0c96626c improve examples (#778) 2025-05-04 17:00:18 +02:00
Alessandro Ros
4e3c5e6c0d client: skip firewall opening when writing back channels (#776) 2025-05-04 15:47:06 +02:00
Alessandro Ros
904b0a1920 client: enable keepalives in most cases (#775) 2025-05-04 15:39:07 +02:00
Alessandro Ros
2cbdc2a0b7 client: fix timeout when writing to back channels (#575) (#774)
Keep alives are now sent when writing to back channels too.
2025-05-04 13:17:53 +02:00
Alessandro Ros
7f5aac27d1 ensure unmarshaled entities can be marshaled back (#773) 2025-05-04 11:27:28 +02:00
Alessandro Ros
3e555e2d18 fix crash when reading tracks with zero clock rate (bluenviron/mediamtx#4476) (#772)
also prevents RTCP sender and RTCP reports from being emitted when
track has clock rate set to zero.
2025-05-01 18:08:13 +02:00
Alessandro Ros
bfacd10d35 prevent decoding formats with zero clock rate or channels (#770) 2025-05-01 17:06:55 +02:00
Alessandro Ros
18307140ec remove debug instruction from examples (#771) 2025-05-01 16:57:41 +02:00
Alessandro Ros
162a72dd96 prevent decoding SDPs without media streams (#769) 2025-05-01 16:54:55 +02:00
dependabot[bot]
2e92a2a1f4 Bump golang.org/x/net from 0.35.0 to 0.39.0 (#753)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.39.0.
- [Commits](https://github.com/golang/net/compare/v0.35.0...v0.39.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-29 09:59:23 +02:00
Alessandro Ros
4601f3b248 support last 2 Golang versions only (#767) 2025-04-29 09:54:42 +02:00
dependabot[bot]
1f8aa25033 Bump github.com/pion/rtp from 1.8.13 to 1.8.15 (#766) 2025-04-29 08:12:04 +02:00
Alessandro Ros
900f4958ca fix SDP compatibility with some Uniview cameras (#618) (#765) 2025-04-26 16:13:37 +02:00
Alessandro Ros
e434427da8 unexport multicast.MultiConn, multicast.SingleConn (#763)
they are already exposed through multicast.Conn.
2025-04-25 20:29:26 +02:00
Josh Allmann
03be509422 Add configurable buffer size to Reorderer (#760)
The default of 64 is ~3 seconds which may be too much for some apps.
2025-04-18 12:06:59 +02:00
Yuriy Gabuev
d162df21ec Allow setting response body in OnDescribe (#758)
* Allow setting response body in OnDescribe

Since commit 8c6495c33b, the server can no
longer directly specify the response body to DESCRIBE requests. This is
a breaking change and is a limitation for users who manually handle their
SDPs. This commit allows setting the body explicitly and takes it into
account if the `ServerStream` part of the `OnDecsribe` return value is
nil. If neither the stream, nor the body are set, the application panics.

* Add test for non-nil body for Describe
v4.13.1
2025-04-17 12:43:01 +02:00
Alessandro Ros
c3b5e0b76a support decoding H264 units without Marker field (bluenviron/mediamtx#3945) (#759)
(like the ones produced by the FLIR M400)
2025-04-17 09:59:01 +02:00
Alessandro Ros
fd8b0fc5fa rename test (#757) v4.13.0 2025-04-12 12:56:03 +02:00
dependabot[bot]
6b51fdfa38 Bump github.com/bluenviron/mediacommon/v2 (#756)
Bumps [github.com/bluenviron/mediacommon/v2](https://github.com/bluenviron/mediacommon) from 2.0.1-0.20250222132106-205c4f7f3850 to 2.1.0.
- [Commits](https://github.com/bluenviron/mediacommon/commits/v2.1.0)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon/v2
  dependency-version: 2.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-12 12:52:47 +02:00
Alessandro Ros
74a65e4c08 expose back rtcpreceiver, rtcpsender, rtpreorderer, rtplossdetector (#755) 2025-04-12 10:10:05 +02:00
Alessandro Ros
035676706f rename high-level tests into E2E tests (#751) 2025-04-04 14:59:07 +02:00
Alessandro Ros
62ac5612f5 improve AV1 compression (#746) 2025-03-27 16:54:38 +01:00
Alessandro Ros
653a574588 restore ability to decode AV1 packets with W != 0 (#745) 2025-03-27 15:48:19 +01:00
Alessandro Ros
c9b91e629c improve AV1 decoder efficiency (#744) 2025-03-27 13:41:18 +01:00
Alessandro Ros
3414414c02 improve tests (#743) 2025-03-27 13:02:57 +01:00
Alessandro Ros
d59d7c48b4 improve tests (#742) 2025-03-27 11:56:51 +01:00
Alessandro Ros
abef977ad5 improve NALU size limit errors (#741) 2025-03-27 11:38:28 +01:00
Alessandro Ros
4b0fe4f7d2 fix wrong size being reported in error messages (#740) 2025-03-27 11:34:23 +01:00
Alessandro Ros
20b6d71e58 server: restore support for ServerHandlerOnPacketLost (#738) 2025-03-25 21:59:20 +01:00
Alessandro Ros
61372cfa68 rename OnPacketLost2 into OnPacketsLost (#736) 2025-03-24 18:42:48 +01:00
Alessandro Ros
c0c275e6a6 expose number of lost packets without passing through an error (#735) 2025-03-24 16:39:55 +01:00
Alessandro Ros
1b127d70bb examples: restart video files when they end (#733) 2025-03-23 19:04:12 +01:00
Alessandro Ros
f290b464b8 server: close server automatically with StartAndWait() (#734) 2025-03-23 19:02:02 +01:00
Alessandro Ros
e46ae59920 add server-h264-from-disk example (#719) (#727) 2025-03-23 16:53:54 +01:00
Alessandro Ros
8c6495c33b server: prevent wrong OnSetup / OnDescribe usage (#732) 2025-03-23 16:42:29 +01:00
Alessandro Ros
304c38bb60 examples: prevent redundant checks in OnSetup when recording (#731) 2025-03-23 16:33:46 +01:00
Alessandro Ros
87d3720f48 examples: use RWMutex when possible (#730) 2025-03-23 16:25:42 +01:00
Alessandro Ros
c8f4a0b0d3 examples: add missing mutex in OnSetup (#729) 2025-03-23 16:20:54 +01:00
Alessandro Ros
fcb018151b make ServerStream return an error if initialized before Server (#719) (#728) 2025-03-23 16:17:34 +01:00
Alessandro Ros
fa94080e84 prevent decoders from returning empty NALUs (bluenviron/mediamtx#4346) (#726) 2025-03-22 22:45:54 +01:00
trxo
b6d6f6bf37 Fix incorrect function call (#725) 2025-03-19 14:33:47 +01:00
Alessandro Ros
376fb9e821 replace New* with Initialize (#723) 2025-03-16 13:58:35 +01:00
Alessandro Ros
db959f854e update badges (#721) 2025-03-12 11:49:58 +01:00
dependabot[bot]
bf9a267db6 Bump github.com/pion/sdp/v3 from 3.0.10 to 3.0.11 (#718)
Bumps [github.com/pion/sdp/v3](https://github.com/pion/sdp) from 3.0.10 to 3.0.11.
- [Release notes](https://github.com/pion/sdp/releases)
- [Changelog](https://github.com/pion/sdp/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/sdp/compare/v3.0.10...v3.0.11)

---
updated-dependencies:
- dependency-name: github.com/pion/sdp/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-12 00:15:47 +01:00