Commit Graph

487 Commits

Author SHA1 Message Date
aler9
93975552ac hls muxer: improve performance, decrease memory consumption 2022-06-01 10:13:37 +02:00
Alessandro Ros
e115983296
Implement Low-Latency HLS (#938)
* add hlsVariant parameter

* hls: split muxer into variants

* hls: implement fmp4 segments

* hls muxer: implement low latency mode

* hls muxer: support audio with fmp4 mode

* hls muxer: rewrite file router

* hls muxer: implement preload hint

* hls muxer: add various error codes

* hls muxer: use explicit flags

* hls muxer: fix error in aac pts

* hls muxer: fix sudden freezes with video+audio

* hls muxer: skip empty parts

* hls muxer: fix video FPS

* hls muxer: add parameter hlsPartDuration

* hls muxer: refactor fmp4 muxer

* hls muxer: fix CAN-SKIP-UNTIL

* hls muxer: refactor code

* hls muxer: show only parts of last 2 segments

* hls muxer: implementa playlist delta updates

* hls muxer: change playlist content type

* hls muxer: improve video dts precision

* hls muxer: fix video sample flags

* hls muxer: improve iphone audio support

* hls muxer: improve mp4 timestamp precision

* hls muxer: add offset between pts and dts

* hls muxer: close muxer in case of error

* hls muxer: stop logging requests with the info level

* hls muxer: rename entry into sample

* hls muxer: compensate video dts error over time

* hls muxer: change default segment count

* hls muxer: add starting gap

* hls muxer: set default part duration to 200ms

* hls muxer: fix audio-only streams on ios

* hls muxer: add playsinline attribute to video tag of default web page

* hls muxer: keep mpegts as the default hls variant

* hls muxer: implement encryption

* hls muxer: rewrite dts estimation

* hls muxer: improve DTS precision

* hls muxer: use right SPS/PPS for each sample

* hls muxer: adjust part duration dynamically

* add comments

* update readme

* hls muxer: fix memory leak

* hls muxer: decrease ram consumption
2022-05-31 19:17:26 +02:00
aler9
c5afa69174 fix regression that caused a source to be closed after 10secs when sourceOnDemand is yes (#949) 2022-05-28 13:54:04 +02:00
aler9
23ac079646 rtsp source: fix regression (#949)
This caused a periodic disconnection when sourceOnDemand is yes
2022-05-20 23:42:19 +02:00
aler9
959b78586a rtmp: add MessageReader 2022-05-16 11:57:29 +02:00
aler9
1f6d92bc3a rtmp: add additional message types 2022-05-14 00:52:11 +02:00
aler9
180db31166 rtmp: support negative timestamps in MessageWriter 2022-05-14 00:37:08 +02:00
aler9
dcdb0cf13f rtmp: fix timestamp in MessageWriter 2022-05-14 00:19:43 +02:00
aler9
d1c6c56077 rtmp: add Chunk2 2022-05-14 00:11:01 +02:00
aler9
420b6b21c4 rtmp: split MessageWriter into single handlers per chunk stream 2022-05-13 23:47:54 +02:00
aler9
896c799f99 rtmp: add MessageType, ControlChunkStreamID 2022-05-13 23:38:39 +02:00
aler9
9519bf670a rtmp: add MessageWriter 2022-05-13 20:53:52 +02:00
aler9
046a3f248d rtmp: add primitives 2022-05-13 19:04:47 +02:00
aler9
13fb24da39 fix rtmp -> rtsp audio conversion (#932) 2022-05-13 16:59:52 +02:00
aler9
d6a804f592 rtsp server: improve performance when reading with TCP 2022-05-11 16:37:33 +02:00
aler9
ae23dde169 hls client: improve video / audio sync 2022-05-10 23:35:25 +02:00
aler9
0c4f6e2d43 rtmp server: fix bias error in AAC DTS 2022-05-10 23:35:19 +02:00
aler9
b6b99b142a hls muxer: prefer hls.js over native HLS 2022-05-10 17:35:52 +02:00
aler9
901eae2f6b fix bias error in AAC timestamp 2022-05-10 13:29:32 +02:00
aler9
58e3fa358e split handling of on-demand sources and on-demand publishers 2022-05-03 14:38:45 +02:00
aler9
98b3538289 fix panic that happens when publishing to a path with source = redirect (#933) 2022-05-03 11:45:47 +02:00
aler9
35b3541e4f hls client: add limit on AU size 2022-04-29 12:02:11 +02:00
aler9
095b90b7ef hls muxer: fix PCR insertion when stream is audio only 2022-04-28 13:04:13 +02:00
aler9
709d727eab hls muxer: tune hls.js parameters 2022-04-27 18:55:31 +02:00
aler9
dedca93eca hls muxer: update hls.js 2022-04-25 18:57:40 +02:00
aler9
ae7e68c914 hls muxer: remove progressive flag; add liveSyncDurationCount, liveMaxLatencyDurationCount to hls.js 2022-04-25 18:57:16 +02:00
aler9
07591c7514 hls muxer: update primary playlist in case SPS/PPS changed 2022-04-24 13:01:27 +02:00
aler9
3b21da7762 hls muxer: add EXT-X-VERSION to primary playlist 2022-04-24 11:37:11 +02:00
aler9
889ebef249 hls muxer: add EXT-X-INDEPENDENT-SEGMENTS tag 2022-04-20 13:49:08 +02:00
aler9
d5a1b8c8ab rtmp: cleanup tests 2022-04-18 17:04:59 +02:00
aler9
1e07636f86 change default RTSPS port (#867) 2022-04-16 16:24:40 +02:00
aler9
6b86607092 rtsp source: improve support for AAC tracks with custom parameters 2022-04-15 17:01:18 +02:00
aler9
db7ee22789 rtsp source: support AAC tracks with custom sizelength, indexlength and indexdeltalength
(https://github.com/aler9/gortsplib/pull/118)
2022-04-15 13:17:00 +02:00
aler9
76d4376476 hls muxer: fix crash in case of null SPS 2022-04-14 15:29:41 +02:00
aler9
f71b7d8967 fix tests 2022-04-10 17:47:55 +02:00
aler9
ce42c53a03 hls, rtmp: fix video/audio sync 2022-04-10 17:44:08 +02:00
aler9
f620484757 rtmp: always send decoder config before IDR frames 2022-04-10 17:07:42 +02:00
aler9
98c6cd4650 RTSP: automatically remux oversized RTP/H264 packets; drop parameter ReadBufferSize 2022-04-09 20:20:14 +02:00
aler9
58b2e7d24f move trackID into data 2022-04-09 13:16:59 +02:00
aler9
2c485f918b fix tests 2022-04-08 18:19:53 +02:00
aler9
dffe63f1bc add SPS and PTS before IDRs of all incoming H264 streams; stop filtering H264 inside single protocols 2022-04-08 18:19:53 +02:00
aler9
a34a01ebd9 RTMP client/source: support dynamic H264 SPS/PPS 2022-04-08 18:19:53 +02:00
aler9
37e22b96cd HLS muxer: support dynamic H264 SPS/PPS 2022-04-08 18:19:53 +02:00
aler9
57cb2e99d1 HLS client: support dynamic H264 SPS/PPS 2022-04-08 18:19:53 +02:00
aler9
4d6f8b9b9b RTSP client/source: support dynamic H264 SPS/PPS 2022-04-08 18:19:53 +02:00
aler9
d929197b21 propagate H264 packets throughout the server 2022-04-08 18:19:53 +02:00
aler9
a59ddf7176 rtsp server: remove useless check 2022-04-08 17:37:07 +02:00
aler9
0605a2f369 update linter 2022-04-07 13:05:07 +02:00
aler9
3fc4ca6465 update gortsplib; downgrade pion/rtp to v1 2022-04-01 12:04:21 +02:00
aler9
f53b316c0d rtsp server: generate RTCP sender reports automatically; stop routing RTCP packets 2022-03-24 15:44:34 +01:00