Avs2YUV

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (External Links)
m (Requirements)
(6 intermediate revisions by one user not shown)
Line 2: Line 2:
 
[[Category:Piping]]
 
[[Category:Piping]]
 
{{Filter3
 
{{Filter3
| {{Author/akupenguin}}
+
| {{Author/akupenguin}}, BugMaster
| 0.24bm2
+
| 0.24bm6
| [http://komisar.gin.by/tools/avs2yuv/avs2yuv-0.24bm2.zip avs2yuv-0.24bm2.zip]
+
| [https://github.com/MasterNobody/avs2yuv/releases avs2yuv-0.24bm6.zip]
 
| Utilities
 
| Utilities
 
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
Line 10: Line 10:
 
<br>
 
<br>
 
== Description ==
 
== Description ==
:Avs2YUV is a command-line program, originally intended for use under Wine, to interface between AviSynth and Linux-based video tools. Nowadays is more commonly used to pipe high bit depth video to encoders like x264, x265, and FFmpeg. An advantage of using Avs2YUV is that one can pipe from a 32-bit AviSynth to 64-bit applications.
+
Avs2YUV is a command-line program, originally intended for use under [http://en.wikipedia.org/wiki/Wine_%28software%29 Wine], to interface between AviSynth and Linux-based video tools. Nowadays is commonly used to pipe video (including high bit depth) to encoders like x264, x265, and FFmpeg/Libav. An advantage of using Avs2YUV is that one can pipe from a 32-bit AviSynth to 64-bit applications.
 +
<br>
 
<br>
 
<br>
  
 
== Requirements ==
 
== Requirements ==
:- AviSynth 2.5.8 or [http://forum.doom9.org/showthread.php?t=168764 AviSynth 2.6.0 Alpha5]
+
[http://sourceforge.net/projects/avisynth2/ AviSynth 2.6.0] or greater | [[AviSynth+]]
:- Supported color formats: [[YV12]], [[YV16]], [[YV24]]
+
* Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]]
:: <span style="color:red">**</span> If you're using AviSynth 2.5.8, [[YV12]] will be the only colorspace supported.
+
 
<br>
 
<br>
 +
 
== Usage ==
 
== Usage ==
 
  Usage: avs2yuv [options] in.avs [-o out.y4m] [-o out2.y4m] [-hfyu out.avi]<br>
 
  Usage: avs2yuv [options] in.avs [-o out.y4m] [-o out2.y4m] [-hfyu out.avi]<br>
Line 24: Line 25:
 
  {{Template:FuncDef|-frames}} stop after processing this many frames
 
  {{Template:FuncDef|-frames}} stop after processing this many frames
 
  {{Template:FuncDef|-slave}}  read a list of frame numbers from stdin (one per line)
 
  {{Template:FuncDef|-slave}}  read a list of frame numbers from stdin (one per line)
  {{Template:FuncDef|-raw}}    output raw I420/I422/I444 instead of yuv4mpeg
+
{{Template:FuncDef|-no-mt}}  disable detection of AviSynth MT which adds Distributor()
  {{Template:FuncDef|-csp}}    convert to I420/I422/I444 colorspace (default I420)<br>
+
  {{Template:FuncDef|-raw}}    output raw I400/I420/I422/I444 instead of yuv4mpeg
 +
  {{Template:FuncDef|-csp}}    convert to I400/I420/I422/I444 or AUTO colorspace (default I420)
 +
{{Template:FuncDef|-depth}}  specify input bit depth (default 8)
 +
{{Template:FuncDef|-fps}}    overwrite input framerate
 +
{{Template:FuncDef|-par}}    specify pixel aspect ratio<br>
 
  The outfile may be "-", meaning stdout.
 
  The outfile may be "-", meaning stdout.
 
  Output format is yuv4mpeg, as used by MPlayer, FFmpeg, Libav, x264, mjpegtools.
 
  Output format is yuv4mpeg, as used by MPlayer, FFmpeg, Libav, x264, mjpegtools.
Line 36: Line 41:
 
== Changelog ==
 
== Changelog ==
 
  Version      Date            Changes<br>
 
  Version      Date            Changes<br>
 +
v0.24bm6    06/30/2019      - BugMaster's mod 6
 +
                              - 4:0:0 (monochrome) output support<br>
 +
v0.24bm5    08/18/2016      - BugMaster's mod 5
 +
                              - minor fixes<br>
 +
v0.24bm4    08/18/2016      - BugMaster's mod 4
 +
                              - new option: -no-mt  disable detection of AviSynth MT which adds Distributor()
 +
                              - support for [[Avisynthplus_color_formats|AviSynth+ high bit-depth pixel formats]]<br>
 +
v0.24bm3    09/04/2014      - BugMaster's mod 3
 +
                              - new options:
 +
                                -depth specify input bit depth (default 8), >8 expects AviSynth [[Stack16|16-bit hack]] input video
 +
                                -fps overwrite input framerate
 +
                                -par specify pixel aspect ratio
 +
                              - new supported value AUTO for -csp option which will try to detect input colorspace or convert to I420<br>
 
  v0.24bm2    09/20/2011      - BugMaster's mod 2
 
  v0.24bm2    09/20/2011      - BugMaster's mod 2
                               - merge 2 changes by Oka Motofumi (aka Chikuzen):
+
                               - merge 2 [http://github.com/chikuzen/avs2yuv changes by Oka Motofumi] (aka Chikuzen):
 
                               - added 128 KB file buffering for speed up
 
                               - added 128 KB file buffering for speed up
 
                               - use ffmpeg for huffyuv encoding instead of mencoder
 
                               - use ffmpeg for huffyuv encoding instead of mencoder
Line 62: Line 80:
 
<br>
 
<br>
 
== External Links ==
 
== External Links ==
*[http://akuvian.org/src/avisynth/avs2yuv/ akuvian.org] - Avs2YUV Homapage.
+
*[http://github.com/MasterNobody/avs2yuv GitHub] - Avs2YUV v0.24bm6 source code repository.
*[http://komisar.gin.by/tools/avs2yuv/ komisar.gin.by] - BugMaster's updates.
+
*[http://komisar.gin.by/tools/avs2yuv/ komisar.gin.by] - BugMaster's mod 1 and 2 downloads.
*[http://github.com/DJATOM/avs2yuv/releases GitHub] - Updated Avs2YUV with some additional changes (0.26a DJATOM's mod (2014-8-26).  
+
 
<br>
+
*[http://akuvian.org/src/avisynth/avs2yuv/ akuvian.org] - Avs2YUV original homapage (includes old versions).
 +
*[http://github.com/DJATOM/avs2yuv/releases GitHub] - Avs2YUV with some additional changes (0.28 DJATOM's mod (2016-08-15).  
 
<br>
 
<br>
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[Utilities]] &larr;'''
 
'''Back to [[Utilities]] &larr;'''

Revision as of 16:51, 20 August 2019

Abstract
Author Loren Merritt, BugMaster
Version 0.24bm6
Download avs2yuv-0.24bm6.zip
Category Utilities
License GPLv2
Discussion


Contents

Description

Avs2YUV is a command-line program, originally intended for use under Wine, to interface between AviSynth and Linux-based video tools. Nowadays is commonly used to pipe video (including high bit depth) to encoders like x264, x265, and FFmpeg/Libav. An advantage of using Avs2YUV is that one can pipe from a 32-bit AviSynth to 64-bit applications.

Requirements

AviSynth 2.6.0 or greater | AviSynth+


Usage

Usage: avs2yuv [options] in.avs [-o out.y4m] [-o out2.y4m] [-hfyu out.avi]
-v print the frame number after processing each frame -seek seek to the given frame number -frames stop after processing this many frames -slave read a list of frame numbers from stdin (one per line) -no-mt disable detection of AviSynth MT which adds Distributor() -raw output raw I400/I420/I422/I444 instead of yuv4mpeg -csp convert to I400/I420/I422/I444 or AUTO colorspace (default I420) -depth specify input bit depth (default 8) -fps overwrite input framerate -par specify pixel aspect ratio
The outfile may be "-", meaning stdout. Output format is yuv4mpeg, as used by MPlayer, FFmpeg, Libav, x264, mjpegtools. Huffyuv output requires ffmpeg, and probably doesn't work in Wine.


Examples

TO DO

Changelog

Version      Date            Changes
v0.24bm6 06/30/2019 - BugMaster's mod 6 - 4:0:0 (monochrome) output support
v0.24bm5 08/18/2016 - BugMaster's mod 5 - minor fixes
v0.24bm4 08/18/2016 - BugMaster's mod 4 - new option: -no-mt disable detection of AviSynth MT which adds Distributor() - support for AviSynth+ high bit-depth pixel formats
v0.24bm3 09/04/2014 - BugMaster's mod 3 - new options: -depth specify input bit depth (default 8), >8 expects AviSynth 16-bit hack input video -fps overwrite input framerate -par specify pixel aspect ratio - new supported value AUTO for -csp option which will try to detect input colorspace or convert to I420
v0.24bm2 09/20/2011 - BugMaster's mod 2 - 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)
v0.24bm1 07/07/2011 - BugMaster's mod - replaced AviSynth C++ interface with C interface - compiles with GCC instead of MSVS - added call of 'Distributor' for multi-threaded scripts - calls avs_delete_script_environment at the end of work
v0.24 03/04/2005 - new option: -raw outputs raw I420 (omits yuv4mpeg headers)
v0.23 01/26/2005 - new option: -slave takes a list of frames to decode
v0.22 11/25/2004 - fixed a bug when -frames comes before -seek on the command line
v0.21 11/22/2004 - write to multiple output streams
- huffyuv preset (doesn't work under wine)
v0.20 11/22/2004 - prints avisynth error messages instead of crashing - no longer requires avisynth_c.dll
v0.13 11/10/2004 - binmode stdout again
v0.12 11/09/2004 - reduced memory footprint - no longer requires that avisynth be installed; merely having the dlls is enough - fixed a possible crash on exit
v0.11 10/31/2004 - binmode stdout (may or may not fix some piping problems)
v0.1 10/14/2004 - initial release


External Links

  • GitHub - Avs2YUV v0.24bm6 source code repository.
  • komisar.gin.by - BugMaster's mod 1 and 2 downloads.
  • akuvian.org - Avs2YUV original homapage (includes old versions).
  • GitHub - Avs2YUV with some additional changes (0.28 DJATOM's mod (2016-08-15).




Back to Utilities

Personal tools