Log in

View Full Version : What situation with my question?


Aleksandr Oleynik
5th December 2002, 22:32
What situation with my question? -

It is one more experiment with the same file-
File Path: D:\0\vts_01_1 (vob001-e0) .m2v
File Size: 290,96MB bytes
Total Duration: 0:04:31:05
Average Data Rate: 1,07MB per second
Image Size: 720 x 576
Pixel Depth: 0 bits
Pixel Aspect Ratio: 1,422
Frame Rate: 25,00 fps

Results Total Duration for three variants-
MPEGSource: Total Duration: 0:04:31:00;
MPEG2Source with d2v file: Total Duration: 0:04:31:00;
DirectShowSource: Total Duration: 0:04:31:05.

Only DirectShowSource have real “ Total Duration ”, but do not good work in ACID 4.0 - (Video Desinc!) and not play with seek=false to!
What should I do?

hakko504
6th December 2002, 10:02
You have forgoten the most important property of the file: number of frames.

The DirectShow duration cannot be correct as it ends with .05 seconds. 0.05 seconds* 25fps = 1,25 frames. It stands to reason that it must be a whole number of frames, and the total duration must be a multiple of 0.04 seconds.

The difference might be attributed to how the source files number the frames. If the file has n frames and Mpeg(2)source starts counting at 0 then the maximum frame number is n-1. DirectShowSource might start with 1 and would then end up with maximum frame number n. the difference is 0.04. Since AviSynth starts it's internal numbering with 0 that would explain why the mpeg(2)source is in synch with the sound and Directshowsource isn't. It is possible that DirectShowSource adds a blank frame as frame 0, thus extending the duration of the file.

BTW how long is the audio file?

Aleksandr Oleynik
6th December 2002, 11:20
Audio is not present absolutely. In m2v a file is not present audio!

vinetu
6th December 2002, 15:52
- (Video Desinc!)

???

Aleksandr Oleynik
6th December 2002, 16:05
Yes, i have this too with DirectShow and Avisynth 207.
But with Avisynth 1.0 these problems are not present!