PDA

View Full Version : when framserving mpg only half is decoded


rashif
7th November 2003, 13:43
when i'm frameserving mpg by avisynth to virtual dub mod
to mainconcept and tmpgenc it reaches to a moment and stops
decoding...
also there is no audio in the output file...

my script is:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\EvilMPASource.DLL")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
aud = EvilMPASource("C:\Program Files\AviSynth 2.5\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.mpa")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.MPG")
AudioDub(vid,aud)

Wilbert
7th November 2003, 14:52
The frame where it stops is probably corrupt. Maybe you can import the mpg in dvd2avi and make a d2v project file. Open this file in AviSynth:

loadplugin("...\plugins\mpeg2dec3.dll")
mpeg2souce("C:\file.d2v")

For the audio you should use MPASource and not EvilMPASource. If you want to use the latter you have to import the mpg itself (instead of the mpa):

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPASource.DLL")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec3.dll")
aud = EvilMPASource("C:\Program Files\AviSynth 2.5\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.mpg")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.d2v")
AudioDub(vid,aud)

MPASource is better tested, so I suggest you use that.

If you still have that problem you will have to cut out that frame in dvd2avi.

rashif
7th November 2003, 15:23
after making the d2v file
and loading this script :

loadplugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec3.dll")
mpeg2souce("C:\My Documents\Reshef\My Movies\Jake 2.0 - S1E1 - The Tech.TvRip.FTV.Heb.Sub.Rashif.d2v")

i get an error messgae

there is no function named mpeg2source

i'm checking now the script with mpasource

rashif
7th November 2003, 15:24
the link for mpasource at avisynth is offline....
can you upload this plug-in please?

rashif
7th November 2003, 15:26
found a link at avisynth filter collection page

http://www.avisynth.org/~warpenterprises/files/mpasource_25_dll_20030415.zip

checking the script...

rashif
7th November 2003, 15:38
avisynth open failure

file could not be opened
c:...\script.avs line 3
c:...script-default2.avs line 2

my script is:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPASource.DLL")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec3.dll")
aud = MPASource("C:\Program Files\AviSynth 2.5\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.mpg")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.d2v")
AudioDub(vid,aud)

also tried

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
Textsub("C:\My Documents\Reshef\My Movies\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.SRT")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
aud = EvilMPASource("C:\Program Files\AviSynth 2.5\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.mpa")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.MPG")
AudioDub(vid,aud)

but i get invailed argument textsub

Wilbert
7th November 2003, 15:39
My mistake :) It's mpeg2souRce.

edit, ok you already noticed that.


avisynth open failure

file could not be opened
c:...\script.avs line 3
c:...script-default2.avs line 2
The second line is the one where mpeg2dec3.dll is loaded. I assume you got v1.10 somewhere (link can also be found in the faq)?

For the second script, try (the first argument of textsub should be the video clip, which is what I changed):

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.MPG")
aud = EvilMPASource("C:\Program Files\AviSynth 2.5\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.mpa")
AudioDub(vid,aud)
Textsub("C:\My Documents\Reshef\My Movies\JAKE 2.0 - S1E1 - THE TECH.TVRIP.FTV.HEB.SUB.RASHIF.SRT")

I also would like to warn you to use normal filenames (short, one dot, no spaces).

rashif
7th November 2003, 16:08
i starting to lose hope...:confused:

rashif
7th November 2003, 16:16
vd creates d2v file then i get a message:
textsub cant open..1.srt
script1.avs c:\.. line 7
my script is:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\1.MPG")
aud = EvilMPASource("C:\Program Files\AviSynth 2.5\1.mpa")
AudioDub(vid,aud)
Textsub("C:\My Documents\Reshef\My Movies\1.SRT")

Wilbert
7th November 2003, 16:35
1) Replace evilMPA by MPA.

2) Does it work without subtitles?

3) Did you copy mpeg2dec3.dll to your plugin dir? If so, could you try it again with the d2v (without subtitles).

rashif
7th November 2003, 17:09
i just decoded few seconds with this script

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\1.MPG")
aud = mpasource("C:\Program Files\AviSynth 2.5\1.mpa")
AudioDub(vid,aud)

and there is sound...
but i'll have to decode the entire chapter to know if there is
audio sync problems...

if there are no good results ill try the d2v with the other script.

thank you for your help.

btw i can't seem to run the vsfilter command right...

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
textsub("C:\My Documents\Reshef\My Movies\1.SRT")

is that script ok?

Wilbert
7th November 2003, 17:26
btw i can't seem to run the vsfilter command right...

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
textsub("C:\My Documents\Reshef\My Movies\1.SRT")

is that script ok?
No exactly. textsub should also have a clip as first argument. That can be done in two ways:

# explicitly
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\1.MPG")
textsub(vid,"C:\My Documents\Reshef\My Movies\1.SRT")

or what is exactly the same (implicit last is always assumed, see AviSynth syntax for more information)

# implicitly
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
MPEGSource("C:\My Documents\Reshef\My Movies\1.MPG")
textsub("C:\My Documents\Reshef\My Movies\1.SRT")

rashif
7th November 2003, 19:01
the file encoded with the script

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\1.MPG")
aud = mpasource("C:\Program Files\AviSynth 2.5\1.mpa")
AudioDub(vid,aud)

run until the currupt frame(?) and had audio sync [roblems.
the thing is that at the start the file is in sync and as it goes
forward the audio is getting more out of sync...

so i'm thinking it's not a good method after all.
i'll try the vsfilter script just to look if it works and
i'll try to decode another file, good one.

rashif
7th November 2003, 19:05
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
textsub(vid,"C:\My Documents\Reshef\My Movies\1.SRT")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\1.MPG")
aud = mpasource("C:\Program Files\AviSynth 2.5\1.mpa")
AudioDub(vid,aud)

....):

Wilbert
8th November 2003, 12:08
You have to define vid first before you can use it in line 2, thus can change it into this:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\1.MPG")
aud = mpasource("C:\Program Files\AviSynth 2.5\1.mpa")
clip = AudioDub(vid,aud)
textsub(clip,"C:\My Documents\Reshef\My Movies\1.SRT")

rashif
9th November 2003, 19:59
my script is:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpasource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
vid = MPEGSource("C:\My Documents\Reshef\My Movies\1.MPG")
aud = mpasource("C:\Program Files\AviSynth 2.5\1.mpa")
AudioDub(vid,aud)
clip = AudioDub(vid,aud)
textsub(clip,"C:\My Documents\Reshef\My Movies\1.SSA")

only change is ssa format is supported by vsfilter..

thank you for your help!

now i'm going to decode the whole file and i think i will have
audio aync problems...