Log in

View Full Version : where to download "latest" avs2yuv and avsinfo


hydra3333
17th March 2012, 04:56
Wondering where to download the latest

1. avs2yuv, presumably here ?
http://doom10.org/index.php?topic=199.msg4144#msg4144
from kemuri-_9 (fixes "avs2yuv currently neglects to release the core avisynth environment at the end of processing and this could likely be causing the hangup")
or here I guess ...
0.24 BugMaster's mod 2 (2011-9-20)
merge 2 changes by Oka Motofumi (aka Chikuzen):
added 128 KB file buffering for speed up
use ffmpeg for huffyuv encoding instead of mencoder
added support for interlaced avs sources (it must be field-based instead of frame-based)
new option: -csp i420/i422/i444 for support of I422/I444 colorspaces output (AviSynth 2.6+ is required)
http://forum.doom9.org/showthread.php?p=1527698#post1527698


2. avsInfo for use in something like http://doom10.org/index.php?topic=199.msg5393#msg5393 ("Use avsInfo if you want to give the number of frames to x264 automatically")
from presumably here, from selur ?
http://forum.selur.de/topic11-avsinfo-basic-infos-from-avisynth-scripts-sources.html

Thanks.

Chikuzen
17th March 2012, 10:34
the most stable version of avs2yuv is Bugmaster's mod2.
the binary of avsInfo is contained in Selur's Hybrid package.

and, avs2pipemod has all the functions other than the 'hyfu' option of avs2yuv.

hydra3333
17th March 2012, 13:52
OK. Instead of AVSinfo, I was able to use standard mediainfo in a .bat to find the number of frames ...
"C:\software\mediainfo\mediainfo.exe" --Inform=Video;%%FrameCount%% "%PARF1%" > "%PARF1fc%"
FOR /F "usebackq tokens=1" %%G IN ( "%PARF1fc%" ) DO SET FRAMES=%%G
and use "--frames %FRAMES%" on the x264 commandline.

LoRd_MuldeR
17th March 2012, 14:24
I don't think MediaInfo works on Avisynth scripts. Does it?

Of course you can try to analyze the source video file rather than the Avisynth script with MediaInfo, but that method is NOT reliable for various reasons.

Even if we ignore that filters like ChangeFPS() or SelectEven/Odd() or Bob() may change the frame count, the source filter is not guaranteed to return the exact same number of frames that MediaInfo detects.

Instead you can use "avs2yuv.exe -frames 1 input.avs NUL 2> info.txt" to get some basic info about the script itself, including the actual frame count...

hydra3333
17th March 2012, 18:43
I think you are right, not on avisynth scripts although I haven't tried it specifically.

My TV captures are pre-edited in terms of frames kept etc, so it works on all those sources OK given I don't tinker with #frames :)
I'd thought mediainfo was reliable. It seems so in my case (mpeg2 pal tv captures).

Thanks for the tip with avs2yuv... the script filename goes on that commandline somewhere I guess.

I'm also experimenting with bypassing avisynth and just plugging the mpeg into x264 64bit (for speed) to see if the quality is "acceptable enough" once transferred to a wdtvlive's usb disk for later playback (hence the transfer to mpeg4, smaller file size).

The thing is, Aus TV broadcasts are terribly blocky, "HD"s are a shocker, a good scrub with avisynth is almost a must. So the tools above will probably be used if the speed gain from 64bit x264 is worth it.

LoRd_MuldeR
17th March 2012, 18:46
I'd thought mediainfo was reliable. It seems so in my case (mpeg2 pal tv captures).

MediaInfo just counts the "raw" number of frames in the video file.

It can't know which frames will be skipped by the Avisynth source filter, e.g. the orphaned/undecodable frames at the beginning or at the end of the stream (if any).

Nor can it know how other filters in your Avisynth script will effect the final frame count, so it can be easily off by 2x ...

Thanks for the tip with avs2yuv... the script filename goes on that commandline somewhere I guess.

Fixed the previous post ;)

hydra3333
18th March 2012, 03:33
This seems to work, so there's no need for avsinfo to find the # of frames in a .bat file.
"C:\software\avs2yuv\avs2yuv.exe" -frames 1 "input.avs" NUL 2> info.txt
FOR /F "usebackq tokens=3 delims=:" %%A IN ( "info.txt" ) DO SET Ftmp=%%A
FOR /F "tokens=4" %%B IN ( "%Ftmp%" ) DO SET FRAMES="%%B"

Reel.Deel
24th March 2012, 13:03
Soure and binary for Avsinfo can be found here:

http://forum.selur.de/topic11-avsinfo-basic-infos-from-avisynth-scripts-sources.html