Skip to content

Commit

Permalink
update UT
Browse files Browse the repository at this point in the history
  • Loading branch information
erankor committed Jun 8, 2024
1 parent cb60292 commit 8627923
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ seg-4-svar1.m4s
seg-5-svar1.m4s
#EXTINF:3.800,
seg-6-svar1.m4s
#EXTINF:1.597,
#EXTINF:1.195,
#EXT-X-BITRATE:99
seg-7-svar1.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2020-01-01T00:00:29.397+00:00
#EXTINF:4.336,
#EXT-X-PROGRAM-DATE-TIME:2020-01-01T00:00:28.995+00:00
#EXTINF:4.738,
#EXT-X-BITRATE:78
seg-8-svar1.m4s
#EXTINF:4.067,
Expand Down Expand Up @@ -88,25 +89,25 @@ BODY: SIZE: 21196, MD5: 5f436e7fab1fac326b00dd3a6241f25d

URL: /seg-8-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 38604, MD5: aab750cf56331fe0a329bb6352e89f99
BODY: SIZE: 38604, MD5: 783e04da1e617e155070189d87d5948a

URL: /seg-9-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 52331, MD5: 63b0a3444ce7f12f62f145e7610fa14c
BODY: SIZE: 52331, MD5: dcf10f79a419278f210037446e932256

URL: /seg-10-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 44810, MD5: abc750f681293d68a11174453a26dcee
BODY: SIZE: 44810, MD5: 2e5551724d2d29acef704d0ff062ddd2

URL: /seg-11-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 45655, MD5: 073ab10b2ac2ec65a0568f4417ea5348
BODY: SIZE: 45655, MD5: b42ef0f7ab3fc8fe4a5b4191ba0516fd

URL: /seg-12-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 47467, MD5: fa6d13f86c8fda55fbeb925e8c38b616
BODY: SIZE: 47467, MD5: 61937dbdb539af5df5a94702aca4633c

URL: /seg-13-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 51946, MD5: 3056b4cad505df810bd7ede0e5a2765b
BODY: SIZE: 51946, MD5: 9ad4f2481e2760b0d6c19435cf5dbaf5

Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ seg-5-svar1.ts
#EXTINF:3.800,
#EXT-X-BITRATE:119
seg-6-svar1.ts
#EXTINF:1.597,
#EXT-X-BITRATE:129
#EXTINF:1.195,
#EXT-X-BITRATE:135
seg-7-svar1.ts
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2020-01-01T00:00:29.397+00:00
#EXTINF:4.336,
#EXT-X-PROGRAM-DATE-TIME:2020-01-01T00:00:28.995+00:00
#EXTINF:4.738,
#EXT-X-BITRATE:95
seg-8-svar1.ts
#EXTINF:4.067,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ HEADERS: 200 application/vnd.apple.mpegurl
BODY: #EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=114311,AVERAGE-BANDWIDTH=103529,RESOLUTION=160x120,FRAME-RATE=15.000,CODECS="avc1.64000b,mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=114311,AVERAGE-BANDWIDTH=103525,RESOLUTION=160x120,FRAME-RATE=15.000,CODECS="avc1.64000b,mp4a.40.2"
index-svar1.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=520558,AVERAGE-BANDWIDTH=467406,RESOLUTION=480x256,FRAME-RATE=25.000,CODECS="avc1.42c01e,mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=520459,AVERAGE-BANDWIDTH=467424,RESOLUTION=480x256,FRAME-RATE=25.000,CODECS="avc1.42c01e,mp4a.40.2"
index-svar2.m3u8

URL: /index-svar1.m3u8
Expand Down Expand Up @@ -65,10 +65,10 @@ seg-14-svar1.m4s
seg-15-svar1.m4s
#EXTINF:3.967,
seg-16-svar1.m4s
#EXTINF:3.900,
#EXTINF:4.180,
#EXT-X-BITRATE:97
seg-17-svar1.m4s
#EXTINF:3.940,
#EXTINF:3.660,
seg-18-svar1.m4s
#EXT-X-ENDLIST

