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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 26th December 2002, 09:57   #1  |  Link
Last Ninja
Registered User
 
Join Date: Dec 2002
Posts: 4
Avisynth error & Hybrid movies & A/V synchronization

Tired of getting errors on my Win XP Pro system I found solutions to three problems..

1) When opening a vob via mpeg plugin avisynth shows error (some fatal exception). Now this is a known problem. (See posts elsewhere)

After loadplugin
If you enter a "=" sign after mpegsource=("location-movie.d2v")
Avisynth says "The scripts return value was not video clip"

.
.
Similar errors occurred when opening a file with ANY version of avisynth (tried them all) with ANY Plugin be it mpeg,decomb,avisynthex or any.

I conclude that avisynth has error loading the plugins in some systems.

To open the d2v use vfapi convertor instead (for video options only)
Available at
http://www.doom9.org/Soft21/SupportU...nv-1.04-EN.zip


After you do 1 pass for divx you can always include decoded wav or ac3 or aac in virtuldub depending on your personal taste on the second pass.

Note:You can still use avisynth open option via directshowsouce command without any errors. Just don't do direct timeseek on virtualdub

2)I had the pleasure of encountering hybrid movies ranging ntsc(interlaced)15%-35% and film(progressive AND interlaced 25%-60%) changing avery 5 seconds on dvd2avi preview pane at about 130-180 times per movie.

By reading the posts on doom9 forum i found there was no easy solution to this problem AND also i could not load decomb and mpeg2 filters in avisynth.

Make d2v file using NO forced film in dvd2avi
Open it in tmpg encoder choose to make ntsc dvd 720-480 while taking care of minor clip-resize aspect ratio settings.

I found that tmpg takes FULL care of ANY type of movies Hybrid or otherwise automatically. Just make sure to NOT change film content type in the wizards opening screen. Note: Even if you know otherwise do not change it to NTSC progressive-interlaced/movie/film-hybrid type. DO NOT CHANGE IT.

Choose advanced settings and select your deinterlace option as you see fit.
Set gop sturcture to I frames only choose bitrate to constant at 8000!
Choose dc component error to 10 (most stable).
Motion search compensation is upto you.
Now make movie in video only format
Make sure you have adequate space on HDD

Next morning you can watch for yourself that all interlaced progrssive hybrid problems are gone from your new movie.

If you are splitting the movie in tmpg remember that dvd2avi skips the last frame read at the end of the movie so you second part SHOULD contain that one extra frame from previous part. (This is for perfectionists like me) AND your new movie will be slightly fuzzier than original but who's complaining. (To compensate use tmpg's internal filters)

Once again d2v your newly created movie and you can open it by vfapi or directshow from avisynth in virtualdub.

3) Some vob's have a leading silence when sudio logos are shown on the first vob.

Use vob split available at
http://www.doom9.org/Soft21/Vobtools/vobspl26.zip OR
http://www.doom9.org/Soft21/Vobtools/Vobedit06.zip OR
http://www.doom9.org/Soft21/Vobtools/voobtools.zip
to trash out the leading silence problem.

OR
use d2v with the audio option to demux ac3 stop it as soon as it starts!
Now check the filename. DVD2AVI will write mistakanly the starting DELAY -133ms in the filename.

Now open wav file in virtualdub on divx second pass.
Open audio interleaving option tab.
here you can enter to delay the audio track by same amount of time without the minus sign.
Your movie is now perfectly synchronised.

.
.
Many people get audio to be non-synched extremely weird way.
Sometimes the audio comes good soetimes not, throughout the movie.
Now I noticed this problem when encoding the audio to mp3 format
(Since I convert audio to mp3 only)

Open your mp3 codec control panel found in..
control panel\Sound and multimedia\devices\audio compression devices\choose your mp3 encoder from here and choose settings of JOINT STEREO MS at your needed bitrate.

Poof your audio synch problems are now gone.

Final Note: If the movie is not extremely hybrid sometimes flask handles it correctly. MOST of the time it gives problems.

=====================================

There may be mistakes-errors in this posting.
My methods may not be perfect.
I could be completely wrong.

A request to more experienced users:
Please correct any problems in this post.

Just my 2 piece. I hope this helps everyone in general even if people have to wait 5 days to post(like me).

Q: Definition of `Jumping to a conclusion`.........
A: Forgetting your parachute
(taken from www.internetworldofjokes.com)

LAST NINJA.
.
.
.

Last edited by Guest; 26th December 2002 at 14:31.
Last Ninja is offline   Reply With Quote
Old 26th December 2002, 12:32   #2  |  Link
Wilbert
Super Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,392
Welcome to the forum!
Quote:
1) When opening a vob via mpeg plugin avisynth shows error (some fatal exception). Now this is a known problem. (See posts elsewhere)

After loadplugin
If you enter a "=" sign after mpegsource=("location-movie.d2v")
Avisynth says "The scripts return value was not video clip"

.
.
Similar errors occurred when opening a file with ANY version of avisynth (tried them all) with ANY Plugin be it mpeg,decomb,avisynthex or any.

I conclude that avisynth has error loading the plugins in some systems.
That makes sense. It's not a known problem, it's a known feature. Just use:

LoadPlugin("blabla") # if necessary
mpegsource("c:\location-movie.d2v")

Quote:
2)I had the pleasure of encountering hybrid movies ranging ntsc(interlaced)15%-35% and film(progressive AND interlaced 25%-60%) changing avery 5 seconds on dvd2avi preview pane at about 130-180 times per movie.

By reading the posts on doom9 forum i found there was no easy solution to this problem AND also i could not load decomb and mpeg2 filters in avisynth.
See above:

