Streaming a MP4 to Browser

Open
#89 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale

Research direction

This is a feasibility question rather than a scoped change: the reporter asks whether mp4box.js can demux a live MP4 stream over one websocket instead of two, and no files, APIs or acceptance criteria are given. Read the three existing comments first to see whether a maintainer answered; the payload shows no linked pull request and no decision. A useful outcome would be a concrete answer plus, if live demuxing is unsupported, a design proposal for streaming container input — not a first patch.

Written by the indexing model from the issue text.

Description

enhancement

Hi,

I have being working on a project to build a live streaming solution without the use of HLS or DASH mpeg due to latency issues and cross platform solution.

The Idea was to make the browser decode a H264 video frames and also AAC audio frames.

I manage to do so by using two websocket to stream one video and once audio from FFMPEG.

However I have issues with Syncing the audio/video.

I wanted to know if mp4box.js has the option to demux a live stream mp4 container.
If so, I would use only 1 websocket and demux the stream to play the h264/aac.
Thanks
Sassy

Dominant language
TypeScript
Stars
2.5k
Forks
390
Avg merge
1d 17h
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gpac/mp4box.js

All issues in gpac/mp4box.js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.