jmuxer 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/README.md +6 -7
- package/dist/jmuxer.js +2770 -2020
- package/dist/jmuxer.min.js +1 -3416
- package/eslint.config.mjs +21 -0
- package/package.json +14 -27
- package/rollup.config.js +13 -4
- package/src/controller/remux.js +2 -2
- package/src/jmuxer.js +1 -1
- package/src/parsers/h264.js +5 -3
- package/src/parsers/h265.js +195 -9
- package/src/remuxer/h264.js +17 -13
- package/src/remuxer/h265.js +24 -17
- package/src/util/debug.js +0 -2
- package/src/util/utils.js +20 -0
- package/karma.conf.js +0 -77
- package/test/event.js +0 -30
- package/test/parser.js +0 -35
- package/test/utils.js +0 -19
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[](https://github.com/samirkumardas/jmuxer/actions/workflows/pages/pages-build-deployment)
|
|
2
|
+

|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
jMuxer
|
|
@@ -8,9 +8,9 @@ jMuxer - a simple javascript mp4 muxer that works in both browser and node envir
|
|
|
8
8
|
|
|
9
9
|
Live Demo
|
|
10
10
|
-------
|
|
11
|
-
[Click here](https://
|
|
11
|
+
[Click here](https://webstream-labs.github.io/jmuxer/) to view a working demo
|
|
12
12
|
|
|
13
|
-
[Click here](https://
|
|
13
|
+
[Click here](https://webstream-labs.github.io/jmuxer/h264_player.html) to play a h264 file online
|
|
14
14
|
|
|
15
15
|
How to use?
|
|
16
16
|
-------
|
|
@@ -96,6 +96,8 @@ Media dataObject may have following properties:
|
|
|
96
96
|
|
|
97
97
|
*compositionTimeOffset* - Composition time offset, difference between decode time and presentation time of frames, in milliseconds. This is only used for video and usually needed when B-frames are present in video stream.
|
|
98
98
|
|
|
99
|
+
*isLastVideoFrameComplete* - true/false. whether the last frame in the buffer provided is complete and can be immediatly pushed to the remuxer. Frame in this context refers to a H264/H265 frame, which might or might not correspond to a frame of video. This flag allows to remove a 1 frame delay which is naturally present because jMuxer doesn't know if the data it received is complete unless the next NALU header is received; use this only if you are sure of it, otherwise issues may arrise. Defaults to false.
|
|
100
|
+
|
|
99
101
|
**ES6 Example:**
|
|
100
102
|
|
|
101
103
|
Install module through `npm`
|
|
@@ -213,9 +215,6 @@ A distribution version is available inside *dist* directory. However, if you nee
|
|
|
213
215
|
3. npm install
|
|
214
216
|
4. npm run build OR npm run pro
|
|
215
217
|
|
|
216
|
-
Support
|
|
217
|
-
-----------
|
|
218
|
-
If the project helps you, [buy me a cup of coffee!](https://www.paypal.com/cgi-bin/webscr?cmd=_donations¤cy_code=USD&business=samir@ascendtechnologies.net&item_name=donation%20for%20jMuxer)
|
|
219
218
|
|
|
220
219
|
Credits
|
|
221
220
|
-----------
|