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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th August 2008, 16:37   #61  |  Link
Stakiman
Registered User
 
Stakiman's Avatar
 
Join Date: Apr 2007
Location: Sofia, Bulgaria
Posts: 23
I get error "Couldn't write image to "D:\000001.png"" and I am using Vista. Can this be the reason? I've set everything up and double-ensured that everything is in place. I've also included the magick_home libraries in the script.

And thanks for this plugin, though! Now I can do something I wanted to do a few months ago.

Last edited by Stakiman; 25th August 2008 at 17:23.
Stakiman is offline   Reply With Quote
Old 25th August 2008, 17:19   #62  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
Okay, everything works fine. Just so you know, its a little confusing, as there are two immaavs.dll's in that zip file. The first (the "bad") one is in the initial folder. But after I noticed the folder labeled "Release" then I found the "good" one. Just something you may want to consider fixing.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 25th August 2008, 17:32   #63  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
I get error "Couldn't write image to "D:\000001.png"" and I am using Vista. Can this be the reason?
Don't know, i don't have Vista (1) Could you post your script? (2) Does it depend on your script? (3) Can you write it to a different format?

Quote:
Okay, everything works fine. Just so you know, its a little confusing, as there are two immaavs.dll's in that zip file. The first (the "bad") one is in the initial folder. But after I noticed the folder labeled "Release" then I found the "good" one. Just something you may want to consider fixing.
Thanks! I removed the bad one from the package.

Last edited by Wilbert; 25th August 2008 at 17:35.
Wilbert is offline   Reply With Quote
Old 25th August 2008, 18:15   #64  |  Link
Stakiman
Registered User
 
Stakiman's Avatar
 
Join Date: Apr 2007
Location: Sofia, Bulgaria
Posts: 23
I tried bmp and png - still the same result.

