Hello @lorenzo
We are facing video audio sync issue while post-processing the reccording.
Im using Video-room plugin. Once the recordings are received the audio.mjr and video.mjr when i convert it into opus and webm and merge using ffmpeg the audio video mismatch is happening. When i checked indivual audio and video duration both the duration are different is this causing the iissue?.
MJR files have info in them on when each file was created, and when the first frame was written into it. You can use that info to implement proper alignment.
Hi @lorenzo Thanks for the reply, I used --header option in janus-pp-rec tool, for audio and vedio. both the timestamps were same. Since the timeStamps were same i’m not able to instruct ffmpeg tool to process accordingly.
Also i saw the duration of audio and video were different. The video duration was 3min26sec where the audio is 3min22sec
below is the attached reference.
Logging level: 4
Source file: videoroom-847639-user-7130559698337926-1717056607851091-video.mjr -- Showing header only
File is 44170206 bytes
Pre-parsing file to generate ordered index...
Video orientation extension ID: 13
This is a video recording:
-- Codec: vp8
Created: 1717056607851093
Written:
1717056607857461
manjunatha@administrator-H110M-H:~/Downloads/VK20240530847639$ cat audio_header.txt
Janus version: 118 (0.11.8)
Janus commit: not-a-git-repo
Compiled on: Tue Feb 22 20:11:26 UTC 2022
Logging level: 4
Source file: videoroom-847639-user-7130559698337926-1717056607851091-audio.mjr Showing header only
File is 758908 bytes
Pre-parsing file to generate ordered index...
This is an audio recording:
Codec: opus
--Created: 1717056607851028
Written: 1717056607853697
man junatha@administrator-H110M-H:~/Downloads/VK20240530847639$type or paste code here