RepositoryJavaScript
webstream-labs

webstream-labs/jmuxer

jMuxer - a simple javascript mp4 muxer that works in both browser and node environment.

648sao
124fork
4issue
7lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: aac

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: media-source-extension

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: mp4-muxer

#1 Repository của tháng

🎬 jMuxer — Trình muxer MP4 JavaScript chạy cả trình duyệt lẫn Node.js

Một thư viện JavaScript nhỏ gọn chuyển đổi stream H264/H265 thô và AAC thành MP4 phát được trên trình duyệt qua Media Source Extension, hoặc xuất file MP4 ở môi trường Node.js.

jMuxer là trình muxer MP4 đơn giản bằng JavaScript, hoạt động đồng thời trên trình duyệt và Node.js. Dự án không phụ thuộc vào giao thức truyền tải cụ thể nào — nhận dữ liệu video H264/H265 và âm thanh AAC ở dạng raw (bao gồm cả ADTS) làm đầu vào, sau đó mux thành MP4 tương thích với MSE trên trình duyệt hoặc xuất ra stream Node.js. Thư viện này phù hợp cho các ứng dụng cần phát trực tiếp stream RTSP/HLS hoặc chuyển đổi dữ liệu video thô thành định dạng MP4 mà không cần server bên ngoài.

✨ Điểm nổi bật

  • Hỗ trợ cả trình duyệt và Node.js: Cùng một API, dùng trong browser qua MSE hoặc xuất MP4 ở Node.js với createStream()
  • Input raw H264/H265 + AAC: Nhận trực tiếp dữ liệu video H264/H265 và âm thanh AAC (ADTS), không cần decode trước
  • Protocol agnostic: Không ràng buộc với giao thức truyền tải, dễ tích hợp vào WebRTC, WebSocket, HTTP stream
  • API feed-based: Gửi từng chunk dữ liệu qua phương thức feed() với audio, video, duration — phù hợp cho streaming real-time
  • Bộ nhớ đệm linh hoạt: Cấu hình flushingTime, maxDelay, clearBuffer để tinh chỉnh hành vi bộ đệm
  • Callback sự kiện phong phú: onReady, onData, onError, onKeyframePosition, onMissingVideoFrames, onMissingAudioFrames, onUnsupportedCodec
  • Hỗ trợ B-frames: Thông số compositionTimeOffset cho phép xử lý đúng sai lệch giữa decode time và presentation time
  • Debug mode: Bật log chi tiết qua debug: true với callbacks tùy chỉnh onLoggerLog và onLoggerErr

💡 Vì sao đáng chú ý

jMuxer giải quyết bài toán phổ biến khi cần phát video H264 thô trực tiếp trên trình duyệt mà không phải qua server chuyển đổi định dạng phức tạp. Thay vì phải thiết lập toàn bộ pipeline FFmpeg hay server-side remuxing, jMuxer cho phép gửi raw bitstream vào trình duyệt và MSE sẽ xử lý phần còn lại — chỉ với vài dòng JavaScript.

Dự án đặc biệt hữu ích cho các ứng dụng xem camera IP (RTSP), streaming nội dung H264 từ WebRTC, hoặc build player tùy chỉnh cho HLS. Phiên bản Node.js cũng mở ra khả năng mux MP4 server-side để lưu trữ hoặc forward stream, biến jMuxer thành một công cụ linh hoạt cho cả hai phía client và server.


#JavaScript #MP4 #Muxer #MSE #H264 #HLS #RTSP #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC
FFmpeg/FFmpeg

Mirror of https://git.ffmpeg.org/ffmpeg.git

68.4k
Nov 29, 2026
RepositoryHTML
datarhei/restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.

5.3k
May 22, 2026
RepositoryC
ireader/media-server

RTSP/RTP/RTMP/FLV/HLS/MPEG-TS/MPEG-PS/MPEG-DASH/MP4/fMP4/MKV/WebM

3.5k
Oct 10, 2026
RepositoryC++
axiomatic-systems/Bento4

Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools

2.5k
Nov 22, 2026
RepositoryJavaScript
bytedance/xgplayer

A HTML5 video player with a parser that saves traffic

9.3k
Nov 26, 2026
RepositoryJavaScript
mediaelement/mediaelement

HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

8.3k
May 12, 2026
RepositoryJavaScript
clappr/clappr

An extensible, plugin-oriented, HTML5-first media player for the web

7.5k
Nov 26, 2026
RepositoryJavaScript
numberwolf/h265web.js

https://h265web.com 🔥 作者:常炎隆(Author: ChangYanlong):HEVC/H.265 网页直播/点播播放器 支持硬解! 支持H.265的HttpFLV/HLS/MP4/TS/FLV/M3U8/Websocket/WebRTC/VR360播放。 🔥 A HEVC/H.265 Web Player, Support hard-decoding! for LIVE/VOD stream. Support H.265 Codec with HttpFLV/HLS/MP4/TS/FLV/M3U8/Websocket/WebRTC/VR360.

2.4k
Oct 28, 2026
RepositoryJavaScript
zhw2590582/FlvPlayer

:lollipop: FlvPlayer.js is a JavaScript player for decode flv to the canvas

302
Nov 21, 2021