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. |
28th April 2017, 10:24 | #2481 | Link |
Registered User
Join Date: Oct 2014
Posts: 268
|
It's RGB.. the way I see it there is no 'colormatrix' then, that's only for YUV files. Maybe an RGB colorprofile / ICC-profile but that is something you should override in whatever application you use to read the file, I'm pretty sure AVI can't store ICC profiles for RGB data somewhere .
|
28th April 2017, 13:54 | #2483 | Link |
Registered User
Join Date: Oct 2014
Posts: 268
|
R210 is RGB 10bit. https://wiki.multimedia.cx/index.php/R210. 10 bits R, 10 bits G, 10 bits B, 2 bits padding.
There can still be a thing such as 'broadcast safe levels' and full range (like I said, RGB can have things as color profiles, but that has nothing to do with the codec, more with the what your program interprets the RGB values as), even in RGB. Doesn't change the fact that R210 is a RGB packing method.. that's the whole thing I asked.. 'Can you pack vs.RGB30 as R210 in the VfW interface'. Anyway, I don't install any Blackmagic codecs anyway. Don't see why anyone would. Maybe you can configure the codec (or the encoder that created the clip) to use full range or not. In Davinci Resolve you can click the clip properties in your Media Bin to change the interpretation of the levels. |
28th April 2017, 23:22 | #2485 | Link | |
Registered User
Join Date: May 2010
Location: Germany, Munich
Posts: 49
|
Quote:
When you say 10bit, this means a ProRes444 file (which is 12bit) is piped in reduced quality into Resolve - is there a way to feed it to Resolve in a way no quality is lost (meaning in 16bit, 32bit or whatever Resolve internally uses)? I asked for an OFX plugin a (short) while ago but it seems Myrsloik missed my second post. I still believe such a plugin (if technically possible) that runs VS code would be great to lift VS more into the professional realm and I assume many professionals would be very happy to this in their toolkit. If communicated right, I am sure some of them will be willing to donate to make this happen. TIA! |
|
29th April 2017, 10:53 | #2487 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
1st May 2017, 10:39 | #2488 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
using portable R37 64bit with:
Code:
# Imports import vapoursynth as vs core = vs.get_core() # Loading Plugins core.std.LoadPlugin(path="G:/Hybrid/vsfilters/Support/fmtconv.dll") core.std.LoadPlugin(path="G:/Hybrid/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll") # Loading F:\TestClips&Co\test.avi using LWLibavSource clip = core.lsmas.LWLibavSource(source="F:/TESTCL~1/test.avi", format="YUV420P8", cache=0) # making sure input color matrix is set as 470bg clip = core.resize.Point(clip, matrix_in_s="470bg") # making sure input color range is set to TV (16-235) scale. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) original = clip # dualView True # vsPreview True # cropping the video to 600x312 clip = core.std.CropRel(clip=clip, left=40, right=0, top=40, bottom=0) # cropping the video to 600x312 original = core.std.CropRel(clip=original, left=40, right=0, top=40, bottom=0) # clip resizing to 960x500 #clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) # original resizing to 960x500 #original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) original = core.sub.Subtitle(clip=original, text="Original") clip= core.sub.Subtitle(clip=clip, text="Filtered") stacked = core.std.StackHorizontal([original,clip]) # Output stacked.set_output() Code:
VSPipe.exe --y4m h:\Temp\tempPreviewVapoursynthFile11_03_52_922.vpy - | g:\Hybrid\mplayer.exe - Removing: Code:
# clip resizing to 960x500 clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) # original resizing to 960x500 original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) => Does anyone see what I do wrong? (using 'clip.set_output()' or 'original.set_output()' the script doesn't crash either) Leaving out the cropping doesn't change anything, so this seems to be related to fmtc. Using: Code:
# clip resizing to 960x500 clip = core.resize.Spline16(clip, width=960, height=500) # original resizing to 960x500 original = core.resize.Spline16(original, width=960, height=500) Code:
# clip resizing to 960x500 clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) # original resizing to 960x500 original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) => seems like there is a problem with fmtc when used multiple times inside a script. (I'm using fmtconv r20 from https://github.com/EleonoreMizo/fmtconv/releases) Last edited by Selur; 1st May 2017 at 11:12. Reason: tested using Spine16 instead of fmtc "spline16" |
1st May 2017, 12:27 | #2491 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
When I use:
Code:
# clip resizing to 960x500 clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) # original resizing to 960x500 original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) stacked = core.std.StackHorizontal([original,clip]) # Output stacked.set_output() When I use: Code:
# clip resizing to 960x500 clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) # original resizing to 960x500 original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) stacked = core.std.StackHorizontal([original,clip]) # Output original.set_output() Code:
# clip resizing to 960x500 clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) # original resizing to 960x500 original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) stacked = core.std.StackHorizontal([original,clip]) # Output clip.set_output() Code:
stacked = core.std.StackHorizontal([original,clip]) So it seemed to me that the problem only occurred when I used two fmtc calls, like I did with: Code:
# clip resizing to 960x500 clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) # original resizing to 960x500 original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) If you got another explanation for it please share. |
1st May 2017, 14:21 | #2492 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Can someone aside from me reproduce the issue?
(just to be sure this isn't somehow related to my setup) Minimal example would be: Code:
clip = core.lsmas.LWLibavSource(source="F:/TESTCL~1/TEST-A~1.AVI", format="YUV420P8", cache=0) # source and source filter don't matter, tried different sources and source filters original = clip # copying current clip state to original clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=720, interlaced=False, interlacedd=False) # resizing clip original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=720, interlaced=False, interlacedd=False) # resizing clip stacked = core.std.StackHorizontal([original,clip]) # stacking stacked.set_output() # return |
1st May 2017, 14:42 | #2494 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
I just got crashes immediately after upgrading to R38 test2. Then it worked after a few tries.
/edit: Then crashes again. Kinda random. No idea what's going on. Just doing vspipe - script.vpy > NUL Last edited by sneaker_ger; 1st May 2017 at 14:51. |
1st May 2017, 15:51 | #2496 | Link | |||
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Quote:
Quote:
Quote:
---- downloaded: https://www.python.org/ftp/python/3....mbed-amd64.zip and https://github.com/vapoursynth/vapou...ortable-R37.7z extracted both into one folder called: Code:
VSPipe.exe c:\Users\Selur\Desktop\Test.vpy - | ffplay.exe - copied the files to my laptop, got the same crash. (Both run Win10 latest updates; laptop is an i7, main system is a Ryzen 7 1800x) --- replacing: Code:
original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) Code:
original = clip RAM usage of vspip is ~870MB upon the crash. Cu Selur |
|||
1st May 2017, 16:06 | #2497 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Copied the whole thing into a Win 8.1 64bit VM and there the script worked as it should. No problem.
-> HolyWu what OS are you on? Could this be a problem thanks to Windows 10 Creators Update? replacing: Code:
clip = core.lsmas.LWLibavSource(source="F:/TESTCL~1/test.avi", format="YUV420P8", cache=0) original = clip clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) Code:
clip = core.lsmas.LWLibavSource(source="F:/TESTCL~1/test.avi", format="YUV420P8", cache=0) original = core.lsmas.LWLibavSource(source="F:/TESTCL~1/test.avi", format="YUV420P8", cache=0) clip = core.fmtc.resample(clip=clip, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) original = core.fmtc.resample(clip=original, kernel="spline16", w=960, h=500, interlaced=False, interlacedd=False) Last edited by Selur; 1st May 2017 at 16:24. |
1st May 2017, 16:56 | #2498 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Since the core resizer only covers Bicubic/Point/Lanczos/Spline16/Spline36, but I sometimes like gauss more I normally stick with fmtconv. (I also like to have the option to use the other resizers offered by fmtconv.)
Strange thing that I get the crash each time (on both my i7 and my Ryzen system) and you only very seldom and random. |
Tags |
speed, vaporware, vapoursynth |
|
|