Expand Down Expand Up @@ -130,10 +130,10 @@ seg-15-svar2.m4s
#EXTINF:3.967,
#EXT-X-BITRATE:519
seg-16-svar2.m4s
#EXTINF:3.900,
#EXTINF:4.180,
#EXT-X-BITRATE:464
seg-17-svar2.m4s
#EXTINF:3.940,
#EXTINF:3.660,
#EXT-X-BITRATE:410
seg-18-svar2.m4s
#EXT-X-ENDLIST
Expand Down Expand Up @@ -216,11 +216,11 @@ BODY: SIZE: 53817, MD5: 2f4d628356271da975cbbf1ebad3ca39

URL: /seg-17-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 46809, MD5: c1e868d73037d9fe21df7f23ba12b20b
BODY: SIZE: 47471, MD5: 2e37996ce5d8d265f28d78ad667166e7

URL: /seg-18-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 52698, MD5: 509f60ae6cb9c0566d429c7547266d45
BODY: SIZE: 51996, MD5: 061ff3356329cf9cfd51c62d52ca27f4

URL: /init-1-svar2.mp4
HEADERS: 200 video/mp4
Expand Down Expand Up @@ -288,7 +288,7 @@ BODY: SIZE: 89109, MD5: f0607dfee91e2a45d2e410fd16e43552

URL: /init-15-svar2.mp4
HEADERS: 200 video/mp4
BODY: SIZE: 1100, MD5: 5b2b60ccd535ebc031d02047ab3d1875
BODY: SIZE: 1100, MD5: 9651fdbe963c89d430b2609dcdc5e72f

URL: /seg-15-svar2.m4s
HEADERS: 200 video/mp4
Expand All @@ -300,9 +300,9 @@ BODY: SIZE: 259774, MD5: 975deffff34bbcac591e9f2923f8d2ac

URL: /seg-17-svar2.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 231279, MD5: 03a206822e754504eca628ed5d8cf7cb
BODY: SIZE: 233713, MD5: 09d566c1342570aba6f144dcede05f6d

URL: /seg-18-svar2.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 202330, MD5: 7ebe2594d62ceb872e10d033edcbaac8
BODY: SIZE: 199936, MD5: 97d6bbb62643fac29b6c8f24f4d09a3e

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ HEADERS: 200 application/vnd.apple.mpegurl
BODY: #EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=135053,AVERAGE-BANDWIDTH=124032,RESOLUTION=160x120,FRAME-RATE=15.000,CODECS="avc1.64000b,mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=135053,AVERAGE-BANDWIDTH=124027,RESOLUTION=160x120,FRAME-RATE=15.000,CODECS="avc1.64000b,mp4a.40.2"
index-svar1.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=560338,AVERAGE-BANDWIDTH=506005,RESOLUTION=480x256,FRAME-RATE=25.000,CODECS="avc1.42c01e,mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=560233,AVERAGE-BANDWIDTH=506024,RESOLUTION=480x256,FRAME-RATE=25.000,CODECS="avc1.42c01e,mp4a.40.2"
index-svar2.m3u8

URL: /index-svar1.m3u8
Expand Down Expand Up @@ -64,10 +64,11 @@ seg-14-svar1.ts
seg-15-svar1.ts
#EXTINF:3.967,
seg-16-svar1.ts
#EXTINF:3.900,
#EXT-X-BITRATE:118
#EXTINF:4.180,
#EXT-X-BITRATE:117
seg-17-svar1.ts
#EXTINF:3.940,
#EXTINF:3.660,
#EXT-X-BITRATE:118
seg-18-svar1.ts
#EXT-X-ENDLIST

Expand Down Expand Up @@ -128,11 +129,11 @@ seg-15-svar2.ts
#EXTINF:3.967,
#EXT-X-BITRATE:559
seg-16-svar2.ts
#EXTINF:3.900,
#EXTINF:4.180,
#EXT-X-BITRATE:503
seg-17-svar2.ts
#EXTINF:3.940,
#EXT-X-BITRATE:448
#EXTINF:3.660,
#EXT-X-BITRATE:449
seg-18-svar2.ts
#EXT-X-ENDLIST

