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 > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th August 2008, 00:13   #1  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
Audio delay in MP4?

I can't figure it out. mp4box's --delay never seems to have any effect. I thought maybe I was doing it wrong, so I used meGUI to do it with an obscene delay like 30000ms, but still no dice.

Using mp4box -info on the muxed mp4 doesn't say anything about a delay and the audio duration is always the same.

What am I doing it wrong? :\
Comatose is offline   Reply With Quote
Old 7th August 2008, 01:24   #2  |  Link
shae
Registered User
 
Join Date: Jun 2006
Posts: 397
Maybe players ignore it? If that is indeed the case (no idea), instead try to edit the audio stream and remux.
shae is offline   Reply With Quote
Old 7th August 2008, 03:28   #3  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
How would I do that? I need to cut 12ms off it (-12ms delay), but I want to apply the delay/cut it losslessly, or else I would just use Avisynth's DelayAudio ;-;

Also, I don't think players are ignoring it as even mp4box isn't seeing it. I'm probably doing something wrong somehow.
Comatose is offline   Reply With Quote
Old 7th August 2008, 04:18   #4  |  Link
shae
Registered User
 
Join Date: Jun 2006
Posts: 397
That depends on the type of audio. I think AAC can be cut with mp4box.

But 12ms is rather short, so it may not be possible to cut at audio frame boundaries (I think a long AAC frame is 1024 samples, a short one is 128, MP3 is 1152, AC3 is 1536), so maybe it's best to find a way to make delay work, assuming it's actually supported.
shae is offline   Reply With Quote
Old 7th August 2008, 07:19   #5  |  Link
crypto
@DVBPortal
 
crypto's Avatar
 
Join Date: Feb 2004
Posts: 434
I am not sure, but I think the delay does not change the length of the stream. And BTW: 12 ms delay is not noticeable without messuring equipment.
crypto is offline   Reply With Quote
Old 7th August 2008, 12:53   #6  |  Link
martino
masktools2 (ab)user
 
martino's Avatar
 
Join Date: Oct 2006
Location: PAL-I :(
Posts: 235
Mux it into MKV with a delay. MKVMerge adds silence at the start of the track or cuts off the start depending on the delay, however this does not work for all formats.
martino is offline   Reply With Quote
Old 7th August 2008, 13:08   #7  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
Can't really use MKV as I'm aiming to play this on my PS3 D:
Also, *no* delay works, not even 30000ms.
Comatose is offline   Reply With Quote
Old 7th August 2008, 13:22   #8  |  Link
martino
masktools2 (ab)user
 
martino's Avatar
 
Join Date: Oct 2006
Location: PAL-I :(
Posts: 235
I meant use muxing audio into MKV to "add/remove" the delay and then demux it and mux into MP4.
martino is offline   Reply With Quote
Old 7th August 2008, 13:39   #9  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Try avidemux to shift your audio. It works on .mp4 and .mkv
poisondeathray is offline   Reply With Quote
Old 15th August 2008, 06:13   #10  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
Oh, thanks, both martino and poisondeathray. I hadn't thought of those
Thanks martino. That worked perfect. This also means I don't have to test the file again on a PS3, since I'm aiming for compatibility

Last edited by Comatose; 15th August 2008 at 07:12.
Comatose is offline   Reply With Quote
Reply

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 20:09.


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