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. |
2nd April 2016, 19:14 | #41 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
I'm going to test my changes and then make a pull request I guess.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
29th July 2016, 19:31 | #44 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Here are compiled windows binaries.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
30th July 2016, 23:27 | #46 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
import vapoursynth as vs
import sys core = vs.get_core() clip = core.raws.Source("/dev/stdin") clip = core.fmtc.bitdepth (clip, bits=10) clip.set_output() enable_v210 = True with: ffmpeg -i C:\Users\Andy\Desktop\50i.avi -f yuv4mpegpipe - | "C:\Program Files (x86)\VapourSynth\core64\vspipe.exe" --y4m C:\Users\Andy\Desktop\rr.vpy - | C:\ffmpeg.exe -i - -c:v v210 C:\Users\Andy\Desktop\vv.mov doesn't work, giving error: Output #0, yuv4mpegpipe, to 'pipe:': Metadata: encoder : Lavf57.44.100 Stream #0:0: Video: wrapped_avframe, yuv422p, 1920x1080, q=2-31, 200 kb/s, 2 5 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc57.51.100 wrapped_avframe Stream mapping: Stream #0:0 -> #0:0 (utvideo (native) -> wrapped_avframe (native)) Press [q] to stop, [?] for help Script evaluation failed: Python exception: raws: source does not exist. Traceback (most recent call last): File "src\cython\vapoursynth.pyx", line 1491, in vapoursynth.vpy_evaluateScrip t (src\cython\vapoursynth.c:26897) File "C:\Users\Andy\Desktop\rr.vpy", line 5, in <module> clip = core.raws.Source("/dev/stdin") File "src\cython\vapoursynth.pyx", line 1383, in vapoursynth.Function.__call__ (src\cython\vapoursynth.c:25204) vapoursynth.Error: raws: source does not exist. looks like /dev/stdin doesn't work. Last edited by kolak; 30th July 2016 at 23:34. |
30th July 2016, 23:55 | #48 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Yes, but been told it should work here also I've read it won't on Windows.
More issues: clip = core.raws.Source("C:\Users\Andy\Desktop\vv.raw", 1920, 1080, 30000, 1001, src_fmt='YUV422P10') gives strange error: Script evaluation failed: Python exception: (unicode error) 'unicodeescape' codec can't decode bytes in po sition 2-3: truncated \UXXXXXXXX escape (rr.vpy, line 4) Traceback (most recent call last): File "src\cython\vapoursynth.pyx", line 1490, in vapoursynth.vpy_evaluateScrip t (src\cython\vapoursynth.c:26883) File "C:\Users\Andy\Desktop\rr.vpy", line 4 clip = core.raws.Source("C:\Users\Andy\Desktop\vv.raw", 1920, 1080, 30000, 1 001, src_fmt='YUV422P10') ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in positio n 2-3: truncated \UXXXXXXXX escape Is this complaining about actual video data? |
31st July 2016, 01:19 | #50 | Link |
Registered User
Join Date: Jan 2016
Posts: 8
|
Yes, it needs the hack that treats the empty dash (-) as stdin, as is the usual convention.
In theory, you could run a pipe server and use names pipes as the ffmpeg ouput / vs input. I don't know of any command offhand that provides this. |
2nd August 2016, 12:56 | #58 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
4th August 2016, 10:40 | #60 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
I have a vague memory the code has to do it the windows api way. Using portable stuff won't work.
Or that it works often enough if you simply skip it on windows. That's what x264 seems to do anyway.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet Last edited by Myrsloik; 4th August 2016 at 10:57. |
|
|