Page 1 of 1

VLC stream grayscale

Posted: 22 Feb 2018 11:49
by tronklol
Hi, is it possible to stream an yuv 4:2:0 in greyscale? I tried with:
cvlc -vvv cut.wmv --grayscale --sout="#transcode{vcodec=h264, vb=2000,acodec=none,height=360,width=640,aenc=fdkaac,ab=256}:std{mux=ts,access=udp,dst=192.168.1.157:4321}".
Does not work, the video still with colours :( .
I really need it, any help is welcome :?

Re: VLC stream grayscale

Posted: 22 Feb 2018 18:12
by Rémi Denis-Courmont
--grayscale only works when decoding with avcodec. If your input is raw, it won't have any effect.

Re: VLC stream grayscale

Posted: 22 Feb 2018 19:28
by tronklol
Firstly, thanks for your answer. So there is no way to keep use that video for stream it in grayscale?

Re: VLC stream grayscale

Posted: 22 Feb 2018 20:34
by Rémi Denis-Courmont
Someone would have to write a video filter to clear chroma planes.

Re: VLC stream grayscale

Posted: 22 Feb 2018 20:57
by tronklol
Ah, ok. Thanks so much :)