Hello:
I would like to sync an AC3 audio with a video, but I don't know well how to do it, and I would like to do it in a lossless way, if it is possible.
I have checked that the audio fit to the destionation video in length, the only problem is that the video, that is an episode of a serie, has some black transitions. This transitions are different in the video in the video in which I take the audio and the destination video.
For that, the first process that I think I have to do it is to know where to remove or add silences. For that, I convert boths audios (the audio that I want to sync and the audio of the video in which I want to add the synchronized audio) to a stereo wav, open then in a audio editor and sync it manually.
Is this the correct way, or are there a better way than do it manually?
Once I know where to cut and where to add silences, I was thinkin to use EAC3To or FFMPEG to cut the audio in parts, add create audios for the silences and then join them in a new file.
In this case, my doubt it is if to cut or add silences to a AC3 it is a lossless process or it is a lossy process because it is needed to decode the audio and reencode again? Although if I use the same parameters to reencode, I would lose quality if I have to reencode.
And another question it is how much accurate it is to cut and add silences with AC3To or FFMPEG. I mean, if in the audio editor I see that I have to cut for example 847ms, with EAC3To or FFMPEG, would I cut this length or it would have some range of accurate?
So in sumary, I would like to know a general guides to know how to sync the audio with the video and how could I do it in a lossless process.
Thanks.
+ Reply to Thread
Results 1 to 7 of 7
-
-
AC3 is a lossy format, so any modification will require a re-encode. Just keep a high bitrate for the new file for best results
Last edited by davexnet; 3rd Jan 2024 at 17:13.
-
You can use Mpeg Video Wizard DVD for this.
Load the video in the top line and the Ac3 audio in the third line. Right-click on the video stream, select Audio, Show Audio peaks.
Do the same for the AC3 stream.
Then you can use the peaks to compare both streams and adjust, shorten, cut and move the audio stream accordingly.
When you are finished, select the video track and delete it so that only the modified AC3 stream is left.
Then click on Save.
[Attachment 75937 - Click to enlarge] -
AC3 use fixed packet size so lossless operation can be only with this type of accuracy - ProWo recommended good way to achieve success but you need to verify at the end if muxing was done properly - small few tens ms error is probably not perceivable ( golden rule: +- time of field/half frame period is OK).
-
Thanks so much for the advises, it is a good base to start to see.
I will try the Mpeg Video Wizard application. Is it freeware application?
Thanks so much. -
If it is only a delay, then there is also this nice, old, and simple small program to cut AC3 losslessly:
https://www.videohelp.com/software/delaycut -
PTS (presentation time stamps) can be manipulated by ffmpeg in various fashion too https://superuser.com/questions/982342/in-ffmpeg-how-to-delay-only-the-audio-of-a-mp4-...verting-the-au
Similar Threads
-
lossless 4.2.0 video to lossless 4.2.2 - any issues?
By spicediver10191 in forum Video ConversionReplies: 21Last Post: 10th Jun 2023, 01:00 -
Is there a lossless video capture card that also captures 5.1 audio?
By end-user in forum Capturing and VCRReplies: 121Last Post: 15th Oct 2022, 05:41 -
best lossless codecs for high quality audio/video?
By Anonymous543 in forum Newbie / General discussionsReplies: 47Last Post: 1st Jun 2022, 08:51 -
simple lossless video audio encoder/decoder in C language
By Anonymous543 in forum ProgrammingReplies: 10Last Post: 27th Apr 2022, 03:19 -
How audio/video lossy and lossless comprasion works?
By Anonymous543 in forum Newbie / General discussionsReplies: 5Last Post: 9th Jan 2022, 16:43