mediabunny 1.44.2 → 1.45.0

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.
Files changed (49) hide show
  1. package/README.md +8 -8
  2. package/dist/bundles/mediabunny.cjs +1297 -447
  3. package/dist/bundles/mediabunny.min.cjs +17 -17
  4. package/dist/bundles/mediabunny.min.mjs +17 -17
  5. package/dist/bundles/mediabunny.mjs +1297 -447
  6. package/dist/bundles/mediabunny.node.cjs +1297 -447
  7. package/dist/mediabunny.d.ts +219 -15
  8. package/dist/modules/src/conversion.d.ts +5 -5
  9. package/dist/modules/src/conversion.d.ts.map +1 -1
  10. package/dist/modules/src/conversion.js +58 -162
  11. package/dist/modules/src/encode.d.ts +9 -4
  12. package/dist/modules/src/encode.d.ts.map +1 -1
  13. package/dist/modules/src/encode.js +5 -3
  14. package/dist/modules/src/flac/flac-demuxer.d.ts.map +1 -1
  15. package/dist/modules/src/flac/flac-demuxer.js +1 -1
  16. package/dist/modules/src/index.d.ts +1 -1
  17. package/dist/modules/src/index.d.ts.map +1 -1
  18. package/dist/modules/src/index.js +1 -1
  19. package/dist/modules/src/input-format.d.ts.map +1 -1
  20. package/dist/modules/src/input-format.js +2 -1
  21. package/dist/modules/src/isobmff/isobmff-muxer.js +1 -1
  22. package/dist/modules/src/media-sink.d.ts +31 -0
  23. package/dist/modules/src/media-sink.d.ts.map +1 -1
  24. package/dist/modules/src/media-sink.js +353 -79
  25. package/dist/modules/src/media-source.d.ts +30 -0
  26. package/dist/modules/src/media-source.d.ts.map +1 -1
  27. package/dist/modules/src/media-source.js +287 -148
  28. package/dist/modules/src/misc.d.ts +1 -4
  29. package/dist/modules/src/misc.d.ts.map +1 -1
  30. package/dist/modules/src/misc.js +4 -4
  31. package/dist/modules/src/sample.d.ts +200 -8
  32. package/dist/modules/src/sample.d.ts.map +1 -1
  33. package/dist/modules/src/sample.js +820 -99
  34. package/dist/modules/src/source.d.ts +1 -1
  35. package/dist/modules/src/source.d.ts.map +1 -1
  36. package/dist/modules/src/source.js +8 -5
  37. package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +7 -6
  39. package/src/conversion.ts +70 -192
  40. package/src/encode.ts +14 -6
  41. package/src/flac/flac-demuxer.ts +2 -1
  42. package/src/index.ts +6 -0
  43. package/src/input-format.ts +2 -1
  44. package/src/isobmff/isobmff-muxer.ts +1 -1
  45. package/src/media-sink.ts +450 -93
  46. package/src/media-source.ts +356 -168
  47. package/src/misc.ts +5 -5
  48. package/src/sample.ts +1129 -112
  49. package/src/source.ts +11 -7
package/README.md CHANGED
@@ -78,14 +78,14 @@ Mediabunny is a JavaScript library for reading, writing, and converting media (l
78
78
 
79
79
  Core features include:
80
80
 
81
- - **Wide format support**: Read **and** write MP4, MOV, WebM, MKV, HLS, WAVE, MP3, Ogg, ADTS, FLAC, MPEG-TS
82
- - **Built-in encoding & decoding**: Supports 25+ video, audio, and subtitle codecs, hardware-accelerated using the WebCodecs API
83
- - **High precision**: Fine-grained, microsecond-accurate reading and writing operations
84
- - **Conversion API**: Easy-to-use API with features such as transmuxing, transcoding, resizing, rotation, cropping, resampling, trimming, and more
85
- - **Streaming I/O**: Handle reading & writing files of any size with memory-efficient streaming
86
- - **Tree-shakable**: Only bundle what you use (as small as 5 kB gzipped)
87
- - **Zero dependencies**: Implemented in highly performant TypeScript
88
- - **Cross-platform**: Works in browsers and Node.js
81
+ - Wide format support: Read _and_ write MP4, MOV, WebM, MKV, HLS, WAVE, MP3, Ogg, ADTS, FLAC, MPEG-TS
82
+ - Built-in encoding & decoding: Supports 25+ video, audio, and subtitle codecs, hardware-accelerated using the WebCodecs API
83
+ - High precision: Fine-grained, microsecond-accurate reading and writing operations
84
+ - Conversion API: Easy-to-use API with features such as transmuxing, transcoding, resizing, rotation, cropping, resampling, trimming, and more
85
+ - Streaming I/O: Handle reading & writing files of any size with memory-efficient streaming
86
+ - Cross-platform: Works in all browsers as well as in Node, Bun, and Deno using [`@mediabunny/server`](https://github.com/Vanilagy/mediabunny/blob/main/packages/server/README.md)
87
+ - Tree-shakable: Only bundle what you use (as small as 5 kB gzipped)
88
+ - Zero dependencies: Implemented in highly performant TypeScript
89
89
 
90
90
  [See full feature list](https://mediabunny.dev/guide/introduction#features)
91
91