[x265] [PATCH] input: read yuv input from stdin if filename is passed as "-"

Steve Borho steve at borho.org
Fri Oct 25 19:15:25 CEST 2013


On Fri, Oct 25, 2013 at 12:06 PM, Mario Rohkrämer <contact at ligh.de> wrote:

> Am 25.10.2013, 18:37 Uhr, schrieb Steve Borho <steve at borho.org>:
>
>
>  I don't really care to do auto-detection of the stream type, and right now
>> - always means YUV.  Would it be acceptable if -.y4m is used to indicate
>> Y4M on stdin?
>>
>
> Probably not; the typical use, a "quasi standard", is to have exactly the
> hyphen only as input file name.
>
> 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).
>
> 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.


hmm: so this would be ok?

x265 --input-res WxH --fps 30 - out.hevc # encodes YUV from stdin
x265 --y4m  - out.hevc                           # encodes Y4M from stdin

-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20131025/7b14078d/attachment.html>


More information about the x265-devel mailing list