LoadPlugin("c:\decomb.dll") # or whatever the path is
mpegsource("c:\location-movie.d2v")
telecide() # or whatever decomb-filter you want to use

Quote:
Many people get audio to be non-synched extremely weird way.
Sometimes the audio comes good soetimes not, throughout the movie.
Now I noticed this problem when encoding the audio to mp3 format
(Since I convert audio to mp3 only)

Open your mp3 codec control panel found in..
control panel\Sound and multimedia\devices\audio compression devices\choose your mp3 encoder from here and choose settings of JOINT STEREO MS at your needed bitrate.

Poof your audio synch problems are now gone.
This makes no sense to me. Joint stereo or stereo shouldn't make any difference regarding synch. problems.
Wilbert is offline   Reply With Quote
Old 27th December 2002, 18:33   #3  |  Link
Last Ninja
Registered User
 
Join Date: Dec 2002
Posts: 4
I had used avisynth for an year, But never knew I had the option of putting a # sign.
I will try it tonight to see if it works on my xp-pro system.
Thank you for the tip.

Also I am completely baffled that WHY is it that joint stereo does not give me synch headaches like stereo does sometimes.

Bye.
Last Ninja is offline   Reply With Quote
Old 28th December 2002, 14:38   #4  |  Link
Last Ninja
Registered User
 
Join Date: Dec 2002
Posts: 4
Man you guys want a script even more perfect than avisynth.

Here is my avs file script..

LoadPlugin("C:\avisynth2\plugins\mpeg2dec3.dll")
MPEG2Source("F:\HUSTLE\movie.d2v")

When I open this file which has an avs extension from virtualdubp4
It says

avisynth error.
Unrecognised exception at file.avs line2

IF I put a equal sign as in
LoadPlugin("C:\avisynth2\plugins\mpeg2dec3.dll")
MPEG2Source=("F:\HUSTLE\movie.d2v")

and after that I save it again and open the avs file from virtualdubp4
It says

avisynth error.
The scripts return value was not a video clip

AND I get the same results when i try to use avisynth version 207 205 206 105 110 or any other.
I had combined all of the version of avisynth one at a time while making sure i had NO other versions accessible to windows,
with mpegdec.dll, mpeg2dec.dll mpeg2dec2.dll mpeg2dec3.dll

evenif you think I still have made a mistake I tried the following method

DirectShowSource("F:\vob_1_1.vob",fps=29970)+DirectShowSource("F:vob_1_2.vob",fps=29970)+DirectShowSource("F:vob_1_3.vob",fps=29970)+DirectShowSource("F:vob_1_4.vob",fps=29970)

saved the file as dhow.avs and opened it with vitualdubp4 and it opened fine except that i couldn't seek from the seekbar of virtualdub or the proggy would crash.

Now to the above dshow.avs file I added
LoadPlugin("C:\avisynth2\plugins\decomb.dll")
Telecide()
Decimate(mode=1,threshold=50)

Again after saving it i open it via virtualdub110
I get error message saying

avisynth error
unrecognised exception in file dshow.avs line3 (which is the telecide line)

And I tried to open the avs file with d2v file created from dvd2avi versions 176,182,186,frm with the same results.

also i found that # sign is to put remarks in avs file
thanks for the remark tip.

Before you ask me what system i am using,
P4 1.6 256mb rdram, nvidia geforce2mmx200/400 video card.

Can anybody tell me why is it that I cannot open avsfiles on winxp pro system with plugins in them while 2 months ago i could open it on my old win me system??
Last Ninja is offline   Reply With Quote
Old 28th December 2002, 14:47   #5  |  Link
Wilbert
Super Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,392
MPEG2Source is a function, so
Quote:
IF I put a equal sign as in
LoadPlugin("C:\avisynth2\plugins\mpeg2dec3.dll")
MPEG2Source=("F:\HUSTLE\movie.d2v")
can't work. Instead try:

LoadPlugin("C:\avisynth2\plugins\mpeg2dec3.dll")
MPEG2Source("F:\HUSTLE\movie.d2v")

using mpeg2dec3 beta 6 and dvd2avi 1.76.
Wilbert is offline   Reply With Quote
Old 28th December 2002, 18:01   #6  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Try re-making the d2v file. Maybe you moved things after you created it. The d2v has hardcoded pathnames in it.
Guest is offline   Reply With Quote
Old 24th January 2003, 07:03   #7  |  Link
Last Ninja
Registered User
 
Join Date: Dec 2002
Posts: 4
Thanks for your help Wilbert.
mpeg2dec3 beta 6 works fine now with my system.

Guardion knot package works fine on my system too
no more plugin errors!
Last Ninja is offline   Reply With Quote
Old 24th January 2003, 09:44   #8  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
LastNinja, you should probably read Script Grammar and Troubleshooting

You '=' syntax is simply wrong, that's why you get the error. You are assigning "F:\HUSTLE\movie.d2v" to a variable called MPEG2Source.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 24th January 2003, 11:25   #9  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
For the audio sync problem : when encoding with lame in mp3, there is an automatic downsampling at 32Khz when the average bitrate is low ( under 128 Kbit/sec I think ), which explains the A/V sync problem.
Manao is offline   Reply With Quote
Old 24th January 2003, 12:17   #10  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
Resampling to 32khz (either in lame, vdub or avisynth) will not change the length of the audio - thus it cannot leading to de-sync.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 24th January 2003, 12:55   #11  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
OK, I found a thread that I had forgotten ( I shouldn't have, but you tend to forget when somebody slaps you... ) here . At that time, I didn't understand what they were saying, now I can ( at least, I hope ) : Nandub can't handle vbr mp3 @ 32Khz itself, something must say to it that it is at 32Khz, else you get sync issue.
Manao is offline   Reply With Quote
Reply


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 01:59.


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