[FFmpeg-user] Audio/Video desync

Rodriguez, Josue Josue.Rodriguez at tylertech.com
Tue Jul 20 18:44:47 EEST 2021


Hello,

I’m trying to capture x11 screen recording and pulse audio and mux them into one rtp output stream but I’m having issues when it comes to the actual muxing part. If I record only audio or only video then the resulting output stream plays with little issue but once I mux them together then the stream gets jittery and the audio drops/stutters randomly. Here’s my FFMPEG commands (launched from JavaScript)

[cid:image001.png at 01D77D53.B51EEF60]

Here is the resulting cli logs:

[cid:image003.png at 01D77D54.413BEC50]

>From what I’ve seen this has to do with the separate timestamps for each stream not lining up correctly and causing playback error I’m just not sure how to fix it. Forward Error Correction has had no effect. Any ideas on how I can ensure the tracks are synced?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DF11BE6FE61B4253BB5583C169ABCBA9.png
Type: image/png
Size: 12172 bytes
Desc: DF11BE6FE61B4253BB5583C169ABCBA9.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210720/e15b983b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3C54D027EE6B42CF98D269C1945846E2.png
Type: image/png
Size: 182222 bytes
Desc: 3C54D027EE6B42CF98D269C1945846E2.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210720/e15b983b/attachment-0001.png>


More information about the ffmpeg-user mailing list