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

Reply
 
Thread Tools Display Modes
Old 20th November 2009, 04:42   #21  |  Link
teejee2008
FFCoder author
 
Join Date: Dec 2007
Location: India
Posts: 174
@davidhorman

I'll let you know if I find the problem.
teejee2008 is offline   Reply With Quote
Old 20th November 2009, 07:45   #22  |  Link
tin3tin
Registered User
 
tin3tin's Avatar
 
Join Date: Mar 2005
Posts: 366
Quote:
The problem is that I'm using MediaInfo for analyzing imported files. MediaInfo can't read info from AVS files. I will have to use ffmpeg or mplayer which will add another 5 to 10 MB to the download package. I'll do it later.
What I'm saying is that you can use avisynth to extract information about the imported script. Please re-read my post above. There are avisynth functions like clip.width(), clip.height(), clip.framerate() and clip.framecount() too. These infos can be generated by a temp avisynth script, which can save that info to a temp file. This temp txt file you can let your app read the info from.

This is how DVD slideshow GUI does it - I can show you how I do it in wxBasic if you want.

For inspiration on how to handle multitrack, overlays and transitions in an xml format, you could take a look on how mtl is doing that: http://www.mltframework.org/twiki/bin/view/MLT/MltXml
__________________
DVD slideshow GUI(Freeware).

Last edited by tin3tin; 20th November 2009 at 07:52.
tin3tin is offline   Reply With Quote
Old 20th November 2009, 09:56   #23  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,442
Quote:
Originally Posted by tin3tin View Post
What I'm saying is that you can use avisynth to extract information about the imported script. Please re-read my post above. There are avisynth functions like clip.width(), clip.height(), clip.framerate() and clip.framecount() too. These infos can be generated by a temp avisynth script, which can save that info to a temp file. This temp txt file you can let your app read the info from.
Yes, use Avisynth to get the info, but instead of using a temporary script with WriteFile writing to a text file which you have to read back in, use the API directly via the library interface.
Gavino is offline   Reply With Quote
Old 20th November 2009, 11:44   #24  |  Link
tin3tin
Registered User
 
tin3tin's Avatar
 
Join Date: Mar 2005
Posts: 366
Quote:
use the API directly via the library interface.
Can you explain how this is done in more detail?
__________________
DVD slideshow GUI(Freeware).
tin3tin is offline   Reply With Quote
Old 20th November 2009, 12:19   #25  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,442
Code:
IScriptEnvironment* env = CreateScriptEnvironment();
gives you a script environment which you can use with any of the plugin API functions from avisynth.h. In particular, you can load a script by env->Invoke("Import", ...) and get properties from the resulting clip. Note that you need to link with avisynth.lib to make CreateScriptEnvironment available.

See also this post. This refers to the C API, so some of the details are different, but later in the thread, there are examples using C++ too. For just getting clip properties, the process is a bit simpler as you don't need to go as far as getting a frame.

Last edited by Gavino; 20th November 2009 at 12:46.
Gavino is offline   Reply With Quote
Old 20th November 2009, 17:19   #26  |  Link
Zarxrax
Registered User
 
Join Date: Dec 2001
Posts: 1,228
Quote:
Originally Posted by teejee2008 View Post
All those people who are getting 'Microsoft.DirectX.AudioVideoPlayback.dll' not found error, please install download the dlls from the internet and put them in the application folder. You will need two DLLs:

Microsoft.DirectX.AudioVideoPlayback.dll
Microsoft.DirectX.dll

The second one should be there on your system already.
The reason I didn't include it with the download is because I thought these files are available on every windows PC. I think these files are part of the DirectX 9c Update but i'm not sure. Download it off the internet or install the latest DirectX 9c update
I have directx 11, so apparently Microsoft.DirectX.AudioVideoPlayback.dll isn't included. I have the other file. I downloaded this dll and put it in the AviSynthStudio folder, and the error about that file went away, but I'm still getting constant unhandled exception errors.
System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)


This looks like an exciting application if it can be developed farther. There are hundreds or maybe thousands of people over at animemusicvideos.org who could use a decent free video editor. Since Microsoft has discontinued Windows Movie Maker as of windows 7 (the new WMM Live can not even be classified as a non-linear editor), there doesn't even exist any decent free video editing application anymore.
Zarxrax is offline   Reply With Quote
Old 20th November 2009, 20:43   #27  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,371
@teejee2008
Please replace your bass plugins v2.3, in your installer with the last v2.4
I make (2008-3-14) some changes, from v2.3 to v2.4, in BassAudio.dll (interface between AviSynth and Bass libraries) very importants to decode audio correctly.

The BassAudio.dll v2.4 is in BeHappy package and the rest in http://www.un4seen.com/bass.html (remember change the names to match with your names)

@All BeHappy (or BassAudio.dll) users, update the Bass*.dll with v2.4 in your AviSynth plugins folder.

Last edited by tebasuna51; 20th November 2009 at 20:46.
tebasuna51 is offline   Reply With Quote
Old 21st November 2009, 08:07   #28  |  Link
teejee2008
FFCoder author
 
