aler9
b20abbed6c
webrtc muxer: keep the WebSocket connection
...
The WebSocket connection is kept open in order to use it to notify
shutdowns.
3 years ago
aler9
034e42f463
hls muxer: support reading Opus tracks ( #1338 )
3 years ago
Alessandro Ros
5de600ffaa
support reading H265 tracks with HLS ( #1342 )
...
* support reading H265 tracks with HLS
* update README
3 years ago
Alessandro Ros
c778c049ce
switch to gortsplib v2 ( #1301 )
...
Fixes #1103
gortsplib/v2 supports multiple formats inside a single track (media). This allows to apply the resizing algorithm to single formats inside medias.
For instance, if a media contains a a proprietary format and an H264 format, and the latter has oversized packets, they can now be resized.
3 years ago
Alessandro Ros
e605727c78
produce same absolute time in RTSP and HLS ( #1249 )
...
* add a NTP timestamp to each data unit
* use that NTP timestamp in all protocols
3 years ago
aler9
f1fb00b80f
update golangci-lint
3 years ago
aler9
71f927ecd5
hls: allow setting current time when writing packets
3 years ago
aler9
a8822b9f15
hls muxer / source: route AAC units singularly
...
This aligns the HLS implementation with the rest of the server. In case
of HLS/MPEGTS, the server now generates an ADTS packet for each AU,
without grouping multiple AUs into a single ADTS packet.
3 years ago
aler9
af7a815f83
update gortsplib
3 years ago
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
3 years ago
aler9
37e22b96cd
HLS muxer: support dynamic H264 SPS/PPS
3 years ago
aler9
0605a2f369
update linter
3 years ago
aler9
d0e7c3c100
update docs
4 years ago
aler9
343a5f17fb
hls: add new parameter hlsSegmentMaxSize
4 years ago
aler9
2bfdcc7d89
update gortsplib
4 years ago
aler9
4bd5289221
hls: set audio codec mime according to mpeg4 type
4 years ago
aler9
06cffc44df
hls: move constants into right file
4 years ago
aler9
ef4b925209
hls: fix discontinuity of TS counters between segments
4 years ago
aler9
98bf53a1e8
hls: simplify audio pts generation
4 years ago
aler9
74f3be1eed
hls: use audioAUCount only if audio is primary track
4 years ago
aler9
02afa8ff99
rtmp, hls: remove initial difference of 2secs between PTS and DTS of H264
4 years ago
aler9
e189f4570c
hls, rtmp: set DTS = PTS when a IDR frame is received
4 years ago
aler9
b65207012c
update gortsplib
4 years ago
aler9
92523c2a13
hls: insert segments into playlist only after they're complete
...
In this way, EXT-X-TARGETDURATION and EXTINF are always filled correctly.
If no segments have been generated yet, the playlist is not returned
until a segment is inserted or the muxer is closed. This causes timeout
issues on iOS Safari, that are solved by waiting for a fetch() before starting
the video.
4 years ago
aler9
96cb56621a
hls: add primary playlist
4 years ago
aler9
ba41af91b2
hls: remove useless check
4 years ago
aler9
93b143395e
hls: send PCR once, at the beginning of every TS segment
4 years ago
aler9
2d71e69e43
hls: speed up loading by decreasing PTS
4 years ago
aler9
600f7bf48c
hls: move NALU filtering into hls muxer
4 years ago
aler9
3828b71206
fix docs
4 years ago
aler9
1146d5cf1b
hls: new option hlsAlwaysRemux to always remux streams into HLS, not only when requested
4 years ago
aler9
4a1ca7aa3e
hls: fix segment splitting error introduced by c3c643c6
4 years ago
aler9
c3c643c602
hls: move muxer into dedicated object
4 years ago