Expand Down Expand Up @@ -202,11 +203,11 @@ BODY: SIZE: 63732, MD5: 7d431feaacf8283f9218f6e95d62e949

URL: /seg-17-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 57716, MD5: f07fc680d001a76915033f6361085c7a
BODY: SIZE: 57716, MD5: 864c61844969b8e9f066f735f29a016a

URL: /seg-18-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 63732, MD5: db0514f6f4369a9fe1eb768028191d4c
BODY: SIZE: 63732, MD5: df425d1e2e7163e830c1a418ca3e00f8

URL: /seg-1-svar2.ts
HEADERS: 200 video/mp2t
Expand Down Expand Up @@ -274,9 +275,9 @@ BODY: SIZE: 280308, MD5: 9173c6436fd4bf2f499c22447e2a6894

URL: /seg-17-svar2.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 250228, MD5: a3b0de76b4ae9b21f68eefbd509a72f2
BODY: SIZE: 253236, MD5: 4fae68d0eb68da50a2f4c5a8ab0787b2

URL: /seg-18-svar2.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 220148, MD5: b14c4131942c68c3485e64d958987676
BODY: SIZE: 217140, MD5: fa8b1b4fcf1e2957c3336d5b91be07cd

38 changes: 16 additions & 22 deletions nginx-live-module/test/tests/ref/inter_frame_pts_jump-hls-fmp4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HEADERS: 200 application/vnd.apple.mpegurl
BODY: #EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=124111,AVERAGE-BANDWIDTH=107844,RESOLUTION=160x120,FRAME-RATE=15.000,CODECS="avc1.64000b,mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=124111,AVERAGE-BANDWIDTH=109282,RESOLUTION=160x120,FRAME-RATE=15.000,CODECS="avc1.64000b,mp4a.40.2"
index-svar1.m3u8

URL: /index-svar1.m3u8
Expand Down Expand Up @@ -34,24 +34,22 @@ seg-5-svar1.m4s
#EXT-X-BITRATE:104
seg-6-svar1.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2020-01-01T00:00:22.424+00:00
#EXTINF:1.078,
#EXT-X-BITRATE:89
#EXT-X-PROGRAM-DATE-TIME:2020-01-01T00:00:22.848+00:00
#EXTINF:4.952,
#EXT-X-BITRATE:91
seg-7-svar1.m4s
#EXTINF:4.298,
#EXT-X-BITRATE:88
seg-8-svar1.m4s
#EXTINF:3.933,
seg-9-svar1.m4s
#EXT-X-BITRATE:92
seg-8-svar1.m4s
#EXTINF:4.000,
#EXT-X-BITRATE:112
seg-10-svar1.m4s
seg-9-svar1.m4s
#EXTINF:4.067,
seg-11-svar1.m4s
seg-10-svar1.m4s
#EXTINF:3.933,
seg-12-svar1.m4s
seg-11-svar1.m4s
#EXTINF:2.065,
seg-13-svar1.m4s
seg-12-svar1.m4s
#EXT-X-ENDLIST

URL: /init-1-svar1.mp4
Expand Down Expand Up @@ -84,29 +82,25 @@ BODY: SIZE: 26158, MD5: f5a79362beb6b7c7198bbfec1dc96f27

URL: /seg-7-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 19572, MD5: ab96231fae518caad6713a3ba0a1ff66
BODY: SIZE: 64208, MD5: 0821437c32e37f9f9b0236bd11496cde

URL: /seg-8-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 45483, MD5: ce0edc8587f1b37d0332b9cdae24dc12
BODY: SIZE: 45313, MD5: a145cd9058eba015c2779218f6d32e7d

URL: /seg-9-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 45313, MD5: e417532473ac0afd7f59de779f668ee2
BODY: SIZE: 56155, MD5: b8007ad46ac866adc94f6313d476311d

URL: /seg-10-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 56155, MD5: 80d44fe7dd85278496e25474276eff4b
BODY: SIZE: 60466, MD5: 838f57d0c626eab121aae094c86fc9f6

