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 28th October 2019, 16:52   #3701  |  Link
MonoS
Registered User
 
Join Date: Aug 2012
Posts: 183
Quote:
Originally Posted by Myrsloik View Post
Yes, that should work and give you the best information.
Ok, i'll try to take a look, but it will probably take me about a week as i'm currently doing an encode.
MonoS is offline   Reply With Quote
Old 28th October 2019, 23:12   #3702  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,035
Quote:
Originally Posted by Myrsloik View Post
R48-RC6

Fixes premultiplied maskedmerge and a few expr problems that most likely were never encountered by anyone.
4 days without any bugs found! Final release when bug free for a whole week. Keep testing!
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 29th October 2019, 19:22   #3703  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 139
Hi,

R48 final based on python 3.7.x module? Which version of Vapoursynth will be based on python 3.8?

Gesendet von meinem HMA-L09 mit Tapatalk
__________________
My Builds
Patman is offline   Reply With Quote
Old 29th October 2019, 19:38   #3704  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,035
Quote:
Originally Posted by Patman View Post
Hi,

R48 final based on python 3.7.x module? Which version of Vapoursynth will be based on python 3.8?

Gesendet von meinem HMA-L09 mit Tapatalk
Yes, it will use python 3.7.x. I'll switch to 3.8.x when cython adds official support for it.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 29th October 2019, 19:41   #3705  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 139
Quote:
Originally Posted by Myrsloik View Post
Yes, it will use python 3.7.x. I'll switch to 3.8.x when cython adds official support for it.
Thanks for the info.

Gesendet von meinem HMA-L09 mit Tapatalk
__________________
My Builds
Patman is offline   Reply With Quote
Old 31st October 2019, 23:07   #3706  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,035
R48 is released!
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 3rd November 2019, 15:52   #3707  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Chamber 36
Posts: 5,873
Is there a particular reason why vsrepo downloaded files don't have original timestamps?

staxrip has packages with lost timestamps and I would like to recover them.
stax76 is offline   Reply With Quote
Old 3rd November 2019, 17:43   #3708  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,035
Quote:
Originally Posted by stax76 View Post
Is there a particular reason why vsrepo downloaded files don't have original timestamps?

staxrip has packages with lost timestamps and I would like to recover them.
Because the way I'm handling things it's kinda annoying to set them. And it's not like you can ever trust them anyway...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 9th November 2019, 08:25   #3709  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 532
Quote:
Originally Posted by Myrsloik View Post
Yes, it will use python 3.7.x. I'll switch to 3.8.x when cython adds official support for it.
just checking,

does that mean the v48 portable version
will run under portable python 3.7.5 ?
but not 3.8.0 ?
hydra3333 is offline   Reply With Quote
Old 9th November 2019, 09:09   #3710  |  Link
l00t
Where's my loot?
 
Join Date: May 2019
Posts: 17
Quote:
Originally Posted by hydra3333 View Post
just checking,

does that mean the v48 portable version
will run under portable python 3.7.5 ?
but not 3.8.0 ?
exactly
l00t is offline   Reply With Quote
Old 20th November 2019, 15:58   #3711  |  Link
Jukus
Registered User
 
Join Date: Jul 2019
Location: Russia
Posts: 18
What needs to be done to make a video have different FPS?
For example, I want to do something like that
Code:
from vapoursynth import core
import havsfunc as haf

clip = core.d2v.Source('index.d2v')
clip1 = core.std.Trim(clip, 0, 5579)
clip1 = haf.QTGMC(clip1, Preset='Very Slow', Sharpness=0.5, FPSDivisor=1, SourceMatch=3, Lossless=2, MatchEnhance=0.75, TFF=True)
clip2 = core.std.Trim(clip, 5580, 24186)
clip2 = haf.QTGMC(clip2, Preset='Very Slow', Sharpness=0.5, SourceMatch=3, MatchEnhance=0.75, InputType=1)
clip = clip1+clip2

clip.set_output()
but this code will not work correctly.
Jukus is offline   Reply With Quote
Old 20th November 2019, 17:12   #3712  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,982
Quote:
Originally Posted by Jukus View Post
What needs to be done to make a video have different FPS?
For example, I want to do something like that
Code:
from vapoursynth import core
import havsfunc as haf

clip = core.d2v.Source('index.d2v')
clip1 = core.std.Trim(clip, 0, 5579)
clip1 = haf.QTGMC(clip1, Preset='Very Slow', Sharpness=0.5, FPSDivisor=1, SourceMatch=3, Lossless=2, MatchEnhance=0.75, TFF=True)
clip2 = core.std.Trim(clip, 5580, 24186)
clip2 = haf.QTGMC(clip2, Preset='Very Slow', Sharpness=0.5, SourceMatch=3, MatchEnhance=0.75, InputType=1)
clip = clip1+clip2

clip.set_output()
but this code will not work correctly.



Internally in vapoursynth, it has to be CFR (constant frame rate)

1) You can duplicate frames and framerate in the second section (but same content speed). eg. by using core.std.Interleave

Or ,

