Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th July 2014, 11:17   #1  |  Link
VideoFanatic
Registered User
 
Join Date: Sep 2011
Posts: 241
Re-encoding MKV AAC to MKV AC3 causes a delay

Here's my FFMPEG script:

Code:
"X:\Portable Installations\ffmpeg-2014 May 14-git-72dcd48-win64-static\bin\ffmpeg.exe" -i %1 -c copy -absf aac_adtstoasc -vn gain.m4a
"X:\Portable Installations\AAC Gain 1.9\aacgain" -r -k -m 0 gain.m4a
"X:\Portable Installations\ffmpeg-2014 May 14-git-72dcd48-win64-static\bin\ffmpeg.exe" -i gain.m4a -acodec copy "%~d1%~p1%~n1.aac"
"X:\Portable Installations\ffmpeg-2014 May 14-git-72dcd48-win64-static\bin\ffmpeg.exe" -i %1 -i gain.m4a -map 0:v -map 1 -c:v copy -c:a ac3 -ab 2 -ab 128k "%~d1%~p1%~n1.AC3.mkv"
del gain.m4a
"X:\Daves Folder\Sounds\VideoRedo Completed Sound Short.WAV"
pause
I put the above batch file in the "Send To" directory in Windows, I right-click a video, select Send TO then select the batch file and it does the following: Muxes MKV to MKV and re-encodes AAC to AC3. It also demuxes the AAC in the MKV into an AAC file and normalizes both the AAC and AC3!

The problem is that the MKV output by FFMPEG has a 1 minute 5 second delay. There's no audio for the first 1 minute 5 seconds and I can see the delay mentioned in MediaInfo. How can I prevent FFMPEG from causing a delay?
VideoFanatic is offline   Reply With Quote
Reply

Tags
ffmpeg delay

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.