Hello, I'm quite the newbie in all the encoding business.
I'm trying to trim the audio from the beginning, to reset the audio delay. Let's say the delay is -1164ms, I want to trim the audio from 00:00:00.000 to 00:00:01.164.
Is something like that possible? I tried messing around with the profiles and script, but can't get it to work, it's just using the Audio source it demuxed when I loaded the file.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
-
Normally the delay is handled automatically, what format is the source?
-
AviSynth's DelayAudio() can accept negative delays. But like stax76 said it's normally handled automatically by his software so be careful not to apply the delay twice.
-
The source is a .mkv file, I'm using FFVideoSource.
And yes, the delay is taken care of automatically, it's just encoding the audio, with a duration of the video duration minus the delay. Meaning, the audio ends before the video.
For example:
- Audio delay is: 1162ms
- Video duration (after encoding) is: 4162ms
- Audio duration (after encoding) is: 3000ms (4162-1162) -
Is this a problem for you? It's common for video and audio to NOT be exactly the same length.
-
-
In AviSynth you can add Trim(0,0) to make audio the same length as the video. Note that after encoding the lengths can still be slightly different because most often video and audio formats use different frame lengths (e.g. 25 fps video = 40ms, 48 kHz AC3 = 32ms, i.e. they only align every 160ms). If possible do editing in AviSynth before encoding instead of re-encoding to multiple files that you append afterwards. Also because of encoder delay and padding.
Similar Threads
-
StaxRip and A/V desync
By Krasnal82 in forum Blu-ray RippingReplies: 0Last Post: 21st May 2018, 12:00 -
StaxRip and H265
By barbatrukko in forum Newbie / General discussionsReplies: 2Last Post: 3rd Dec 2017, 16:11 -
Staxrip x64-1.4.0.0
By brusno in forum Video ConversionReplies: 9Last Post: 24th Feb 2017, 18:14 -
StaxRip converting help!
By Hiacios in forum Video ConversionReplies: 2Last Post: 8th Jun 2016, 16:02 -
Where is 'sharpen' in new Staxrip?
By The.King in forum Video ConversionReplies: 0Last Post: 2nd Sep 2015, 06:44