Commit graph

179 commits

Author SHA1 Message Date
Laura Hausmann ebe60b3c30
Correctly set media sequence number
https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.3.2 specifies the media sequence number to be the number of the *first* fragment in the list, not the last one.
2024-01-06 01:20:14 +01:00
z411 5f8a96f505
Fix datetime not working after the first fragment 2022-05-15 04:32:56 -04:00
Sergey Dryabzhinsky ca9fd4a380
Merge pull request #343 from zotanmew/patch-media-counter
Fix media sequence counter
2022-02-10 18:26:34 +03:00
Laura Hausmann 2fee90d89f
fix media sequence counter 2022-02-09 23:19:59 +01:00
Laura Hausmann e73d44f0fb
Write ENDLIST tag on stream end 2022-02-09 23:08:41 +01:00
Sergey Dryabzhinsky 8e344d7994 For issue #332 - bigger buffers for HLS/DASH, allow define them on compile time 2021-06-03 15:40:00 +03:00
Sergey Dryabzhinsky ca1f3eeaa2 One more type cast 2021-06-02 20:43:18 +03:00
Sergey Dryabzhinsky a4a1343bb8
Merge pull request #176 from sergey-dryabzhinsky/fix-hls-playlist-length-on-varsize-fragments
Fix hls playlist length on varsize fragments
2021-06-01 19:06:41 +03:00
Sergey Dryabzhinsky 14221340d3 Fix miscast 2021-06-01 19:06:04 +03:00
Benedict Endemann b4ee055393 Added millisecond accuracy to EXT-X-PROGRAM-DATE-TIME
to become more compatible to:
https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.2.6
(see "EXT-X-PROGRAM-DATE-TIME tags SHOULD provide millisecond accuracy.").
2018-04-23 12:53:42 +02:00
Ben Wilber 23d67822b2 Write EXT-X-PROGRAM-DATE-TIME before any EXT-X-DISCONTINUITY 2018-03-29 16:49:53 -04:00
Anonymous a01cc448ee
Fix multiple fallthrough warnings 2017-12-02 19:33:11 +00:00
Paweł Burda bb4190e248 EXT-X-ALLOW-CACHE using YES|NO instead of 1|0
https://tools.ietf.org/html/draft-pantos-http-live-streaming-07#section-3.3.6
2017-04-18 14:01:35 +02:00
Chris Wiggins f8992e572f Automatically generate CRC for MPEG-TS packets.
Includes descriptions from @premultiply from pull sergey-dryabzhinsky/nginx-rtmp-module#123
2017-03-27 12:06:18 +13:00
Sergey Dryabzhinsky dc76eb2641 Merge fixes for nginx 1.11.5-style cache-manager by @arut
- merge some code from 5150993acc
2016-11-26 00:48:24 +03:00
Sergey Dryabzhinsky 315e8aa497 Merge fixes from @akotulu for #197 2016-11-26 00:25:17 +03:00
Sergey Dryabzhinsky 7381b66e13 typo 2016-08-06 07:43:20 +03:00
Sergey Dryabzhinsky a88bc39141 Fixes:
- fix first fragment search
- fix log output for discontinuety flag
2016-08-06 07:39:17 +03:00
Sergey Dryabzhinsky 998de2937a Try to coop with playlist length and fragments duration 2016-08-06 05:23:18 +03:00
Sergey Dryabzhinsky 2b0596051e Another type conversion fix for MSVS 2016-06-25 16:00:57 +03:00
benmcmeen bfaccfd738 More compilation. 2016-04-18 13:48:40 -05:00
benmcmeen 7eb100a306 Compilation 2016-04-18 13:34:24 -05:00
benmcmeen a3924dce67 Modified flag, enum. 2016-04-18 12:46:26 -05:00
benmcmeen 66b3bcf096 Housekeeping. 2016-04-15 13:50:29 -05:00
benmcmeen 65e24b3fee Added struct 2016-04-15 13:19:43 -05:00
benmcmeen 182566fe93 Fixed variable error. 2016-04-15 13:16:45 -05:00
benmcmeen e8304c9852 HLS Live DVR flag. 2016-04-15 13:10:29 -05:00
Chris Wiggins d13e665e56 Specifically state that we dont support HLS closed captions 2016-04-15 09:23:14 +12:00
Chris Wiggins 86cfd20b28 Populate singe-audio track header correctly 2016-04-14 10:24:38 +12:00
Chris Wiggins c11797815d Fix single-track HLS MPEG-TS streams 2016-04-13 17:44:39 +12:00
Sergey c0b592a57c Merge pull request #84 from sergey-dryabzhinsky/64i-mpegts-continuity-counter-fix
Update the continuity_counter for packets pat and pmt
2016-02-27 21:03:47 +03:00
Sergey Dryabzhinsky 4ce7ea8b9d Fix HLS/DASH playlists cleanup
- use x2 hls max frgment duration
- do more recent cleanup - half playlist duration
- adjust expiration times for playlist files
- add more debug to dash fragments update function
2016-02-27 07:06:16 +03:00
Sergey Dryabzhinsky 96b69327fa Update the continuity_counter for packets pat and pmt 2016-02-27 01:13:22 +03:00
Sergey Dryabzhinsky f8da609671 Add playlist update notification for HLS/DASH 2015-12-17 03:36:58 +03:00
Sergey Dryabzhinsky b6687d6cab Update CRC for MP3 2015-11-11 20:22:48 +03:00
premultiply 2bc42d90f2 MPEG TS improvements
- Changed PMT PID to widely used 0x0FFF (4095)
- Write PCR on every frames (for hardware decoders and other DVB compatible decoders)
- Recalculated PAT CRC32

