<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 25, 2013 at 12:06 PM, Mario Rohkrämer <span dir="ltr"><<a href="mailto:contact@ligh.de" target="_blank">contact@ligh.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 25.10.2013, 18:37 Uhr, schrieb Steve Borho <<a href="mailto:steve@borho.org" target="_blank">steve@borho.org</a>>:<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't really care to do auto-detection of the stream type, and right now<br>
- always means YUV.  Would it be acceptable if -.y4m is used to indicate<br>
Y4M on stdin?<br>
</blockquote>
<br></div>
Probably not; the typical use, a "quasi standard", is to have exactly the hyphen only as input file name.<br>
<br>
If you have raw YUV input, you really need to provide the image dimensions (width × height), possibly even the picture type (e.g. FourCC, like "I420" or "YV12" for 4:2:0, or possibly "YUY2" if 4:2:2 is supported some day).<br>

<br>
So you may use an additional "-y4m" option instead of all the required options for raw YUV, to indicate that the piped input is YUV4MPEG instead of raw YUV.</blockquote><div><br></div><div>hmm: so this would be ok?</div>
<div><br></div><div>x265 --input-res WxH --fps 30 - out.hevc # encodes YUV from stdin</div><div>x265 --y4m  - out.hevc                           # encodes Y4M from stdin</div><div><br></div></div>-- <br>Steve Borho
</div></div>