My mux format is MP4 - audio is AAC, video is h264.
Push/pull doesn't work on this case because it's a live feed. The sample grabbers for each input are already pushing the raw data to the first transcoders. The transcoders then need to push the data to the next transcoder automatically somehow as a while loop will just chew up resources.
If there's anything else you need to help me resolve this let me know - really appreciate it!
James
You've tried to use a customized output stream to pass the encoded audio and video to the muxer.
However that doesn't work because the stream provides only the encoded bytes and there is no time.
The muxer expects that all samples that are pushed have valid time (MediaSample.StartTime).
The sample start time should always increase with respect to the previous sample from the same stream (audio or video).
You have to use Transcoder.Pull to obtain the encoded video and audio samples together with their associated time
and then push the samples to the muxer.
We'll prepare a sample code based on CaptureDS.
It will use 3 transcoders (for audio and video encoding and for muxing).
Encoded audio is logged separately as a file.