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. |
28th September 2013, 16:00 | #1 | Link |
Registered User
Join Date: Jul 2003
Location: Singapore
Posts: 26
|
12.5 hour video = No sound.
Hi!
I was editing on some gaming footage I captured last night, I came to notice that if the total length of my video is around 12.5 hours or longer, then there will be no sound. I am not sure if this is an issue with AVISynth or VirtualDub. After fiddling for an hour, it seems that there is some limitations on the total number of audio samples when serving from AVISynth to VirtualDub. To replicate this problem, try this script: Code:
BlankClip(length=44740, fps=1, audio_rate=48000) in VirtualDub, which is roughly 12 hours and 25 minutes. Note the negative audio length. But if the video is shorter by 1 second: Code:
BlankClip(length=44739, fps=1, audio_rate=48000) and the audio works fine. My guess is that the total number of audio sample is limited by a certain 31-bit value: 2^31 = 2147483648. My current solution is to break up the video into smaller clips for encoding, and then joining them back with VirtualDub's Append AVI feature. I do not like this solution as I will be restricted to use AVI and furthermore, VirtualDub's Append AVI feature does not seem to keep A/V synchronized by padding or discarding audio samples. I'm wondering if anyone had a better work around, or it's something that I've missed? I still prefer to use AVISynth. If this is not considered a bug, I hope that the AVISynth Dev. Team or Avery Lee may take this as my feature request. Yes, it takes me 13 hours to beat BioShock Infinite. Thanks for reading. -
__________________
Oh! Signature! My very own Signature! What should I put?! What can I write?! I must write something! Something that everyone can see! And it will appear at the bottom of my every post! Then everybody will be able to read my signature! Nobody will not read my signature! Somebody will tell others to read my signature! Which will be at the bottom of my every post! And i ca...<cropped> Last edited by peterhuh; 28th September 2013 at 16:04. |
30th September 2013, 20:09 | #2 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
You can join two videos with a lot more tools than just VirtualDub. There was a new option added to x264 (--stitchable) to create video that can be spliced and I believe Mkvtoolnix can do the splice.
|
30th September 2013, 21:53 | #4 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Yes, it is. Avisynth implements the number of audio samples as "__int64" and therefore has no trouble with your clip.
Somewhere in VDub the number of samples seems to get truncated to 32 bit int, hence the negative displayed value. |
2nd October 2013, 09:41 | #5 | Link |
Registered User
Join Date: Jul 2003
Location: Singapore
Posts: 26
|
Thanks for the responses.
I believe this thread should be moved then. Would the admin kindly move this thread to VirtualDub instead? Thanks in advance.
__________________
Oh! Signature! My very own Signature! What should I put?! What can I write?! I must write something! Something that everyone can see! And it will appear at the bottom of my every post! Then everybody will be able to read my signature! Nobody will not read my signature! Somebody will tell others to read my signature! Which will be at the bottom of my every post! And i ca...<cropped> |
3rd October 2013, 09:58 | #7 | Link |
Registered User
Join Date: Jul 2003
Location: Singapore
Posts: 26
|
Thanks again neuron2.
I successfully compressed and appended all clips to form a single 13.5-hour video. Everything works fine except when I compress the audio with LAME ACM. If I leave it as PCM, no problem: With MP3, VirtualDub compresses without errors but freezes upon playback: Funny, ADPCM works fine:
__________________
Oh! Signature! My very own Signature! What should I put?! What can I write?! I must write something! Something that everyone can see! And it will appear at the bottom of my every post! Then everybody will be able to read my signature! Nobody will not read my signature! Somebody will tell others to read my signature! Which will be at the bottom of my every post! And i ca...<cropped> |
Tags |
avisynth max length limit |
|
|