videojs / mux.js

Lightweight utilities for inspecting and manipulating video container formats.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to mux a stream?

TroyKomodo opened this issue · comments

commented

Consider a buffer coming via a websocket
-> the buffer is not a complete file (ie not a full hls segment)

It's definitely possible, but I think you basically need to segment it on the client side. We don't currently support raw h264 (there's a PR but we're not sure we can maintain it).

commented

Segment on client side?
I segmented on server side and sent one second segments up and it worked fine, when i sent segments with varying length the remuxer worked correctly but the MediaSource rejected the remuxed data.

commented

^ such as hls_time at 1s (where all segments are exactly 1s) worked fine but segmenting video at 0.1s failed as the segment function returned video of length 0.12s and 0.13. If i did not set a GOP size the remuxer still accepts but the media source rejects as the segments are now not exactly 1 seconds on the hls example.