untitled
This is a moderated forum. Please refrain from personal attacks, troll baiting and off-color language.
Posts for wanted "warez" or "cracks" will be deleted within 48 hours. Please look elsewhere.
Unsolicited posts advertising "warez" or "crack" sites and information will be deleted.
Keep your comments to a technical gendre. Be gentle .. we were all "newbies" once.
These suggestions reflect the wishes of the majority of this forum's users.
FAQ / SEARCH
 


  << Previous Topic | Next Topic >>Return to Index  

Mainconcept and Avisynth

January 14 2003 at 2:17 AM
  (Login Shimaro)

 
Can anyone tell me how to add subtitles to avi while encoding with Mainconcept.

I'm a newbie, so I don't know very much about it.

I've tried to make an Avisynth script (as told on www.vcdhelp.com, option 4 and save it as .avs, when I open this .avs-file in Windows Mediaplayer I get the message:
script error: expected a, or )
(D:\Stuart~1.AVS, line 8, column 10).

What am I doing wrong:
I show you my script text:

LoadPlugin("c:\Program Files\Mainconcept\Virtualdub\plugins\TextSub.vdf")
LoadPlugin("c:\windows\system32\mpeg2dec.dll")
avisource("d:\kazaa\stuartlittletwee.avi")
#[filter]
#[filter]
#[filter]
#[filter]
TextSub(d:\kazaa\stuartlittletwee.srt")


 
 Respond to this message   
AuthorReply
Anonymous
(no login)

Re: Mainconcept and Avisynth

January 14 2003, 8:17 AM 

Best place to help with your topic is Doom9.org forum. It has room for Avisyth only.

 
 Respond to this message   
mb1
(no login)

Mistake: the often happening typo (line 8, column 10)

January 14 2003, 8:18 AM 

Change
TextSub(d:\kazaa\stuartlittletwee.srt")

to
TextSub("d:\kazaa\stuartlittletwee.srt")

regards
mb1

 
 Respond to this message   

(Login Shimaro)

Re: Mistake: the often happening typo (line 8, column 10)

January 14 2003, 11:54 PM 

Thanx,

I changed the line, now I'm getting the following message, when opening in Windows Mediaplayer:

Avisource autodetect: couldn't open file (C:\subtit~1\stuart~1.avs,line 3)


 
 Respond to this message   

(Login Shimaro)

Re: Re: Mistake: the often happening typo (line 8, column 10)

January 15 2003, 12:51 AM 

Well, I found out that I chose a wrong pathfile.
Now Windows Mediaplayer works excellent with Avisynth, but I still can't frameserve with Mainconcept.

I loaded .avs and Mainconcept started encoding, but when I watch previes, I only see a green screen.

Maybe Mainconcept doesn't accept Avisynth so I tried to use VFAPI, just as needed when using CCE, but VFAPI doesn't load .avs files (just .aup, .d2v, .tpr). So I can's use VFAPI.

Can anyone tell me what to do?

 
 Respond to this message   
Anonymous
(no login)

Re: Re: Re: Mistake: the often happening typo (line 8, column 10)

January 15 2003, 5:49 AM 

In order for Mainconcept to process AVS script, you need to do the following:

1. Freom Mainconcept menu choose "Options", "Import Modules"

2. Disbale the first one "DirectShow Import".

3. Load your AVS script

 
 Respond to this message   

(Login Shimaro)

Green screen

January 15 2003, 11:51 AM 

I already did try to disable DirectShow Import, but it still doesn't work, I just get a green screen watching preview................I've also tried to seperate the audio but is doesn't work.

 
 Respond to this message   
Tomi Sarkkinen
(no login)

working avisynth script with mainconcept encoder

January 16 2003, 2:27 AM 

Make an dvd2avi (v1.76) project file from your movie. Install vobsub and extract your susbtitles. Use FitCD to resize your movie. Check out the www.doom9.org to get closer help.

LoadPlugin("C:\Program Files\AviSynth2\Filters\MPEG2DEC.dll")
LoadPlugin("C:\Program Files\AviSynth2\Filters\fluxsmooth.dll")
LoadPlugin("C:\Program Files\AviSynth2\Filters\legalclip.dll")
LoadPlugin("vobsub.dll")
video=mpeg2source("F:\starb.d2v")
audio=wavsource("f:\starb.wav")
audiodub(video,audio)
ConvertToYUY2()
LegalClip()
VobSub("F:starb")
BilinearResize(352,576,8,0,704,576)
#AddBorders(0,0,0,0)
FluxSmooth()
LegalClip()

 
 Respond to this message   
mb1
(no login)

Re: working avisynth script with mainconcept encoder

January 16 2003, 6:56 AM 

VobSub("F:starb")

How should this work ? It is no path !

So you did not really test your script or also badly did not do cut and paste ...

regards
mb1

 
 Respond to this message   
Ronny
(no login)

Re: Re: working avisynth script with mainconcept encoder

January 16 2003, 7:04 AM 

I remember I could frameserve avs via tmpgenc and vfapi or vfapiconv somehow to make an pseudo avi. Open the avs in tmpgenc and save in some format vfapi accept. Sorry if I remember this wrong...

I have frameserved to Procoder via avisynth and Link2 (available at videotools.net). Perhaps this method may work also with Mainconcept?


 
 Respond to this message   
Coby
(no login)

Re: Re: Re: working avisynth script with mainconcept encoder

January 16 2003, 8:10 AM 

>Perhaps this method may work also with Mainconcept?

Yes, that does work.

 
 Respond to this message   

(Login spak)

Re: Re: Re: working avisynth script with mainconcept encoder

January 16 2003, 8:20 AM 

I used mainconcept with avs-file an it worked just fine. Make sure that the "DirectShow Import" is unchecked!

My avs:

LoadPlugin("C:\Windows\system32\MPEG2DEC.dll")
video = MPEG2source("D:\TV\Videos\Jazz.d2v")
audio = WAVSource("C:\Programme\NeoAudio\my music\Jazz.wav")
AudioDub(video, audio)
DelayAudio(-0.50) # Play audio half a second earlier
crop(16,128,688,320)
bicubicresize(448,414,0,0.6,9,0,702,576)
addborders(16,81,16,81)
ResampleAudio(44100)


 
 Respond to this message   

(Login Shimaro)

Mainconcept and Avisynth

January 16 2003, 9:26 AM 

Well I've tried the avs, mentioned above, but when I try to browse the audio and select the wav-file, I get the message: no audio found.
When I fill in nothing (cause in the script is mentioned what audiosource to choose), Mainconcept starts encoding, and after two seconds it's finished !

BTW the screen still is green..................

 
 Respond to this message   

(Login Shimaro)

Mainconcept and Avisynth

January 16 2003, 9:44 AM 

I've also tried the script from Tomi Sarkkinen, but it's the same as above: no sound and also ready in a few seconds.

My own script instead is ready in about 1 hour and 9 minutes (real time Mainconcept normally used to encode without subtitles) so the encoding does work. The only problem is a green screen.................

 
 Respond to this message   
Tomi Sarkkinen
(no login)

This script is working. I have done several movies by this script

January 16 2003, 11:39 AM 

Remember to check when creating dvd2avi project file "colorspace to yuv". If your subtitle files (extracted by vobsub) are named ex. "monster.idx and monster.sub", vobsub command must be typed on this way (ex. c:\monster). And rename your wav file created by dvd2avi to the same as .d2v file and also rename subtitles to the same ex. "ac3 delay 0 ms.wav to monster.wav and vts01_1.idx to monster.idx and so on...". This is very important thing to rename .d2v file and wav file to the same (montster.d2v and monster.wav). I don't know if subtitle files have to be under the same name but I have renamed those files allways and it has worked so I haven't even tried otherwise. You can use the trim command to convert one part from movie and remember those numbers are frames (from beginning to the frame number 156359). I'm using dvd2avi v1.76, mainconcept encoder v1.31, avisynth v2.07, vobsub v2.23. Dvd2avi version must be 1.76 otherwise it won't work. Mpeg2dec.dll is customized version downloaded from:
http://www.doom9.org/index.html?/mpg/d2a-mpeg2dec.htm
You can get great filters made by SansGrip from: http://www.jungleweb.net/~sansgrip/avisynth/

I'm not fooling anybody but believe or not this script is fully working

Please email if you have problems...
------------------------------------------------------
LoadPlugin("C:\Program Files\AviSynth
\Filters\MPEG2DEC.dll")
LoadPlugin("C:\Program Files\AviSynth2\Filters\fluxsmooth.dll")
LoadPlugin("C:\Program Files\AviSynth2\Filters\legalclip.dll")
LoadPlugin("vobsub.dll")
video=mpeg2source("F:\monster.d2v")
audio=wavsource("f:\monster.wav")
audiodub(video,audio)
Trim(0,156359)
ConvertToYUY2()
LegalClip()
VobSub("F:\monster")
BilinearResize(352,576,8,0,704,576)
#AddBorders(0,0,0,0)
FluxSmooth()
LegalClip()

 
 Respond to this message   

(Login Shimaro)

Mainconcept and Avisynth

January 16 2003, 1:53 PM 

Well, thanks Tomi, but I've tried again, with no result.
Maybe I have to make something more clear:
I don't work with dvd2avi, cause I already have an avi file (downloaded). So I neither have vobsub-files. My subtitle-files are srt or ssa (also downloaded). Now I just want to put this avi and this srt/ssa together in a simple and quick way (first I worked with VirtualDub and TMPGEnc. it's excellent very slow (about 4 hours for encoding about 700 MB, therefor I choose Mainconcept, which doesn't work with VirtualDub)

I want to encode to VCD (PAL) 352x288 25 fps 44100hz.

So I've tried everything, mentioned above, and it still doesn't work !!! BTW, when I browse the avs in Mainconcept, there's no audio input !!!

I show you my latest script (as in the example), it's again ready in TWO seconds !!!

LoadPlugin("C:\Program Files\AviSynth2\Filters\MPEG2DEC.dll")
LoadPlugin("C:\Program Files\AviSynth2\Filters\FluxSmooth.dll")
LoadPlugin("C:\Program Files\AviSynth2\Filters\LegalClip.dll")
LoadPlugin("TextSub.dll")
video=avisource("D:\Monsters.avi")
audio=wavsource("D:\monsters.wav")
audiodub(video,audio)
Trim(0,156359)
ConvertToYUY2()
LegalClip()
TextSub("C:\subtitles\Monsters.srt")
BilinearResize(352,576,8,0,704,576)
#AddBorders(0,0,0,0)
FluxSmooth()
LegalClip()

I still hope there's someone outthere who can help me.

 
 Respond to this message   
Ronny
(no login)

Re: Mainconcept and Avisynth

January 17 2003, 6:59 AM 

The resizing seems wrong.

BilinearResize(352,576,8,0,704,576)

This line means that crop 8 pixels from left and select 704x576 pixels of the source and then resize to 352x576. But you wrote that you want VCD resolution so the target height should be 288. Then this one should be better (if your source is 720x576 resolution):

BilinearResize(352,288,8,0,704,576)

Have you tried using FitCD to make correct rezising?

Ronny

 
 Respond to this message   

(Login Shimaro)

Mainconcept and Avisynth

January 17 2003, 7:47 AM 

Oke, I changed the resolution, but when encoding it's still ready in TWO seconds, it just doesn't work.

 
 Respond to this message   

(Login Brambus)

Re: Mainconcept and Avisynth

January 18 2003, 12:50 PM 

Just my two cents.
I think I've had the same problem some time ago.
Once upon a time I decided to install the DVD player from Sonic and also all the stuff from Sonic that came for mp3 and Media Player.
Oh well, Sonic DLLs pervaded my system.
All my test rips made with Cce, or Mainconcept, or whatever else began stop working. Black screen in Media Player, errors in PowerDVD, and Mainconcept went green.
The solution was deinstalling all my Mpeg2 players and encoders and reinstall only the ones I worked well with before Sonic "plagued" my system.
I want to point that also DVDit - from Sonic - was no more able to recognize Mpeg2 streams until I deinstalled all the mpeg2 filters from my system and started from scratch. (Just for info, I use now Power DVD 4 XP player so i think my system uses his filters).
So MAYBE it's your case: a case of wrong DLL registering. I'm not so skilled so i decided not to use the "regserv32" way in a cmd window for making my housekeeping; but this way worked for me.
My only disappointment now is (apart from the money spent) that Sonic Player,when working, has the best quality I've ever seen.
Brambus



 
 Respond to this message   
Current Topic - Mainconcept and Avisynth
  << Previous Topic | Next Topic >>Return to Index  
Create your own forum at Network54
 Copyright © 1999-2009 Network54. All rights reserved.   Terms of Use   Privacy Statement