View Full Version : Avs2yuv maxed out my hard drive
cockpit
1st August 2021, 23:48
So I wanted to give x265 another try and since I don't remember how I got it working last time I had to google quite a bit and finally landed on Avs2yuv to feed my Avisynth script into the x265 cli.
However, it started writing a massive file and aborted when my hard drive was full after 150 GB was written.
Isn't it supposed to work like frameserving so it's just a small intermediary file?
This is the command I used: avs2yuv64 "D:\Avisynth scripts\eye.avs" -o out.y4m
qyot27
2nd August 2021, 00:24
You specified a real file for it to output to, so it's going to output to it. The yuv4mpeg container only holds uncompressed video, so it's going to write the full-sized uncompressed frames if you tell it to output to a real .y4m file. But it's uncompressed video wrapped in basic metadata to tell receiving applications what the framerate, resolution, pixel format, etc. are. Those applications can take either the actual .y4m files or they can accept y4m data over a pipe, just like avs2yuv can write to a real file, or write to a pipe.
Piping doesn't write any file to the hard drive, it connects program A's standard output (stdout) with program B's standard input (stdin).
avs2yuv input.avs -o - | x265 --y4m <x265 options> -
(those solitary '-' characters are the instruction to output to a pipe or accept from one, and the '|' is the connector; x265 also requires the --y4m parameter to tell it that the pipe is in y4m format)
Although, honestly, it would be easier to:
A) Use a patched x265 build that supports AviSynth input directly.
B) Use FFmpeg (assuming it has AviSynth enabled; virtually all the common Windows builds do) and just tell it to use the libx265 encoder.
cockpit
2nd August 2021, 04:12
I see. I totally misunderstood what piping meant.
So I downloaded the modified file linked here (https://forum.videohelp.com/threads/357754-[HEVC]-x265-EXE-mingw-builds/page75#post2609218) instead and it seems to be working, thanks.
Also, is there anything in my settings that stands out as nonsensical? It's encoding video game footage.
https://i.imgur.com/Uf5PMO0.png
patul
2nd August 2021, 04:18
I spotted 2.5 years old AVS+ is in use :p
Consider updating it.. But yeah, use what works for you.
StainlessS
3rd August 2021, 00:22
cockpit, use this one:- https://github.com/AviSynth/AviSynthPlus/releases
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.