2) you can temporarily assign a 2xFPS to the 2nd section using core.std.AssumeFPS to append sections (so it plays double speed), then use external timecodes (timestamps) method to make it VFR
poisondeathray is offline   Reply With Quote
Old 20th November 2019, 18:57   #3713  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 188
Quote:
Internally in vapoursynth, it has to be CFR (constant frame rate)
No. You can splice mixed fps clips, or even mixed resolution clips, vapoursynth can handle that. But encoding app might fail to understand such clip, that depends on what you're using.
I made x264 input filter and successfully provided vapoursynth timecodes (but code is a bit dirty), you can pick it here and compile: https://pastebin.com/QhjQ26qG
__________________
Me on GitHub | My Telegram
PC Specs: Ryzen 3900X (no OC with 250W Air cooling), Asus ROG Crosshair Hero VII (WiFi) @ chipset x470, 32 GB RAM @ 3333MHz OC, Gigabyte RTX 2070, Kingston A1000 @ 240 GB
DJATOM is offline   Reply With Quote
Old 22nd November 2019, 03:30   #3714  |  Link
_Al_
Registered User
 
Join Date: May 2011
Posts: 86
http://www.vapoursynth.com/doc/insta...n-via-pip-pypi says that pip install should be done only after Vapoursynth is installed. So what is it for, or what is the purpose of that PIP installation?
_Al_ is offline   Reply With Quote
Old 23rd November 2019, 13:49   #3715  |  Link
MonoS
Registered User
 
Join Date: Aug 2012
Posts: 183
Quote:
Originally Posted by Myrsloik View Post
Yes, that should work and give you the best information.
I've reinstalled my whole system so i am now on a clean OS.
Installed Python 3.7.5 for all user (so it is in "C:\Program Files\Python37" ), installed Vapoursynth R48 and it gives me the same error.

I've then started debuging and the line that is failing is the PyImport_ImportModule in vapoursynth_api.h, the module returned is NULL.
Folder "Lib\site-packages", where i would put my script, is empty, would expect to find file "vapoursynth.pth" and the folder "vapoursynth" (checked in another system with R45), probably is that that is making VSPipe fails?

Last edited by MonoS; 26th November 2019 at 21:14. Reason: The correct version of Vapoursynht is R45, not R46
MonoS is offline   Reply With Quote
Old 23rd November 2019, 21:13   #3716  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Chamber 36
Posts: 5,873
Quote:
Originally Posted by Myrsloik View Post
Because the way I'm handling things it's kinda annoying to set them. And it's not like you can ever trust them anyway...
If both timestamps and module version info is missing (it's missing very often in my experience), what else do we have? The file size will be the only thing left and that isn't very much.
stax76 is offline   Reply With Quote
Old 23rd November 2019, 23:05   #3717  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,040
We have the hash...
https://github.com/vapoursynth/vsrep...t3dfilter.json
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 26th November 2019, 21:23   #3718  |  Link
MonoS
Registered User
 
Join Date: Aug 2012
Posts: 183
Quote:
Originally Posted by MonoS View Post
I've reinstalled my whole system so i am now on a clean OS.
Installed Python 3.7.5 for all user (so it is in "C:\Program Files\Python37" ), installed Vapoursynth R48 and it gives me the same error.

I've then started debuging and the line that is failing is the PyImport_ImportModule in vapoursynth_api.h, the module returned is NULL.
Folder "Lib\site-packages", where i would put my script, is empty, would expect to find file "vapoursynth.pth" and the folder "vapoursynth" (checked in another system with R45), probably is that that is making VSPipe fails?
I think i fixed the issue downloading the portable version of Vapoursynth and putting the file vapoursynth.cp37-win_amd64.pyd inside the site-packages folder under Python37. Hope this could help you fix the problem.
MonoS is offline   Reply With Quote
Old 27th November 2019, 16:28   #3719  |  Link
Lypheo
Registered User
 
Join Date: Sep 2018
Posts: 7
Code:
core.resize.Bicubic(core.std.BlankClip(format=vs.YUV444PS), format=vs.RGB24, matrix_in=1, primaries_in=1, primaries=1) #errors out (Resize error 3074: invalid colorspace definition (1/2/1 => 0/2/1). May need to specify additional colorspace parameters.)
core.resize.Bicubic(core.std.BlankClip(format=vs.YUV444PS), format=vs.RGB24, matrix_in=1, primaries_in=1, primaries=1, transfer_in=1, transfer=1) #works
core.resize.Bicubic(core.std.BlankClip(format=vs.YUV444PS), format=vs.RGB24, matrix_in=1) #works
Seems like a bug to me. vsresize/zimg seems to think it needs to do a primary conversion when in and out primaries are specified (even when equal), and thus demands that the transfer function be specified. This causes the error mentioned above when previewing clips with vsedit (which calls vsresize internally, I presume) that ffms2 attached _Primaries != 2 and _Transfer = 2 to (this is the case for files which have a primaries flag but no transfer flag).
Lypheo is offline   Reply With Quote
Old 29th November 2019, 21:25   #3720  |  Link
Richard1485
Registered User
 
Join Date: Feb 2010
Posts: 235
Quote:
Originally Posted by _Al_ View Post
http://www.vapoursynth.com/doc/insta...n-via-pip-pypi says that pip install should be done only after Vapoursynth is installed. So what is it for, or what is the purpose of that PIP installation?
I was wondering the same thing.
Richard1485 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 07:20.


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