It's not your fault.
FFmpeg can rarely fail to perfectly sync my video with the audio in the chosen file.
I don't know how you solved it (there are so many ways), the easiest for me is to use the -itsoffset switch inside the second command.
-itsoffset must be placed before the second input (i.e. the file from which FFmpeg will take the audio ... look at the red part in the example)
Use a positive value (in this specific case, 170ms) if the audio starts before the video (aka “you have to slow down the audio”).src\Gpac\gpac.exe -i pipe://video:ext=hevc:audelim=true -o stdout:ext=ts:pes_pack=none | src\FFmpeg\ffmpeg_win_x64.exe -hide_banner -y -i - -itsoffset 170ms -i \path\to\your\original\file.m2ts -map 0:0 -map 1:2 -c copy -bsf:v hevc_metadata=aud=insert -metadata title="Movie Title_________________________________________________________________________" \path\to\your\output\file.mkv
Use a negative value (in this specific case, -170ms) if the video starts before the audio (aka “you have to slow down the video”).
Forgive me, I did not understand what you are referring to.DaMacFunkin wrote: ↑Sun Nov 01, 2020 1:20 pm