First chunk freezing when splitting into segments

0

I've got an html5 video player on my website in which I combine a video track with a standalone audio track. It's done on-the-fly using an m3u8 playlist. The purpose is to have one video file with voiceovers in different languages. The video is an MP4 file split into TS segments, the audio is an AAC file split into TS segments as well.

Previously I had been splitting these videos using ffmpeg. A simple command, no extra settings:
ffmpeg -i video.mp4 -hls_list_size 0 -g 60 -hls_time 5 video.m3u8

Then I started doing the same thing in MediaConvert with seemingly the same settings and noticed a problem in the video player — the audio skips ahead like half a second at the beginning. Meaning the video starts properly but the audio is offset.

Initially I didn't think it's about the video because, once again, the video and audio tracks are separate files that are combined on-the-fly. But it turned out that if I use the TS video files generated by ffmpeg, the audio and video are synced. If I replace them with the Mediaconvert segments, with everything else remaining the same, it's out of sync.

I've played with nearly all MediaConvert settings to no avail. Checked the files with ffprobe, they seem to be identical. What could the reason possible be?

Here are the links:

Edited by: Denisodb on Jul 14, 2021 9:50 AM

질문됨 3년 전288회 조회
1개 답변
0

Turned out it's not about the video after all. Well, technically at least. The problem, as I understand it, was a conflict between an audio track split in segments via ffmpeg and a video track split via mediaconvert. I had to re-cut all the audios via mediaconvert and only then it started working properly.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