View Single Post
Old 2nd October 2012, 13:05   #19  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by Chikuzen View Post
I'm not good at english to write such complicated descriptions.
If you write them, I'll add them into the readme.
Sounds like a deal. I'll put something together in the next couple of days.

I wish my Japanese were half as good as your English.

* Edit *

Here's the description I wrote on how to import Dither's msb/lsb format into Vapoursynth.
I'm not an expert so I hope it makes sense.

Code:
VsAvsReader is able to convert Dither's interleaved MSB/LSB format into a compatible Vapoursynth YUV4xxP9/10/16 format.
Dither's MSB/LSB must be interleaved, stacked format is not supported.
Only YUV planar formats are allowed.

example 1: Use VsAvsReader's Import function to load external Avisynth script.

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:/scriptss/Dither.avsi")
	MPEG2Source("D:/source.d2v")
	Dither_convert_8_to_16()
	Dither_resize16(1280, 720)
	Dither_convey_yuv4xxp16_on_yvxx()

_____________________________________________________________________


Example 2: Use VsAvsReader's Eval function to create Avisynth script inside a Vapoursynth script.

Vapoursynth script

	# Core
	import vapoursynth as vs
	core = vs.Core(accept_lowercase=True)

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

	# Use "Eval" to create interleaved MSB/LSB Avisynth script.
	lines = '''
	LoadPlugin("C:/plugins/DGDecode.dll")
	LoadPlugin("C:/plugins/Dither.dll")
	Import("C:/scriptss/Dither.avsi")
	MPEG2Source("D:/source.d2v")
	Dither_convert_8_to_16()
	Dither_resize16(1280, 720)
	Dither_convey_yuv4xxp16_on_yvxx()
	'''

	video = core.avsr.Eval(lines=lines, bitdepth=16)

Last edited by Reel.Deel; 6th October 2012 at 13:44.
Reel.Deel is offline   Reply With Quote