DirectShowSource("graph.grf",audio=false,fps=23.976024)
assumefps(23.976024)
crop(0,140,0,-140)
spline36resize(1280,532)
converttoRGB24()
trim(54000,55000)
ImmaWrite("D:\",type="png",magick_home="C:\WINDOWS\system32")

Here's my script.
Stakiman is offline   Reply With Quote
Old 25th August 2008, 20:02   #65  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
That's weird. So a script like this:
Code:
BlankClip(length=401, width=400, height=300, color=$616264).ConvertToRGB24()
ShowFrameNumber(text_color=$fffffff, size=70, x=115, y=175, halo_color=$616264)
ImmaWrite("F:\", type="png", info=true, start=2, end=5, magick_home="C:\WINDOWS\system32")
doesn't work either?

Does ImmaRead work?
Wilbert is offline   Reply With Quote
Old 25th August 2008, 21:45   #66  |  Link
Stakiman
Registered User
 
Stakiman's Avatar
 
Join Date: Apr 2007
Location: Sofia, Bulgaria
Posts: 23
No images are saved, although here is what goes up: http://www.imagebam.com/image/fd117c11932204
The directory D:\lol\ exists. I will check ImmaRead after a bit.
Stakiman is offline   Reply With Quote
Old 26th August 2008, 10:26   #67  |  Link
Archimedes
Registered User
 
Join Date: Apr 2005
Posts: 213
What about relative path names? Does magick_home='dll\ImageMagick' work?
Archimedes is offline   Reply With Quote
Old 26th August 2008, 15:53   #68  |  Link
Stakiman
Registered User
 
Stakiman's Avatar
 
Join Date: Apr 2007
Location: Sofia, Bulgaria
Posts: 23
If i don't put it there, another error goes up. My only reasonable solution is to downgrade to XP. Thanks to everyone!
Stakiman is offline   Reply With Quote
Old 26th August 2008, 18:08   #69  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
What about relative path names? Does magick_home='dll\ImageMagick' work?
Is that a question to me? The magick_home variable needs to point to your system32 folder (or a subfolder of it) where your ImageMagick dll's are located. I haven't tried it, but i don't think that relative path names work.

Stakiman, i've forwarded your question to gzarkadas. I hope that he can help, because i've no idea what the problem is.
Wilbert is offline   Reply With Quote
Old 27th August 2008, 09:42   #70  |  Link
Archimedes
Registered User
 
Join Date: Apr 2005
Posts: 213
Quote:
Originally Posted by Wilbert View Post
Is that a question to me? The magick_home variable needs to point to your system32 folder (or a subfolder of it) where your ImageMagick dll's are located. I haven't tried it, but i don't think that relative path names work.
Sorry. Yes, that was a question to you.

It’s because, the new version don’t work with my program. In my AviSynth scripts i’m working with relative path names (relative to the program directory). The Image Magick dll’s are in the program directory. Version 1.32 works fine so far. The new version needs the magick_home variable. How can I tell ImmaRead or ImmaWrite that the Image Magick dll’s are in the current directory (or in a subfolder)? What, if magick_home is not set? Is it possible to look in the current directory for the Image Magick dll's in that case?
Archimedes is offline   Reply With Quote
Old 27th August 2008, 17:34   #71  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Btw, there's a similar bug in ImmaRead (it reads images from the same location at the script).

Quote:
It’s because, the new version don’t work with my program. In my AviSynth scripts i’m working with relative path names (relative to the program directory). The Image Magick dll’s are in the program directory. Version 1.32 works fine so far. The new version needs the magick_home variable. How can I tell ImmaRead or ImmaWrite that the Image Magick dll’s are in the current directory (or in a subfolder)? What, if magick_home is not set? Is it possible to look in the current directory for the Image Magick dll's in that case?
That's not possible anymore (the code got much cleaner that way). Do you really need that? Can't you copy the dll's to the system32 folder?
Wilbert is offline   Reply With Quote
Old 9th December 2008, 22:20   #72  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
I put a new version up. See first post of this thread.

@Stakiman,
Did you get it to work by now?
Wilbert is offline   Reply With Quote
Old 9th December 2008, 22:35   #73  |  Link
Stakiman
Registered User
 
Stakiman's Avatar
 
Join Date: Apr 2007
Location: Sofia, Bulgaria
Posts: 23
Yes, I got it to work. Great plugin, thanks for the update!
Stakiman is offline   Reply With Quote
Old 16th December 2008, 17:06   #74  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
I'm attempting to load an image sequence where only the heights of the images differ. I'm using the size_x and size_y parameters, but no matter what I do, it won't correctly load any images in the sequence unless they have the same height as the first image. The other images are just displayed as:
Code:
ImmaRead: image [filename]
The initial image is 49px high, and I want all the images letterboxed to 90px. This is the script I'm using:
Code:
ImmaRead("*.bmp",start=35,end=735,gapless=true,size_x=848,size_y=90)
When I tried to create a dummy 90px high bitmap and load that as the first image, it complained that the other images didn't match the first image's dimensions.

I'm using v1.40

Last edited by qyot27; 16th December 2008 at 17:09.
qyot27 is offline   Reply With Quote
Old 16th December 2008, 19:08   #75  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
I'm attempting to load an image sequence where only the heights of the images differ. I'm using the size_x and size_y parameters, but no matter what I do, it won't correctly load any images in the sequence unless they have the same height as the first image. The other images are just displayed as:
Hmm, are you sure you are using the correct version?

Could you upload 4-5 bmp's which won't load somewhere (cause i can't replicate the issue)?

Quote:
ImmaRead("*.bmp",start=35,end=735,gapless=true,size_x=848,size_y=90)
Above should load all bmp's in the current folder. It's the same as
Code:
ImmaRead("*.bmp",size_x=848,size_y=90)
Try something like:
Code:
ImmaRead("pic%3d.bmp",start=35,end=735,gapless=true,size_x=848,size_y=90)
if they are named pic35, pic36, pic735, or
Code:
ImmaRead("pic%03d.bmp",start=35,end=735,gapless=true,size_x=848,size_y=90)
if they are named pic035, pic036, pic735.

Last edited by Wilbert; 16th December 2008 at 19:18.
Wilbert is offline   Reply With Quote
Old 16th December 2008, 21:36   #76  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
Hi,
have we some source filter for reading jpeg, which directly import to YV12 without intermediate RGB conversion?
Most jpegs have YV12 or YV24 internal format (IMO).
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 17th December 2008, 07:24   #77  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
Quote:
Originally Posted by Wilbert View Post
Hmm, are you sure you are using the correct version?
I only found out about this plugin a couple of hours before I posted, and downloaded it directly from the webpage linked in the first post.

Quote:
Could you upload 4-5 bmp's which won't load somewhere (cause i can't replicate the issue)?
It's not that they won't load, it's that they won't load if there's a height mismatch somewhere in the sequence. I can make them load if I change the starting bmp's height, but then other images in the sequence won't load.

In other words, depending on the height the starting image is, a different set of images after it won't load. It's not predictable except by the dimensions of that first image.

In any case, I've attached a sample containing 8 bitmaps of varying heights and the script.
Attached Files
File Type: zip bmpsequence_121708.zip (286.8 KB, 29 views)
qyot27 is offline   Reply With Quote
Old 17th December 2008, 19:55   #78  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Thanks, i will fix it.

@Fizick,

I will ask around on ImageMagick's forums. I guess it should be possible, but i have no idea how.
Wilbert is offline   Reply With Quote
Old 17th December 2008, 21:10   #79  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@qyot27,

I think i fixed it. Could you try it again?

http://www.geocities.com/wilbertdijkhof/immaavs.dll
Wilbert is offline   Reply With Quote
Old 18th December 2008, 14:52   #80  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
Quote:
Originally Posted by Wilbert View Post
@qyot27,

I think i fixed it. Could you try it again?

http://www.geocities.com/wilbertdijkhof/immaavs.dll
After copying it to C:\Program Files\AviSynth 2.5\plugins, I get a 'there is no function named ImmaRead' error. Specifying it explicitly with LoadPlugin makes the error unreadable characters, but running VirtualDub in Japanese locale reveals the error is still the same.

Do I have to redo my system settings like I did when I initially installed, or is it something else?
qyot27 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 22:51.


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