Closed mekya closed 2 years ago
After investigating the issue deeply we found that the issue is related to the encoder settings.
We create a video file with the gstreamer command in the issue. We observed the same issue while publishing this video with RTMP to AMS. When we transcode the video with following ffmpeg command sync problem is fixed.
ffmpeg -i input.mp4 -c:v libx264 -preset fast -profile baseline -tune zerolatency -c:a copy output.mp4
Short description
With following devices
On the Xavier device we use Gstreamer for streaming using the following script:
The problem is that if we don’t enable adaptive streaming, then there is absolutely no problem and video + audio are sync.
If we enable adaptive streaming (2160p@25000kbps video and 256 kbps audio, 1080p@5000kbps video and 256 kbps audio, 720p@1500kbps video and 128 kbps audio, 480p@1000 kbps video and 96 kbps audio) then the video is not sync with audio. Audio arrives about 1 second later.
Consider that GPU is not overloaded, it is about 17% and CPU is around 4%.
Environment
Steps to reproduce
Expected behavior
Video and audio should be in-sync
Actual behavior
Audio is coming earlier than the video
I've the credentials to connect to the workstation. Please reach out to me to provide this information.