Join Date: Dec 2007
Location: India
Posts: 174
Quote:
Originally Posted by Zarxrax View Post
I have directx 11, so apparently Microsoft.DirectX.AudioVideoPlayback.dll isn't included. I have the other file. I downloaded this dll and put it in the AviSynthStudio folder, and the error about that file went away, but I'm still getting constant unhandled exception errors.
System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Putting the DLLs in the application directory will throw a lot of exceptions. These dlls have to be installed correctly. You can install the DirectX 9c update on your Win7 system without any problems. It only updates the DirectX 9c DLLs on your system. It won't have any effect on your DirectX 11 setup.

Quote:
Originally Posted by Zarxrax View Post
This looks like an exciting application if it can be developed farther. There are hundreds or maybe thousands of people over at animemusicvideos.org who could use a decent free video editor. Since Microsoft has discontinued Windows Movie Maker as of windows 7 (the new WMM Live can not even be classified as a non-linear editor), there doesn't even exist any decent free video editing application anymore.
I don't know how far I can take it. I'll try my best.
teejee2008 is offline   Reply With Quote
Old 21st November 2009, 08:08   #29  |  Link
teejee2008
FFCoder author
 
Join Date: Dec 2007
Location: India
Posts: 174
@tebasuna51

Thanks for the info. I'll include the updated DLLs next time.
teejee2008 is offline   Reply With Quote
Old 21st November 2009, 08:10   #30  |  Link
teejee2008
FFCoder author
 
Join Date: Dec 2007
Location: India
Posts: 174
@everybody

I have started adding video filters. It's almost done. I'll try to release a new build by Monday. It may take longer. This is what the filters window will look like:

teejee2008 is offline   Reply With Quote
Old 21st November 2009, 12:57   #31  |  Link
tin3tin
Registered User
 
tin3tin's Avatar
 
Join Date: Mar 2005
Posts: 366
Looks good. Earlier on you mentioned help for making filter definition files. I think AvsP got most of the covered - for setting up spinners and checkboxes. You should maybe look into the files included in AvsP.

Have you thought about how to implement transitions?
__________________
DVD slideshow GUI(Freeware).
tin3tin is offline   Reply With Quote
Old 21st November 2009, 13:41   #32  |  Link
teejee2008
FFCoder author
 
Join Date: Dec 2007
Location: India
Posts: 174
I'm using an XML based format for storing definitions. These definitions will be easy to make using the in-built editor (screenshot below)

teejee2008 is offline   Reply With Quote
Old 21st November 2009, 13:47   #33  |  Link
teejee2008
FFCoder author
 
Join Date: Dec 2007
Location: India
Posts: 174
Transitions will be difficult to implement
teejee2008 is offline   Reply With Quote
Old 21st November 2009, 16:09   #34  |  Link
Zarxrax
Registered User
 
Join Date: Dec 2001
Posts: 1,228
Do you plan to add support for 2 (or more) video tracks? Having at least 2 video tracks would give a LOT more freedom. Transparency and fades can be done via default avisynth functions.
Also, the plugin "TransAll" will give you access to 28 different transitions.
Zarxrax is offline   Reply With Quote
Old 22nd November 2009, 17:41   #35  |  Link
chris.
Registered User
 
Join Date: Mar 2009
Posts: 2
Is the source available? What are your plans for licensing?
chris. is offline   Reply With Quote
Old 23rd November 2009, 09:48   #36  |  Link
ricardo.santos
Registered User
 
ricardo.santos's Avatar
 
Join Date: Mar 2005
Location: Portugal
Posts: 908
SynthEditor, avisynth video editor:

http://forum.doom9.org/showthread.ph...564#post799564
ricardo.santos is offline   Reply With Quote
Old 23rd November 2009, 11:15   #37  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,442
Another example for comparison is AVSCutter:

http://www.ecs.fh-osnabrueck.de/avscutter.html
Gavino is offline   Reply With Quote
Old 23rd November 2009, 15:11   #38  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
I suggest setting the .NET project to run as 32-bit code only, that should take away some of the headaches for win64 users.
squid_80 is offline   Reply With Quote
Old 23rd November 2009, 21:11   #39  |  Link
markanini
Registered User
 
Join Date: Apr 2006
Posts: 299
Maybe too early for such a request but I'd love to see functionality where I can select different crops of a clip for depanestimate.

Last edited by markanini; 23rd November 2009 at 21:42. Reason: typos
markanini is offline   Reply With Quote
Old 24th November 2009, 02:20   #40  |  Link
nibbles
Registered User
 
nibbles's Avatar
 
Join Date: Aug 2006
Posts: 50
On x64, I'm getting a mass of errors when I try to run this.


************** Exception Text **************
System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at AvisynthStudio.frmMain.MouseMove_UpdateStatusBar()
at AvisynthStudio.frmMain.frmMain_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
nibbles is offline   Reply With Quote
Reply

Tags
avisynth, nle

Thread Tools
Display Modes

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 05:15.


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