Log in

View Full Version : vspipe CPU usage


an3k
15th January 2016, 19:57
So I got my portable VapourSynth on my server and it's running very wellvapoursynth@server:~$ vspipe test.vpy - | x264 --input-res 1920x1080 --crf 22 - -o encoded.264
raw [info]: 1920x1080p 0:0 @ 25/1 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.0
[h264 @ 0xab9c60] Stream #0: not enough frames to estimate rate; consider increasing probesize
[h264 @ 0xab9c60] Stream #0: not enough frames to estimate rate; consider increasing probesize
51029 frames: 84.19 fps, 1670.63 kb/s

However I noticed that vspipe is eating up a huge amount of CPU. Is that normal? test.vpy is doing no processing at allimport vapoursynth as vs
core = vs.get_core()
clip = core.lsmas.LWLibavSource("/var/tmp/00800.track_4113.264")
clip.set_output()
http://i.imgur.com/dXjLM78.png

Myrsloik
15th January 2016, 23:13
I think all you've discovered is that x264 with default options is quite fast. Try with vs.get_core(threads=1) and check to see what the cpu usage difference is. In your setup the default number of threads is insane for such a simple script anyway.