Log in

View Full Version : How to encode x265 using vapoursynth scripts?


ACKR
19th April 2020, 07:58
Hello up till now i have used Megui to encode my avisynth scripts but after writing a few scripts in Vapoursynth i don't know how to start the process of encoding. i have the x265.exe file ready but where do i place it and where am i supposed to put the x265 parameters. i am not familiar with command line encoding. do i use powershell,cmd,vsedit to encode using vapoursynth?. also how would i encode the audio with the video and mux them in mkv?. thanks sorry if these are noob questions.

stax76
19th April 2020, 14:17
There are few ways: cmd, powershell, ffmpeg, staxrip (uses cmd), hybrid, simple x264/x265 launcher.

ACKR
19th April 2020, 19:41
There are few ways: cmd, powershell, ffmpeg, staxrip (uses cmd), hybrid, simple x264/x265 launcher.

Can you tell me which of these do encoders use. And steps to do it

stax76
19th April 2020, 19:50
stax used staxrip, I gave up encoding but still maintain staxrip.

LoRd_MuldeR
19th April 2020, 22:37
If you want to encode from the command-line, you will have to do something like:
vspipe.exe --y4m your_input_script.vpy - | x265.exe --crf 18.0 --output output_file.hevc --y4m -

As stax76 has pointed out, if you don't want to do this manually from the command-line, there are plenty of GUI's to choose from, including but not limited to Simple x264/x265 Launcher (https://forum.doom9.org/showthread.php?t=144140).

ACKR
20th April 2020, 01:41
If you want to encode from the command-line, you will have to do something like:
vspipe.exe --y4m your_input_script.vpy - | x265.exe --crf 18.0 --output output_file.hevc --y4m -

As stax76 has pointed out, if you don't want to do this manually from the command-line, there are plenty of GUI's to choose from, including but not limited to Simple x264/x265 Launcher (https://forum.doom9.org/showthread.php?t=144140).

I heard you could encode directly from vsedit. Is this possible and where do i put x265 parameters in the syntax you posted

stax76
20th April 2020, 02:18
In your case it would make sense to start with Handbrake, using the console efficiently is by no means easy to learn.

ACKR
20th April 2020, 03:41
In your case it would make sense to start with Handbrake, using the console efficiently is by no means easy to learn.

I have experience with megui, stax but those are mainly avisynth gui. I need something that can process vapoursynth scripts if possible

stax76
20th April 2020, 04:31
In me MeGUI you perform tasks one by one manually, I call that manual workflow, you do that too using Simple x264/x265 Launcher, try it.

ACKR
20th April 2020, 05:19
In me MeGUI you perform tasks one by one manually, I call that manual workflow, you do that too using Simple x264/x265 Launcher, try it.

but megui doesnt support vapoursynth scripts right?

stax76
20th April 2020, 05:23
It's not supporting a lot of things of the last ten years, try Simple x264/x265 Launcher.

ACKR
20th April 2020, 08:49
It's not supporting a lot of things of the last ten years, try Simple x264/x265 Launcher.

Does it support 10 bit x265 and take vpy scripts?

LoRd_MuldeR
20th April 2020, 10:46
Does it support 10 bit x265 and take vpy scripts?

Yes. Generally, x265 comes as "multilib" build these days, so you don't need separate binaries for 8, 10 or 12 bits. Just pass the appropriate "-D" switch. x265 Launcher does that for you.

Be aware, though, that VapurSynth r49 seems to have a problem, so I suggest sticking with r48 for now:
https://forum.doom9.org/showthread.php?p=1908363#post1908363

stax76
20th April 2020, 21:48
StaxRip 2.1.0.9 Beta works with VapourSynth R49 even when Python and VapourSynth are not in the path environment variable.