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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th May 2016, 10:07   #41  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,372
Code:
Vapoursynth script
# Core
>>> import vapoursynth as vs
>>> core = vs.Core(accept_lowercase=True)

# Import plugins
>>> core.std.LoadPlugin('C:/vsavsreader.dll')

# Use "Import" to load interleaved MSB/LSB Avisynth script.
>>> clip = core.avsr.Import('C:/script.avs', bitdepth=16)

External Avsiynth script being imported.

#script.avs
LoadPlugin("C:/plugins/DGDecode.dll")
LoadPlugin("C:/plugins/Dither.dll")
Import("C:/scripts/Dither.avsi")
MPEG2Source("D:/source.d2v")
Dither_convert_8_to_16()
Dither_resize16(1280, 720)
Dither_convey_yuv4xxp16_on_yvxx()

I guess I'm missing the way this is supposed to work:

clip = core.avsr.Import('C:/script.avs', bitdepth=16

This loads clip into VapourSynth, I get that much. But, typically, Dither() et al. are an end-filter deal for me, like:

Code:
clip = whatever (clip)
clip = something else (clip)

....
clip = core.avsr.Import('C:/script.avs', bitdepth=16)
I don't see how that last AVS line builds upon the last state of clip at all. Or am I really missing something?!

Thanks.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 9th May 2016, 23:07   #42  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,372
^^ Perhaps I should clarify this a bit:

Code:
#script.avs
LoadPlugin("C:/plugins/DGDecode.dll")
LoadPlugin("C:/plugins/Dither.dll")
Import("C:/scripts/Dither.avsi")
MPEG2Source("D:/source.d2v")
Dither_convert_8_to_16()
Dither_resize16(1280, 720)
Dither_convey_yuv4xxp16_on_yvxx()

The source in this imported AS script is just MPEG2Source, independently of what happened to 'clip' in your VS script thus far. I don't see how that is useful at all (except, maybe, when it's your first line in your VS script).

I'd just rather we'd be able to import/use Dither.avsi (and dll) itself, so you can use the Dither functions directly in VapourSynth. (Kinda makes me wonder whether Dither() even exists for 64-bit)
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 9th May 2016, 23:34   #43  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,115
Quote:
Originally Posted by asarian View Post
I'd just rather we'd be able to import/use Dither.avsi (and dll) itself, so you can use the Dither functions directly in VapourSynth. (Kinda makes me wonder whether Dither() even exists for 64-bit)
Why not just use fmtconv? Also, zimg was integrated into VapourSynth a while back. See documentation for more information. As for MPEG2Source, use D2VSource. Case closed .
Reel.Deel is offline   Reply With Quote
Old 9th May 2016, 23:43   #44  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,372
I am already using fmtconv. That wasn't really my point, though. Nor is the use of MPEG2Source (frankly, I don't care what source filter that avs script uses). I was merely contemplating the usefulness of vsavsreader, when the imported avs script uses its own source, from stratch, instead of building on what you have so far in your VapourSynth script.

Case reopened.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 9th May 2016, 23:58   #45  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,115
Quote:
Originally Posted by asarian View Post
I am already using fmtconv. That wasn't really my point, though. Nor is the use of MPEG2Source (frankly, I don't care what source filter that avs script uses). I was merely contemplating the usefulness of vsavsreader, when the imported avs script uses its own source, from stratch, instead of building on what you have so far in your VapourSynth script.

Case reopened.
Sorry I missed your point, it wasn't really clear to me, still isn't. Anyways, vsavsreader was created in 2012 when VapourSynth had very limited use so this plugin helped to fill that void. Nowadays is kinda obsolete since most of the useful scripts and plugins have been ported to VapourSynth. Also VS can load AVS 2.6 plugins directly so... Hence why your the first person to post in this thread since Dec. 2014.

And don't forget about AviSource:
Quote:
Originally Posted by Myrsloik View Post
I'm just going to add that using vs avisource to open an avisynth script and (if necessary) fmtconv's 16 bit avisynth compatibility functions should work just as well.

I completely forgot that this plugin kinda is obsolete now because avisource exists.
Reel.Deel is offline   Reply With Quote
Old 10th May 2016, 00:03   #46  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,372
Quote:
Originally Posted by Reel.Deel View Post
Sorry I missed your point, it wasn't really clear to me, still isn't. Anyways, vsavsreader was created in 2012 when VapourSynth had very limited use so this plugin helped to fill that void. Nowadays is kinda obsolete since most of the useful scripts and plugins have been ported to VapourSynth. Also VS can load AVS 2.6 plugins directly so... Hence why your the first person to post in this thread since Dec. 2014.

And don't forget about AviSource:

Fair enough. I'm just going to go with the new stuff, I reckon. Didn't realize vsavsreader was that old, really.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 21st September 2018, 12:48   #47  |  Link
Lynx_TWO
Registered User
 
Join Date: Aug 2005
Posts: 31
Quote:
Originally Posted by TheFluff View Post
there's a difference between being unable to do a thing and being too lazy to do a thing
Oh man I wish there was a voting system in this forum. This is the comment of the decade, and I can personally attest to this. Another thing I wish we had was more time. Sleeping is such a time-suck!
Lynx_TWO is offline   Reply With Quote
Old 21st September 2018, 13:14   #48  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,335
Quote:
Originally Posted by Reel.Deel View Post
Unfortunately I only have Microsoft Visual C++ 2010 Express so I guess I'm SOL when it comes to trying to compile a 64-bit vsavsreader.
* You need to install the Windows SDK 7.1 too and make it current.
* Your registry should have similar entries as here (but then for Windows SDK 7.1): https://web.archive.org/web/20140121...stry-keys.aspx

Then you will be able to compile 64-bit stuff.
Wilbert 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:24.


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