How to Transmux NAL Units Stream to fragmented mp4
See original GitHub issueI have a stream of NAL packets coming in through the websocket. I would like to know how to setup so sent the NAL units into the Transmuxer so it output is a mp4. I was trying like this but i did not see any events getting triggered
let muxer = new muxjs.Transmuxer();
muxer.init();
muxer.on( 'data', segment =>
{
console.log( segment );
}
function onNalUnitReceived( nalUnit )
{
muxer.push( nalUnit );
}
How do i convert the nalUnit i receive in onNalUnitReceived
callback to an mp4
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:11 (1 by maintainers)
Top Results From Across the Web
How do I play a stream of H.264 NAL units in a video tag with ...
If you receive a stream data e.g. hls, nalu h.264...and so on, you can transform and mux that into a fragmented mp4.
Read more >Introducing Thumbcoil - Brightcove
A media container such as MP4 encapsulates the video and audio stream. It has metadata describing the streams, timing information for each frame, ......
Read more >FFMPEG: Error splitting the input into NAL units / Timestamps ...
FFMPEG: Error splitting the input into NAL units / Timestamps are unset in a packet for stream 0 when changing from avi to...
Read more >Nimble Streamer previous release notes
Fix NAL unit delimiter trimming to avoid playback issues of some VOD streams on MacOS and iOS devices; Cache audio files' structure to...
Read more >0x8007065e Data of this type is not supported
I'm writing a service that performs a transmux of a live stream into MP4 for IIS 4 ... I should be able to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PR #200 should solve this issue.
Do you have any luck with this task? I have raw h264 stream extracted from mkv container. And I also getting empty segment.data array.