Hello.I'm trying of make a avisynth script for edit a mpeg2 file...
well,this is what I got write until now ...
LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\ac3source.dll")
LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\MPEG2Dec3.dll")
video=Mpeg2Source("C:\MPEG_Video.d2v")
audio=AC3Source("C:\audio1.ac3")
and VirtualDub-1.6.14 give me this message
avisynth Open failure:
Mpeg2Source:couldn't open file
Somene please would help me?
I use avisynth 2.5 and MPEG2Dec3.dll ver 1.00 for Avisynth 2.5
and I demuxed the mpeg2 file with DGindex.
Thanks in advance![]()
+ Reply to Thread
Results 1 to 12 of 12
-
-
thanks for reply guns1inger!!!
Hey man I made what you told me and worked ...but now I have another error:
Script error:Invalid arguments to function "AC3Source"
maybe I'm having the same problems of this case:
http://forum.doom9.org/archive/index.php/t-40996.html
please,what you think ? -
If you still have problems with AC3Source, try this plugin
nicaudio_alpha3.rar
#---------- Begin --------------------------------------------------------------------------
SetMemoryMax(256)
LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\nicaudio.dll")
LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\dgdecode.dll")
video=Mpeg2Source("C:\MPEG_Video.d2v")
audio=NicAC3Source("C:\audio1.ac3", Channels=6, DRC=1).ensurevbrmp3sync()
# Downmix from 5.1 to 2 Channel Stereo
flr = GetChannel(audio, 1, 2)
fcc = GetChannel(audio, 3, 3)
lrc = MixAudio(flr, fcc, 0.3254, 0.2301)
bl = GetChannel(audio, 5)
br = GetChannel(audio, 6)
sl = MixAudio(bl, br, 0.2818, 0.1627)
sr = MixAudio(bl, br, -0.1627, -0.2818)
blr = MergeChannels(sl, sr)
MixAudio(lrc, blr, 1.0, 1.0).normalize()
AudioDub(video, audio)
#------------------- End -------------------------------------------------------------
And if THAT doesn't work, install AC3ACM
Congratulations on using Avisynth ! Smart choice. Very smart -
Soopafresh,many thanks for reply,man !
I finalized of write my first script...I made some edition in the main video...
I was very lucky in found a tutorial in videohelp for frameserving with tmpgenc
for obtain a mpeg-2 file:
https://www.videohelp.com/virtualdubframeserve.htm
...adobe premiere imported that mpeg-2 portion without problems...well,I must edit some more video clips of the main dvd and join all that clips in premiere ...I have the cross fingers..
The only thing that I can't make work in the script was the variables...
only when I deleted that codes like "video=" and "audio=" the script worked...
The rest of the code (The "trim" part) was generated automatically for a tool
called FilmCutter http://members.aol.com/avsfilmcutter/index.html
that have a visual mode of work with the vids...very useful tool.
for get work my code with variables I'll probe your code and the plugins,Soopafresh.
(I'll need the variables for more complex operations)...
Thanks ,man, for the help and the info ! -
Soopafresh's script should work, though the output would be 6 channel audio.
last line of the remix should look like
" audio = MixAudio(lrc, blr, 1.0, 1.0).normalize() "
channels=2 in NicAC3Source will give you nic's idea of a downmix. like below,
" audio=NicAC3Source("C:\audio1.ac3", Channels=2, DRC=1).ensurevbrmp3sync() "
a tool called FilmCutter http://members.aol.com/avsfilmcutter/index.html that have a visual mode of work with the vids...very useful tool. -
Thanks ebotron
,I didn't realize of the real capacity of the Soopafresh code...
I'll made that modifications what you told me,man...for remix my 2 channels audio source.
great,really apreciated...Thanks,man ! -
When using "video=" and "audio=" you have to tell Avisynth what that means.
You were missing one line of code:
audiodub(video,audio)
So, it should have looked something like this:
LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\ac3source.dll")
LoadPlugIn("C:\Archivos de programa\AviSynth 2.5\plugins\MPEG2Dec3.dll")
video=Mpeg2Source("C:\MPEG_Video.d2v")
audio=AC3Source("C:\audio1.ac3")
audiodub(video,audio)
Try that incase the MPEG2 file doesn't work in Premire. Sure, you can import M2Vs in that editor, but it will usually keep reseting the flagging order with every cut. So, even if your stream is completely 24p progressive, making an edit will cause a field order reset, resulting in an framedropped interlace stream.... -
Thanks for your advise Guiboche!
...mmm....so we can't let any variable without sense floating in the code...
really thanks!.
Guiboche,I imported all the mpeg-2 little clips to premiere...thinking that that files was maded for tmpgenc (virtualdub frameserving ) would I have the problem that you tell? (loss frames)
(I didn't join the files yet,becausel,later of all the cutting operation I ended with like 1.5 gb of video only,and I must select between some files that I have apart for fill a single layer dvd disc...
Similar Threads
-
Need Help with My AviSynth Script
By Enkidu in forum Newbie / General discussionsReplies: 3Last Post: 21st Jan 2011, 21:37 -
How to create and run a script to do this?
By alc112 in forum EditingReplies: 2Last Post: 7th Aug 2010, 22:12 -
Avisynth Script Help
By jamhat in forum Video ConversionReplies: 2Last Post: 29th Nov 2009, 06:13 -
Avisynth script
By daz2712 in forum Video ConversionReplies: 2Last Post: 19th Aug 2009, 11:08 -
how would i get a dvd video to run my autoplay script
By wan2no in forum Authoring (DVD)Replies: 17Last Post: 28th Jun 2008, 18:14