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. |
![]() |
#1 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
vsrawsource - Raw Video Reader for VapourSynth
I wrote a VapourSynth plugin named vsrawsource.
vsrawsource-0.3.2.zip source code repository https://github.com/chikuzen/vsrawsource This plugin is the rewrited version of avisynth's rawsource.dll to for VS from scratch. I am inviting the patch for MacOS X build now. EDIT: 2013/07/31 updated to 0.3.2
__________________
my repositories Last edited by Chikuzen; 31st July 2013 at 10:53. |
![]() |
![]() |
![]() |
#3 | Link | |
typo lover
Join Date: May 2009
Posts: 595
|
Quote:
![]()
__________________
my repositories |
|
![]() |
![]() |
![]() |
#6 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
or see source code.
https://github.com/chikuzen/vsrawsou.../format_list.c
__________________
my repositories |
![]() |
![]() |
![]() |
#8 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,519
|
I looked at the source. It's a bad idea to write to stdout directly. If you want to return text you really should return it as a string value from the function because as it is it won't even interact with the python interpreter nicely.
My personal opinion is that this kind of stuff belongs in the documentation but that's up to you.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
![]() |
![]() |
![]() |
#9 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
Update to 0.2.0
* new option 'rowbytes_align'. * support Windows Bitmap(.bmp) BMP support is only for 24bit/32bit uncompressed RGB (palette,RLE and the others are not supported).
__________________
my repositories |
![]() |
![]() |
![]() |
#11 | Link |
Registered User
Join Date: Feb 2010
Location: New York
Posts: 116
|
Just a quick note, it seems that your function registration is looking for parameters named "header_off" and "frame_off":
Code:
... VS_EXTERNAL_API(void) VapourSynthPluginInit( VSConfigPlugin f_config, VSRegisterFunction f_register, VSPlugin *plugin) { f_config("chikuzen.does.not.have.his.own.domain.raws", "raws", "Raw-format file Reader for VapourSynth " VS_RAWS_VERSION, VAPOURSYNTH_API_VERSION, 1, plugin); f_register("Source", "source:data;width:int:opt;height:int:opt;" "fpsnum:int:opt;fpsden:int:opt;src_fmt:data:opt;" "header_off:int:opt;frame_off:int:opt;rowbytes_align:int:opt", create_source, NULL, plugin); } Code:
... vs_args_t va = { in, out, core, vsapi }; if (header > 0) { set_args_int(&rh->vi.width, 720, "width", &va); set_args_int(&rh->vi.height, 480, "height", &va); set_args_int(&rh->off_header, 0, "off_header", &va); set_args_int(&rh->off_frame, 0, "off_frame", &va); set_args_int(&rh->row_adjust, 1, "rowbytes_align", &va); set_args_data(rh->src_format, "I420", "src_fmt", FORMAT_MAX_LEN, &va); } ... |
![]() |
![]() |
![]() |
#12 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
oops, sorry.
I didn't notice that typo. It seems that VS-r15 is coming soon and API version is bumped up. so i'll release new version with fixed it as soon as r15 is come.
__________________
my repositories |
![]() |
![]() |
![]() |
#13 | Link |
Registered User
Join Date: Feb 2010
Location: New York
Posts: 116
|
That's great, thank you! I'm in no rush, mind you, I just wanted to make sure I mentioned it. In the meantime, I've written a little command line application that strips out the headers of the files I'm working with, so I can work around it for as long as I need to. I appreciate your work on this plugin, it's proving to be very useful!
|
![]() |
![]() |
![]() |
#14 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
updated to 0.3.0
* Alpha channel support * fix typo All alpha channel data will be stored in "_Alpha" prop. You can extract it with 'alpha = core.std.PropToClip(clip)' as a Gray clip.
__________________
my repositories |
![]() |
![]() |
![]() |
#15 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
updated to 0.3.1
* change alpha support method.
__________________
my repositories |
![]() |
![]() |
![]() |
#16 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
update to 0.3.2
* fix memory leak * cope with the filename which includes non-ASCII characters
__________________
my repositories |
![]() |
![]() |
![]() |
#17 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,519
|
New compiles for 64 bit are available here.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
![]() |
![]() |
![]() |
#18 | Link | |
I'm Siri
Join Date: Oct 2012
Location: void
Posts: 2,633
|
how do I compile this thing exactly?
I followed the instructions Quote:
and I copied that file along with cygwin1.dll to the plugin directory and tried to run it and vaporsynth just crashed without any warning |
|
![]() |
![]() |
![]() |
#19 | Link | |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Quote:
There are no secret compilation instructions that make it not crash. Probably.
__________________
Buy me a "coffee" and/or hire me to write code! |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|