VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Page 10 of 10
FirstFirst ... 8 9 10
Results 271 to 281 of 281
Thread
  1. Would that I could run Al's script.

    I uninstalled Python, Vapoursynth and Vapoursynth Editor, cleaned the registry, reinstalled the programs, and still have the same errors in Vapoursynth editor. Apparently I'm not the only one:

    https://forum.doom9.org/archive/index.php/t-170965.html

    Is there a way to run Al's script without Vapoursynth editor in WINDOWS? The editor seems to be null and void.

    For posterity, here is his script again. Is this the right one?

    https://forum.videohelp.com/threads/395939-ffmpeg-Color-Range/page2#post2573810

    Windows 10 does not know how to run your script "my_scrit.vpy".

    I ran the first line of your code in command prompt and got an error message:

    Code:
    "vspipe.exe"  --y4m  "C:\my_scrit.vpy"  -  | "x264.exe"  --demuxer y4m  --crf 18 --vbv-bufsize 30000 --vbv-maxrate 28000 --colorprim bt709 --transfer bt709 --colormatrix bt709 --output "C:\my_output.264" -
    So far this is a bust. Nothing but errors.

    What gives, Al?
    Quote Quote  
  2. You can bypass Vapoursynth Editor if having problems with that.

    Search for IDLE in Windows. IDLE is Python console, that is used to write and run python programs. There is others not just IDLE, I think IDLE installs with Python on Windows. Not sure now if there is a box during installation to select it or not.
    To search for IDLE, type "IDLE" without quotes in Windows search box (bottom left). Windows should find that idle. Run it. You get something like image 1.
    Then select File/New File , copy/paste this script Image2:
    Code:
    import vapoursynth as vs
    from vapoursynth import core
    print(vs)
    print(core.version())
    then press F5 to run it.

    After pressing F5 it should print something like that below to IDLE console if installed for a user account, this gives me on Windows 7, but I use 2 your old version, you might get something else:
    Code:
    <module 'vapoursynth' from 'C:\\Users\\.....your user account name here ....\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\vapoursynth\\vapoursynth.cp37-win_amd64.pyd'>
    VapourSynth Video Processing Library
    Copyright (c) 2012-2018 Fredrik Mellbin
    Core R45
    API R3.5
    Options: -
    Right now it is important so Python and Vapoursynth are both installed on a user account or for all users. I think both has to be the same.

    So this bypasses Vaporsynth Editor. You can try that. As soon you make it work then Vapoursynth Editor might be tried or tested.

    We might try to make it work for a while. If it does not work. Portable versions work always (using it for freezing python apps using vapoursynth). But scripts needs to load some DLL's or modules, so only as a an emergency if installations fails or are not fixed.
    Image Attached Thumbnails Click image for larger version

Name:	Capture.JPG
Views:	5
Size:	72.8 KB
ID:	52780  

    Last edited by _Al_; 18th Apr 2020 at 20:45.
    Quote Quote  
  3. if installing Python and vapoursythn for all users, you also might follow an advise from LordMulder while installing Python and then vapoursynth:
    https://forum.doom9.org/showthread.php?p=1881927#post1881927
    Quote Quote  
  4. Pasting your code into IDLE and pressing F5 appears to do nothing. No messages.

    Pasting the code and pressing ENTER results in the following message:

    SyntaxError: multiple statements found while compiling a single statement
    What's next?
    Quote Quote  
  5. If pasting into IDLE you'd need to do it line by line and using ENTER for each line, not the whole script, look at included image

    If pasting whole code and running it with F5, you need to create new file for python script File/New/File and paste it into that , not into IDLE console. The whole code you paste into image I posted before, image on the right.

    Take your time, you are running and working with Python here. There are tutorials all over web using IDLE.

    So to work with Python/Vapoursynth, you have two choices, you can choose a console/terminal (similar like command prompt in Windows) and input line by line , but you cannot save it for later. This is just for testing/running or some quick calculations or in our case to find out if vapoursynth is installed correctly etc. Or second choice, pasting whole script (more practical if writing a program) saving it as *.py file. Using it for later. Open it again, edit it, running it again etc.
    Image Attached Thumbnails Click image for larger version

