Log in

View Full Version : wrong long avs (m2v) file!


Aleksandr Oleynik
1st December 2002, 21:17
I have a problem with different long original m2v file and opened avs (MPEGSource and DirectShowSource to)!!!!!!:confused: :confused:

Aleksandr Oleynik
1st December 2002, 21:33
I have made from m2v - avi file using avisynth and Link2 (two variants - DirectShowSource and MPEGSource).
I open this avi, for example in ACID 4.0, and I see distinguished from original m2v a file length of video.
In what a problem? How it to solve? Whether someone collided with it?
:o :o :o

Suzahara
2nd December 2002, 00:24
I have no clue what you said :confused: :confused:

But here's how I would deal with an m2v file. Open it up in dvd2avi and save a project. Then put that in the avs like this:

MPEG2Source("C:\location\of\your.d2v")

Aleksandr Oleynik
2nd December 2002, 07:48
No, I use MPEGSource and MPEG2DEC.dll by Nic.
Like this:
LoadPlugin (" C:\Program Files\AviSynth2\plugins\MPEG2DEC.dll ")
MPEGSource ("F:\Canop001.m2v", 0, "RAW")
Then I create avi file by means of program Link2. ACID 4.0 does not work with avs files.
All good works. Only it is long (the quantity of the frame) open in ACID avi does not coincide with original m2v file.

Guest
2nd December 2002, 14:25
Is could be related to incorrect handling of the RFF/TFF flags by Nic's DLL. We know it makes this error on 3:2 pulldown material for example. Is the ratio of your sizes 4/5 by any chance?

Aleksandr Oleynik
2nd December 2002, 14:38
I have Pal 720x576 16:9 m2v file.

Suzahara
2nd December 2002, 15:49
Try making a d2v, I'm pretty sure this is most likely a bug in MPEGSource (even Nic gave up on it for a while because of these bugs).

Aleksandr Oleynik
2nd December 2002, 17:42
With use d2v the same result!
These are parameters initial m2v file-
File Path: D:\My\Video\Vob\1(vob011-e0).m2v
File Size: 25,05MB bytes
Total Duration: 0; 00; 30; 10
Average Data Rate: 845,15KB per second
Image Size: 720 x 576
Pixel Depth: 0 bits
Pixel Aspect Ratio: 1,422
Frame Rate: 25,00 fps

It avs script after creation d2v file -
LoadPlugin (" C:\Program Files\AviSynth2\plugins\MPEG2DEC.dll ")
mpeg2source (" D:\My\Video\Vob\1(vob011-e0).d2v ")

Then with help Link2 I creation 1(vob011-e0).avi
And its parameters avi file-

File Path: 1(vob011-e0) .avi
File Size: 22,50KB bytes
Total Duration: 0; 00; 29; 27
Average Data Rate: 770 per second
Image Size: 720 x 576
Pixel Depth: 16 bits
Pixel Aspect Ratio: 1,067
Frame Rate: 25,00 fps
AVI File details:
Contains 1 video track (s) and 0 audio track (s).
Video track 1:
Total duration is 0; 00; 29; 27
Size is 2,92KB bytes (average frame = 4 bytes)
There are 748 keyframes.
Frame rate is 25,00 fps
Frame size is 720 x 576
Depth is 16 bits.
Compressor: 'WRPR', AVI Wrapper Video Client Codec

:devil: :devil: :devil: :devil: :devil: :confused:

Nic
2nd December 2002, 17:46
Yup MPEGDecoder.dll tries its (my) best to guess the length of a file, but sometimes can be way out. The only way to be sure is to parse the whole file (in which case you may as well create a d2v file).

I think I (& Marc) will be reviving MPEGDecoder.dll soon with my new decoding code...

-Nic

Aleksandr Oleynik
2nd December 2002, 22:05
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?
:sly: