Re: [Live-devel] Adding secondary audio track to existing H264 RTP stream

2018-03-28 Thread Ross Finlayson
Marcin, Reading your email once again, I realized that my first response wasn’t a proper answer to your question - because you are not transmitting the audio data (over RTP), but are instead are recording it into a Transport Stream file. Because of this, you *do*, indeed, need to call "schedul

Re: [Live-devel] Adding secondary audio track to existing H264 RTP stream

2018-03-28 Thread Ross Finlayson
> How to read this file in native speed (read every packet every 21.3ms) using > ADTSFileSource? > Using scheduleDelayedTask every 21.3 ms to get new packet on time is bad > option - that was wrong approach - took a lot of CPU. Marcin, I’m not totally sure I understand what you’re trying to do

[Live-devel] Adding secondary audio track to existing H264 RTP stream

2018-03-28 Thread Marcin
Hello Ross, I try to use your library to do something different. I got an RTSP input source with only video track (40ms PTS diff, 25 fps, H264) I need to add an audio track with AAC (from local file) and mux it together in TS. The problem is that as i recieve video NAL unit every 40ms at *almost