TODO: Recalculate PMT CRC32
2015-11-11 15:31:05 +01:00
Sergey Dryabzhinsky 24be2c72cd Fix gcc pedantic build warnings/errors
- use ngx_memcpy if return value not needed
- remove some unused vars
- add new function definitions for send submodule
2015-08-08 00:57:13 +03:00
mainyaa 5ed7825c0c Fix datetime system bug 2015-08-06 15:44:32 +09:00
Sergey a05b3babfe Merge pull request #13 from hannseman/master
Remove unneeded space in EXT-X-PLAYLIST-TYPE tag
2015-07-03 02:00:08 +03:00
Sergey 95471ae880 Merge pull request #2 from jbochi/program-date-time
Program date time
2015-07-03 01:13:46 +03:00
Sergey Dryabzhinsky 8341644121 Backport support MP3 for HLS from abandoned pull request 2015-07-03 01:03:39 +03:00
Hannes Ljungberg 955c7e6b64 Remove unneeded space in EXT-X-PLAYLIST-TYPE tag 2015-03-27 13:31:40 +01:00
Juarez Bochi ad6c63c149 Fix the way date time is written to fd 2014-10-10 13:33:32 -03:00
Juarez Bochi c54b413b43 Add program datetime from system or stream timestamp 2014-10-10 13:33:32 -03:00
itpp16 d574043a96 Update ngx_rtmp_mpegts.c
Fixes for "warning C4244: '=' : conversion from 'uint64_t' to 'u_char', possible loss of data"
2014-09-13 22:48:03 +02:00
Roman Arutyunyan 7500b4bd90 fixed path allocation 2014-09-01 18:30:41 +04:00
Roman Arutyunyan eb1cfef69e zero fragments_per_key now means one key per stream 2014-09-01 18:01:28 +04:00
Roman Arutyunyan 0b3d545ff6 fixed return code 2014-09-01 17:21:13 +04:00
Roman Arutyunyan 5e1d735992 fixed encryption 2014-09-01 17:10:03 +04:00
Roman Arutyunyan 997f24c5c6 implemented key id recovery from iv 2014-09-01 16:39:10 +04:00