Hi,
My source data for video are YUV video frames that arrive with a time stamp.
My source data for audio are samples containing PCM data. I derive timing information from the number of samples and the bit rate.
I am currently successfully creating MP4 and AAC files using SyncWriter from both sourcesindividually.
However when I try to combine the two into a single MP4 file, I get video written to the file briefly (~2 seconds) and the audio stops after writing a single sample.
I think the issue is to do with timing the samples into sync writer. I currently assign timing information from SetSampleDuration and SetSampleTime.
I've seen people use SendStreamTick, however I'm not sure if this is necessary for me.
Are there any examples of writing audio and video streams into a single file?
Thanks