URL: /seg-11-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 60466, MD5: 4f9eb504aa2647246ccb2140d323c148
BODY: SIZE: 54969, MD5: 0e09946bafab2a5b48374082bd06f92f

URL: /seg-12-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 54969, MD5: d8439f2b07dd824b84a1fd9d7dd1f4ae

URL: /seg-13-svar1.m4s
HEADERS: 200 video/mp4
BODY: SIZE: 35464, MD5: f5385cf26e60e889cb42820cc942aa47
BODY: SIZE: 35464, MD5: 05c467c24eb077ef2ced00da15cb08a0

38 changes: 16 additions & 22 deletions nginx-live-module/test/tests/ref/inter_frame_pts_jump-hls-ts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HEADERS: 200 application/vnd.apple.mpegurl
BODY: #EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=145071,AVERAGE-BANDWIDTH=128446,RESOLUTION=160x120,FRAME-RATE=15.000,CODECS="avc1.64000b,mp4a.40.2"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=145071,AVERAGE-BANDWIDTH=129914,RESOLUTION=160x120,FRAME-RATE=15.000,CODECS="avc1.64000b,mp4a.40.2"
index-svar1.m3u8

URL: /index-svar1.m3u8
Expand Down Expand Up @@ -34,26 +34,24 @@ seg-5-svar1.ts
#EXT-X-BITRATE:131
seg-6-svar1.ts
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2020-01-01T00:00:22.424+00:00
#EXTINF:1.078,
#EXT-X-BITRATE:128
#EXT-X-PROGRAM-DATE-TIME:2020-01-01T00:00:22.848+00:00
#EXTINF:4.952,
#EXT-X-BITRATE:111
seg-7-svar1.ts
#EXTINF:4.298,
#EXT-X-BITRATE:108
seg-8-svar1.ts
#EXTINF:3.933,
seg-9-svar1.ts
#EXT-X-BITRATE:112
seg-8-svar1.ts
#EXTINF:4.000,
#EXT-X-BITRATE:132
seg-10-svar1.ts
seg-9-svar1.ts
#EXTINF:4.067,
seg-11-svar1.ts
seg-10-svar1.ts
#EXTINF:3.933,
#EXT-X-BITRATE:133
seg-12-svar1.ts
seg-11-svar1.ts
#EXTINF:2.065,
#EXT-X-BITRATE:139
seg-13-svar1.ts
seg-12-svar1.ts
#EXT-X-ENDLIST

URL: /seg-1-svar1.ts
Expand Down Expand Up @@ -82,29 +80,25 @@ BODY: SIZE: 33652, MD5: 199644143b53f9929adab23c6b31f9e5

URL: /seg-7-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 27636, MD5: d2fe6ef7cd3f1c2fae65c2e63a689765
BODY: SIZE: 78772, MD5: 3aaf6fec61119dc118640bb9b05fdcb0

URL: /seg-8-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 54708, MD5: 2e8b584f1a162eb6a7bdd8e7bb0a9590
BODY: SIZE: 57716, MD5: 082c7a81563871af3cbbe2ab69e2d1ae

URL: /seg-9-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 57716, MD5: 5052c5f3eab6e958c64ad82f6e9f69a6
BODY: SIZE: 66740, MD5: 5a55cfe10fcbd56bb3d2167687bfad43

URL: /seg-10-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 66740, MD5: 6bf34473fc35ffc56a75ca6bcd7bb59a
BODY: SIZE: 69748, MD5: da186790796ae6ca40cc959c4b394971

URL: /seg-11-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 69748, MD5: a09ede711c7a462cb812f01e9bc79045
BODY: SIZE: 66740, MD5: a228a5e89b242ae4c37a9c8098d43e67

URL: /seg-12-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 66740, MD5: f8c59c0ea2afb3fc59dd1d351860a66c

URL: /seg-13-svar1.ts
HEADERS: 200 video/mp2t
BODY: SIZE: 42676, MD5: 89884f95eeec088f13ef7ec91f771cac
BODY: SIZE: 42676, MD5: 444a04b20c99d3c55dcca7abb0b5aa66

Loading

0 comments on commit 8627923

Please sign in to comment.