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

Mario Rohkrämer contact at ligh.de
Fri Oct 25 19:06:10 CEST 2013


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.

-- 

Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de


More information about the x265-devel mailing list