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 31st October 2017, 17:34   #2861  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,513
R40 test2 is working, no more crashes.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 7th November 2017, 22:42   #2862  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,891
R40-RC1

Time to finally get a maintenance release out to fix the broken levels for everyone. Report if anything in the change list is more broken than before. Release in two days or so unless major bugs are found.

Code:
r40:
improved expr asm slightly
made the framebuffer memory pool size a percentage of the total allowed memory usage instead of a fixed size, this should scale better when processing 8k and larger resolutions
fixed rgb output sometimes being flipped in avisource
added alpha output settings to avisource, the default is no alpha output
fixed gamma being infinite if not set in levels, bug introduced in r39
removed the hack needed to support avisynth mvtools, the native mvtools has been superior for several years now and removing the hack makes avisynth filter creation much faster
added avisynth+ compatibility
only do prefetching in avfs with vs script when linear access is detected, fixes excessive prefetching that could make opening scripts very slow
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 8th November 2017, 16:24   #2863  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,071
I couldn't play a avfs mounted 10 bit avi on any media player, while the original 10 bit video works fine.
lansing is offline   Reply With Quote
Old 8th November 2017, 16:51   #2864  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,891
Quote:
Originally Posted by lansing View Post
I couldn't play a avfs mounted 10 bit avi on any media player, while the original 10 bit video works fine.
Which renderer are you using (I sure hope you're using madvr)? what's the output pin format in both cases?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 8th November 2017, 17:16   #2865  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,071
The video format after mount is YUV420P10.

With media player classic, renderer used is Enhanced Video Renderer. I don't know what pin format is. With the avsf one, it reads "P010". With the original file, it reads "NV12".

With VLC player, I get the error message "VLC could not decode the format "P010" (No description for this codec)".
lansing is offline   Reply With Quote
Old 8th November 2017, 17:20   #2866  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,891
Quote:
Originally Posted by lansing View Post
The video format after mount is YUV420P10.

With media player classic, renderer used is Enhanced Video Renderer. I don't know what pin format is. With the avsf one, it reads "P010". With the original file, it reads "NV12".

With VLC player, I get the error message "VLC could not decode the format "P010" (No description for this codec)".
Then the explanation is very simple. Your renderer can't accept it and negotiates another output format it can accept from the decoder (which is basically YV12) and displays that. Since avfs only ever returns one format it's rejected. Install madvr, use mpc and try again for better results.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 8th November 2017, 17:41   #2867  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,071
Yes madvr plays it without problem
lansing is offline   Reply With Quote
Old 9th November 2017, 04:31   #2868  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,071
I'm trying to create a blankclip with compatbgr32, but blankclip doesn't support the format.
lansing is offline   Reply With Quote
Old 9th November 2017, 09:32   #2869  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,891
Quote:
Originally Posted by lansing View Post
I'm trying to create a blankclip with compatbgr32, but blankclip doesn't support the format.
Create a rgb24 blankclip and then convert it if you really need it
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet

Last edited by Myrsloik; 19th November 2017 at 19:47.
Myrsloik is offline   Reply With Quote
Old 9th November 2017, 16:59   #2870  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,071
Quote:
Originally Posted by Myrsloik View Post
Create a rgb24 blankclip and then cpnvert ot of you really need ot
When I declared a copy clip and format in blankclip, the declared format doesn't overwrite the format of the copy clip like other arguments. It still gave me the error "compat formats not supported".
Code:
core.std.BlankClip(compat_clip,length=padding, format=vs.RGB24)
lansing is offline   Reply With Quote
Old 9th November 2017, 17:05   #2871  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,891
Quote:
Originally Posted by lansing View Post
When I declared a copy clip and format in blankclip, the declared format doesn't overwrite the format of the copy clip like other arguments. It still gave me the error "compat formats not supported".
Code:
core.std.BlankClip(compat_clip,length=padding, format=vs.RGB24)
Will fix
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 10th November 2017, 16:23   #2872  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,513
How to properly do a thing like Greyscale() in Vapoursynth? I've got a movie which is supposedly black and white, but according to the x265 logs, there is data in the chroma channels.

core.std.ShufflePlanes(clips=inclip, planes=0, colorfamily=vs.GRAY) does create a greyscale clip but in Gray8 format. If I use core.resize.Bicubic(clp, format=vs.YUV420P16) after it to make the video something to feed to x265, the chroma channels have garbage (green) in them.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 10th November 2017, 16:41   #2873  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 705
Usually the "black and white" is a transfer from film or photo material. It is not going to be greyscale in the computer (or YUV) sense of the word.

If you strip the chroma, you will loose that "color" tone of the source, and it is likely not-so-insignificant alteration. So I would not do this, unless you are dealing with actual digital cap of a greyscale computer image and you know that for sure.

Basically, think of "sepia" photos. You also ruin those by insisting on saving them in "BW/greyscale" format.
mandarinka is offline   Reply With Quote
Old 10th November 2017, 16:42   #2874  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,891
Quote:
Originally Posted by Boulder View Post
How to properly do a thing like Greyscale() in Vapoursynth? I've got a movie which is supposedly black and white, but according to the x265 logs, there is data in the chroma channels.

core.std.ShufflePlanes(clips=inclip, planes=0, colorfamily=vs.GRAY) does create a greyscale clip but in Gray8 format. If I use core.resize.Bicubic(clp, format=vs.YUV420P16) after it to make the video something to feed to x265, the chroma channels have garbage (green) in them.
Try R40-RC2

It also fixes the blankclip bug reported by lansing
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 10th November 2017, 16:45   #2875  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,513
Quote:
Originally Posted by mandarinka View Post
Usually the "black and white" is a transfer from film or photo material. It is not going to be greyscale in the computer (or YUV) sense of the word.

If you strip the chroma, you will loose that "color" tone of the source, and it is likely not-so-insignificant alteration. So I would not do this, unless you are dealing with actual digital cap of a greyscale computer image and you know that for sure.

Basically, think of "sepia" photos. You also ruin those by insisting on saving them in "BW/greyscale" format.
Hmm..that's an interesting point of view. I was asking this because it is the first time for BW movies that I see anything chroma-related in the P/B frame weighting according to x264/x265 logs. Of course, I'll compare the two outputs if I can see any difference.

Myrsloik: thanks, will test it!
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 10th November 2017, 16:51   #2876  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,513
Quote:
Originally Posted by Myrsloik View Post
Try R40-RC2

It also fixes the blankclip bug reported by lansing
And it works, no more garbage there.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 10th November 2017, 16:54   #2877  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 705
It can also contain rainbows and such garbage added in transfer/processing too, in such case, I would try to use derainbowers on it, maybe even strong ones (but not ones that wash out colors in large areas, to be safe).
mandarinka is offline   Reply With Quote
Old 10th November 2017, 18:20   #2878  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,513
Quote:
Originally Posted by mandarinka View Post
It can also contain rainbows and such garbage added in transfer/processing too, in such case, I would try to use derainbowers on it, maybe even strong ones (but not ones that wash out colors in large areas, to be safe).
I checked many places by comparing the greyscaled and original output and couldn't see any visual differences. Maybe there's just some bluish hue or something like that which is basically impossible to notice even with a frame by frame comparison. Funny thing is that the greyscale version required a slightly more bitrate when I did a short test encode. The UV channels clearly affected the frame type decision.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 10th November 2017, 18:50   #2879  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,891
R40 released. Blog post as usual. Everyone should upgrade since it's a maintenance release.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 10th November 2017, 22:43   #2880  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 520
Thank you. In regard to building vapoursynth :-

I think I had been using an incorrect github link for avisynth+

Can you please confirm whether this is the right link ? It seems to have been updated more recently.
https://github.com/pinterf/AviSynthPlus/tree/MT

And this is the right link for zimg I guess.
https://github.com/sekrit-twc/zimg/releases

Last edited by hydra3333; 10th November 2017 at 23:32.
hydra3333 is offline   Reply With Quote
Reply

Tags
speed, vaporware, vapoursynth

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 11:58.


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