Name:	Capture.JPG
Views:	7
Size:	54.6 KB
ID:	52782  

    Last edited by _Al_; 18th Apr 2020 at 23:17.
    Quote Quote  
  6. Python, VapourSynth and Vapoursynth editor are installed for all users.

    I pasted all three lines of your code into IDLE and saved the file as C:/Users/chris/Documents/test.py, viz.:

    Code:
    import vapoursynth as vs
    from vapoursynth import core
    print(vs)
    print(core.version())
    Here is the result when the file was run:

    Traceback (most recent call last):
    File "C:/Users/chris/Documents/test.py", line 1, in <module>
    import vapoursynth as vs
    ModuleNotFoundError: No module named 'vapoursynth'
    Here is the result of entering PATH:

    C:\>path
    PATH=C:\Program Files (x86)\Python37-32\Scripts\;C:\Program Files (x86)\Python37-32\;C:\Windows\system32;C:\Windows;C:\Windows\Syst em32\Wbem;C:\Windows\System32\WindowsPowerShell\v1 .0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\chris\.dnx\bin;C:\ Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files\VapourSynth\core;C:\Program Files\VapourSynth\vsrepo;C:\Users\chris\AppData\Lo cal\Microsoft\WindowsApps;
    on the "Advanced Options" page, be sure to enable the "Install for all users" option.
    This is exactly what I did. I had to log off and log back in as Administrator, install Vapoursynth for all users, then log back in as Chris. Again, Python, Vapoursynth and Vapoursynth editor are installed for all users, so I don't think that's the issue.
    Last edited by chris319; 19th Apr 2020 at 01:37.
    Quote Quote  
  7. Did you try to restart PC?
    There might be something off with installations lately.
    Like here: https://forum.doom9.org/showthread.php?t=181303 that guy developed Vapoursytnth MultiViewer and having problem to install it now.
    Try to reboot it as there is last advice in that thread, or monitor it, even there is problem with dll , you cannot found module.
    Monitor that thread

    Not sure if
    pip install VapourSynth
    https://pypi.org/project/VapourSynth/
    would help, because it needs working installation beforehand and it is for specific Python environments as I understood,
    http://www.vapoursynth.com/doc/installation.html#installation-via-pip-pypi and
    to install thru pip, you navigate to: C:\Program Files (x86)\Python37-32\Scripts\
    where pip should be, then right click in Windows explorer window with SHIFT pressed, and in the menu select "Open Command Window here" , type: pip install VapourSynth
    this might be a stupid advice though
    Quote Quote  
  8. I have modified my scope program to report the number of pixels that are out of the r103 range of 5 - 246.

    Turns out I have a very small amount of error, specifically 0.0169% in a typical frame, a small fraction of the allowable 1%. Seems that these videos were within r103 spec all along.
    Quote Quote  
  9. Just making sure. I noticed Python37-32 in those included links. Does that mean, 32bit Python installation?

    Do not install Python 32bit if that is the case. Install Python 64bit, make sure of that.
    https://www.python.org/downloads/release/python-382/
    And Vapoursynth 64bit.

    and also

    you need latest Python 3.8 version, not 3.7.
    https://github.com/vapoursynth/vapoursynth/releases
    latest R49 build needs Python 3.8. If it was not changed on vapoursynth site, it needs to be changed. I suppose you have Latest Vapoursynth R49.
    At the moment there is Python 3.8.2 version on Python site.

    Using linux it is not important I think (could be wrong), but on Windows latest R49 use with Python 3.8
    Last edited by _Al_; 19th Apr 2020 at 08:06.
    Quote Quote  
  10. When I uninstalled and reinstalled Python, Vapoursynth and Vapoursynth editor yesterday, I downloaded all of the latest 64-bit versions and installed them for all users. Vapoursynth will issue a warning if it does not like your Python installation. I'm getting the same errors as when I originally installed all this stuff, i.e. it cannot find the (non-existent) library.

    So what is this combination going to do for me if I ever get it to work? If we want to count the number of out-of-gamut pixels and come up with a percentage (less than 1% per r103) then that was easily done with PureBasic and it works just fine. The number of out-of-gamut pixels is actually quite small, much less than 1%.
    Quote Quote  
  11. Originally Posted by chris319 View Post
    When I uninstalled and reinstalled Python, Vapoursynth and Vapoursynth editor yesterday, I downloaded all of the latest 64-bit versions and installed them for all users. Vapoursynth will issue a warning if it does not like your Python installation. I'm getting the same errors as when I originally installed all this stuff, i.e. it cannot find the (non-existent) library.
    Sounds like a headache. Not sure what else to suggest...

    So what is this combination going to do for me if I ever get it to work? If we want to count the number of out-of-gamut pixels and come up with a percentage (less than 1% per r103) then that was easily done with PureBasic and it works just fine. The number of out-of-gamut pixels is actually quite small, much less than 1%.
    Then don't worry about it. You don't need it

    It doesn't offer that much more. You can set different limits, different clip values, and visualize where / what to do about it, apply other filters instead of clipping, in realtime.
    Quote Quote  



Similar Threads