Skip to content Skip to sidebar Skip to footer

Feed Raw Yuv Frame To Ffmpeg With Timestamp

I've trying pipe audio and video raw data to ffmpeg and push realtime stream through RTSP protocol on android. the command-line is look like this 'ffmpeg -re -f image2pipe -vcodec

Solution 1:

FFmpeg adds timestamps the moment it retrieves the samples from the pipe, so all you need to do is feed them in sync. Likely problem in your case is that you already have an audio buffer, and are offering video frames in real time. That makes audio late. You must buffer video frames to the same amount of time as you are buffering audio. If you have no control over your audio buffer size, then try to keep it as small as possible, monitor its size and adjust your video buffering accordingly.


Post a Comment for "Feed Raw Yuv Frame To Ffmpeg With Timestamp"