question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to Transmux NAL Units Stream to fragmented mp4

See original GitHub issue

I 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:open
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
gwolnycommented, Jun 29, 2018

PR #200 should solve this issue.

1reaction
DmitriyKarpovcommented, Apr 26, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found