
See the following figure for the different transcoding script options: Each start/stop makes one session, and the -m parameter generates multiple UID_XX_merge_av.mp4 files.
The start and stop parameters manage and separate the recorded files.
Mplayerx sound and video out of sync manual#
triggerMode = 1 is the manual recording mode. The -m parameter merges all audio and video files of one uid and generates a single UID_0_merge_av.mp4 file. triggerMode = 0 is the automatic recording mode. If multiple audio and video files are generated after the recording, and you wish to merge the MPEG-4 files of different sessions by the uid, transcoding merges them into different MPEG-4 files such as UID_0_merge_av.mp4, UID_1_merge_av.mp4, and UID_2_merge_av.mp4. A new audio and video file is generated, and a new UIDHHMMSSMSav.mp4 file is generated for the new session. If a uid leaves a channel and rejoins it after 15 seconds, the Agora On-premise Recording SDK considers this as two separate sessions. A new audio file is not generated but a new video file is generated and merged into the audio and video file, and a UIDHHMMSSMSav.mp4 file is generated. If a uid leaves a channel and rejoins it within 15 seconds, the Agora On-premise Recording SDK considers this session as one. To merge the audio and video files by the session: If multiple audio and video files are generated after the recording, transcoding merges them into one MPEG-4 file in the format of UID_HHMMSSMS_av.mp4. If multiple audio files are generated after the recording, transcoding merges them into one M4A file in the format of UIDHHMMSSMS.m4a. The parameter for setting the resolution of transcoding in the “width height” format. The default value indicates “always recording”. Make sure that you use this parameter together with -m = 1, 2 or 3. The saving mode that indicates if the transcoding should be strictly synchronized with time in other words, if the time interval when the user is not in the channel is in the recorded file. The parameter for setting the frame rate in both composite and individual recording. 3: Merge the video files of the same uid into a file chronologically. 2: Merge the audio files of the same uid into a file chronologically.
1: Merge the audio and video files of the same uid into a file chronologically.Merge the audio and video files of one session into one file. The directory of the file to be transcoded.