|
|
| AEN007 |
| Posted: Sep 10 2010, 08:24 AM |
 |
|

Advanced Member
  
Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08

|
10September2010 Greetings. I often do MultiPass (two passes) "dubbing" (DivX codec with aviSynth). VirtualDub calculates the time to complete for pass 1 (with no audio). When VD calculates the time to complete for pass 2 (with audio), VD estimates the time by DOUBLING the estimated time for the video alone. It seems to me VD could/should do more accurate time to complete calulating than that! mp3 encoding takes an predictable/estimable time based on audio length and settings ... Audio encoding takes less time than video "dubbing" in general ... usually at least less than the time of the audio track ... Maybe VD dev might consider that? |
 |
| stephanV |
| Posted: Sep 10 2010, 01:29 PM |
 |
|
Spam killer ;)
  
Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04

|
You forget that most codecs use much faster settings at the first pass.
-------------------- useful links: VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ |
 |
| AEN007 |
| Posted: Sep 11 2010, 07:47 AM |
 |
|

Advanced Member
  
Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08

|
11September2010 No, what I have said is correct. On Pass 1 VD might say 3 hours total time needed. On Pass 2 VD will then say 6 hours total time needed UNTIL the 3 hours are past and VD starts the audio encoding; THEN the VD total timte estimation will start to fall towards the three hours until the the audio encoding is completed. Anyone should be able to reproduce that. VD could/should to better total time estimating ... |
 |
| stephanV |
| Posted: Sep 11 2010, 08:01 AM |
 |
|
Spam killer ;)
  
Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04

|
It doesn't make sense. VirtualDub does audio and video encoding simultaneously, not sequential.
I'll try to reproduce it though.
-------------------- useful links: VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ |
 |
| dloneranger |
| Posted: Sep 11 2010, 10:15 AM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
If you go to menu->audio->interleaving Is 'Enable audio/video interleaving' ticked, and set to 'interleave audio every' 1 frame?
That does do the video, and then the audio I can get the times to go up after the video part has finished, by direct stream copying for video and full processing audio (with a slow compressor) like that It's what I'd expect though
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| AEN007 |
| Posted: Sep 11 2010, 01:48 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08

|
11September2010 Greetings. I do not use interleaving. I do progressive video as progressive and deinterlace interlaced video. (It is my understanding that non-interleaved progressive videos have the audio stored at the end of the file ...) The VD dub info window shows whether it is encoding video or audio. Pass 2 (part 1 - video only) takes exactly as long as Pass 1 (no audio). At the 50% completed mark, VD stops encoding video and starts encoding the audio. The total time to complete then starts dropping... If a one hour video takes three hours in Pass 1, Pass 2 will take less than 4 hours (3 hours + 1 hour length of audio track). VD, however, will say 6 hours needed until the first 3 hours are past.
| QUOTE (dloneranger @ Sep 11 2010, 10:15 AM) | | I can get the times to go up after the video part has finished, by direct stream copying for video and full processing audio (with a slow compressor) | This is not inconsistent with what I have said. VD will estimate total time to complete by doubling the estimate for the video and then discard that estimate once the video is done and the audio has begun... |
 |
| dloneranger |
| Posted: Sep 11 2010, 02:15 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
Ah - you're mixing up interlaced video with 'interleaving' It's a totally different thing
Interlaced or progressive video has nothing to do with interleaving
Avi's normally have interleaving, turn it on and you will be fine
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| AEN007 |
| Posted: Sep 11 2010, 05:38 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08

|
11September2010 No, that was a typo. I do not want interleaved avi files. Anyway, what I have said about VD estimating total time is correct... |
 |
| stephanV |
| Posted: Sep 11 2010, 06:47 PM |
 |
|
Spam killer ;)
  
Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04

|
I don't know why you don't want interleaved files (there isn't really any good reason for this, and a very good one to want them interleaved), but making an accurate estimation of the audio encoding process when it is not actually encoding audio is in principle impossible.
-------------------- useful links: VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ |
 |
| AEN007 |
| Posted: Sep 12 2010, 10:59 AM |
 |
|

Advanced Member
  
Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08

|
| QUOTE (stephanV @ Sep 11 2010, 06:47 PM) | | I don't know why you don't want interleaved files (there isn't really any good reason for this, and a very good one to want them interleaved), | My PII 233mHz XP laptop from 1992 plays all my multimedia files while work on my two newer XP laptops. It has taken me since Nov2008 to "configure" everything so this battle scarred dinosaur will play all my audio/video files without having 100% CPU usage lockup. This Toshiba 4005cds plays non-interleaved better ... (lower CPU usage)
| QUOTE (stephanV @ Sep 11 2010, 06:47 PM) | | but making an accurate estimation of the audio encoding process when it is not actually encoding audio is in principle impossible. |
I find this patently untrue. It seems to me that VD could/should do better total time to complete estimations on Pass2+ with non-interleaved audio. As a general rule audio encoding would not take longer than the length of the audio track; so VD could/should use that algorithm instead of doubling the TTE for video alone dubbing ... |
 |
| stephanV |
| Posted: Sep 12 2010, 12:55 PM |
 |
|
Spam killer ;)
  
Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04

|
| QUOTE (AEN007 @ Sep 12 2010, 12:59 PM) | | As a general rule audio encoding would not take longer than the length of the audio track; so VD could/should use that algorithm instead of doubling the TTE for video alone dubbing ... | Sure, but then it still wouldn't be accurate and even more inaccurate in some cases.
-------------------- useful links: VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ |
 |
| AEN007 |
| Posted: Sep 13 2010, 06:49 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08

|
13September2010 That assertion is more inaccurate than VD's total time to complete estimation for non-interleaved audio. No wonder VD could/should do better total time to complete estimations for non-interleaved audio (but doesn't) |
 |
| phaeron |
| Posted: Sep 13 2010, 09:41 PM |
 |
|

Virtualdub Developer
  
Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02

|
The reason for the inaccuracy is that the status window assumes that all parts of the operation run at the same speed, which is not true when audio interleaving is disabled. Measuring progress is tricky because using a more local window for prediction leads to the Microsoft progress bar effect (52 minutes... now 2983 minutes... no wait, 6 minutes....) I suppose it'd be possible to split this and predict the audio and video halves independently. |
 |
| isidro |
| Posted: Oct 15 2010, 03:13 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 82
Member No.: 7195
Joined: 8-November 03

|
You could change interleave to a higher value (ie: 60), usually it's worst to have all video in one place and all audio in another because of constant disk access on two separete places. Performance should be better in a slow machine |
 |
| AEN007 |
| Posted: Jan 7 2012, 03:29 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08

|
7January2012 Greetings. I'm wondering if ViDub might one day do better time to complete estimating? Now I also DSC flv to avi and "dub" a customized/enhanced wav to mp3. While ViDub is doing the video, the Total time estimate might be around 2 minutes. When/After ViDub finishes the video & starts the audio, the Total time estimate starts to climb to 9, 10 or more minutes ... |
 |