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 5th February 2017, 18:04   #81  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
Join Date: Feb 2008
Location: Russia
Posts: 712
Quote:
Originally Posted by Jindadil007 View Post
Got it ... No Offence... Yes I got good results by using :
video = core.raws.Source(r'C:\DVD\Vspipe\Sample.raw',720,480,src_fmt="RGB")
Anyways...Can you suggest a good link/forum where I can learn the basics...this looks for advanced programmers...
This forum has Newbies section.
__________________
...desu!
Mystery Keeper is offline   Reply With Quote
Old 21st February 2017, 00:28   #82  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 143
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   #83  |  Link
KingLir
Registered User
 
Join Date: Jan 2017
Posts: 143
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   #84  |  Link
ifb
Registered User
 
Join Date: Dec 2009
Posts: 66
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, 10:59   #85  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 655
Quote:
Originally Posted by ifb View Post
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.
Use this repo which has fixed the crash and other issues.

Windows binaries.
HolyWu is offline   Reply With Quote
Old 23rd February 2018, 12:22   #86  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,031
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, 15:37   #87  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 655
Quote:
Originally Posted by Myrsloik View Post
How many forks are there now? Which one should I point to?
Check the forks. I think maki-rxrz's repo is good.
HolyWu is offline   Reply With Quote
Old 23rd February 2018, 18:18   #88  |  Link
ifb
Registered User
 
Join Date: Dec 2009
Posts: 66
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   #89  |  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   #90  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,031
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   #91  |  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, 09:56   #92  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 655
Quote:
Originally Posted by logicom View Post
could someone provide win binary that accepts input from "-"

Try this. I think it should work.
HolyWu is offline   Reply With Quote
Old 4th November 2019, 12:30   #93  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 188
Looks like it works, thx.
__________________
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 4th November 2019, 16:51   #94  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,979
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   #95  |  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   #96  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,979
@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   #97  |  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   #98  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 188
@poisondeathray
you can wrap core.raws.Source call with AVS plugin VapourSource (function VSEval), it should work as intended.
__________________
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
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 04:13.


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