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 21st February 2017, 00:28   #81  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
Anyone was able to build this for macOS ? I am getting:

$ ./configure

generating config.mak ...

error: patches welcome
KingLir is offline   Reply With Quote
Old 23rd February 2017, 00:52   #82  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 146
I was able to build on macOS with this. Anyone able to do a commit with this patch - please do.

Code:
gcc -c -fPIC  ${CFLAGS} ${CPPFLAGS} -I. $(pkg-config --cflags vapoursynth) -o main.o rawsource.c
g++ -dynamiclib -undefined suppress -flat_namespace *.o -o libraws.dylib
KingLir is offline   Reply With Quote
Old 23rd February 2018, 04:59   #83  |  Link
ifb
Registered User
 
Join Date: Dec 2009
Posts: 72
Is there some trick to making a working windows build? I can usually preview a frame or two in VS Editor before it dies. vspipe also crashes and I can't get a backtrace with gdb. I messed with this a few weeks ago and gdb pointed at history_add(), but I've since changed something and I can't even get that far anymore.

I haven't tried building with visual studio yet. The same script works fine in a Linux VM.

Code:
import vapoursynth as vs
core = vs.get_core(threads=1)
# https://media.xiph.org/video/derf/Chimera/Netflix_WindAndNature_4096x2160_60fps_10bit_420.yuv
c = core.raws.Source('Netflix_WindAndNature_4096x2160_60fps_10bit_420.yuv',4096,2160,60000,1001,src_fmt='YUV420P10')
c.set_output()
Code:
vspipe script.vpy output.raw
Ultimately, I'd like to use walisser's vsrawsource repo with pipe input, but it's only a few commits ahead of Myrsloik's tree which doesn't work either so I don't know what I've screwed up here.
ifb is offline   Reply With Quote
Old 23rd February 2018, 12:22   #84  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
Quote:
Originally Posted by HolyWu View Post
Use this repo which has fixed the crash and other issues.

Windows binaries.
How many forks are there now? Which one should I point to?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 23rd February 2018, 18:18   #85  |  Link
ifb
Registered User
 
Join Date: Dec 2009
Posts: 72
Quote:
Originally Posted by HolyWu View Post
Use this repo which has fixed the crash and other issues.

Windows binaries.
Thanks. I did manage to debug it with vs2017 last night and find the crash, but it was late and the fix wasn't immediately obvious to me.

I didn't know there was yet another fork and the work had already be done for me.
ifb is offline   Reply With Quote
Old 2nd November 2019, 18:00   #86  |  Link
logicom
Registered User
 
logicom's Avatar
 
Join Date: Nov 2008
Posts: 6
piping trough rawvideosource

I am experiencing dificulties to make this working:

Code:
ffmpeg -y -re -f lavfi -i testsrc=duration=30:size=720x576:rate=25 -c:v rawvideo -pix_fmt yuv420p -r 25 -an -f rawvideo - | vspipe --y4m live.vpy - | ffplay -f rawvideo -pix_fmt yuv420p -s 720x576 -i -

where live.vpy is:

import vapoursynth as vs
core = vs.get_core()
clip = core.raws.Source("-",720,576,src_fmt="YUV420P8")
clip.set_output()
could someone provide win binary that accepts input from "-"

logicom is offline   Reply With Quote
Old 2nd November 2019, 18:58   #87  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
It's been a long time since I looked at this but I think reading from stdin on windows never worked well.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 2nd November 2019, 19:44   #88  |  Link
logicom
Registered User
 
logicom's Avatar
 
Join Date: Nov 2008
Posts: 6
Any advice on how to move on from this point?
logicom is offline   Reply With Quote
Old 4th November 2019, 12:30   #89  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
Looks like it works, thx.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 4th November 2019, 16:51   #90  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Awesome, works well, thanks

Is raw pipe (or yuv pipe) in, or anything like that possible with avisynth ?
poisondeathray is offline   Reply With Quote
Old 4th November 2019, 23:53   #91  |  Link
logicom
Registered User
 
logicom's Avatar
 
Join Date: Nov 2008
Posts: 6
Quote:
Originally Posted by HolyWu View Post
Try this. I think it should work.
Thank you for looking into this. I tested 64 bit version
and piping was working. But I was wondering why I could not have any influence on framerate.

whithout vsrawvideo pipe: 25 tbr, 25 tbn, 25 tbc

with vsrawvideo pipe: 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc

I tested with yuv420p yuv422p and yuv444p

Kind Regards.
logicom is offline   Reply With Quote
Old 5th November 2019, 00:01   #92  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
@logicom -

core.raws.Source(fpsnum=25, fpsden=1)

If you add --y4m headers for vspipe , the receiving application should take that information
poisondeathray is offline   Reply With Quote
Old 5th November 2019, 01:04   #93  |  Link
logicom
Registered User
 
logicom's Avatar
 
Join Date: Nov 2008
Posts: 6


Thank you!
logicom is offline   Reply With Quote
Old 5th November 2019, 13:05   #94  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
@poisondeathray
you can wrap core.raws.Source call with AVS plugin VapourSource (function VSEval), it should work as intended.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Reply

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 01:28.


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