How to extract YUV output file with VLC command line??
Posted: 19 Apr 2014 17:43
Hello. I want to extract YUV output file with VLC command line on Ubuntu.
In order to do this, I've used several methods.
For instance,
cvlc -vvv /home/led/Streaming/dance_2.mp4 --sout '#duplicate{dst="transcode{vcodec=I422}:std{access=file,mux=raw,dst=/home/led/yuv_test.yuv}"'
I can get an yuv video file, but That video was not play properly on YUVviewer or VLC.
Playing the YUV file back shows greenish noisy frames that does not resemble the original video.
Is it possible to repair the part of the wrong command I wrote above?
Furthermore,
https://wiki.videolan.org/VLC_command-line_help/
This site explains 'YUV video output' options.
---------------------------------------------------------------------------------------------
YUV video output
--yuv-file=<string> device, fifo or filename
device, fifo or filename to write yuv frames too.
--yuv-chroma=<string> Chroma used
Force use of a specific chroma for output. Default is I420.
--yuv-yuv4mpeg2, --no-yuv-yuv4mpeg2
YUV4MPEG2 header (default disabled) (default
disabled)
The YUV4MPEG2 header is compatible with mplayer yuv video output and
requires YV12/I420 fourcc. By default vlc writes the fourcc of the
picture frame into the output destination. (default disabled)
---------------------------------------------------------------------------------------------
Is it possible to know an example of a command of specific forms to use this option?
I need help really..
In order to do this, I've used several methods.
For instance,
cvlc -vvv /home/led/Streaming/dance_2.mp4 --sout '#duplicate{dst="transcode{vcodec=I422}:std{access=file,mux=raw,dst=/home/led/yuv_test.yuv}"'
I can get an yuv video file, but That video was not play properly on YUVviewer or VLC.
Playing the YUV file back shows greenish noisy frames that does not resemble the original video.
Is it possible to repair the part of the wrong command I wrote above?
Furthermore,
https://wiki.videolan.org/VLC_command-line_help/
This site explains 'YUV video output' options.
---------------------------------------------------------------------------------------------
YUV video output
--yuv-file=<string> device, fifo or filename
device, fifo or filename to write yuv frames too.
--yuv-chroma=<string> Chroma used
Force use of a specific chroma for output. Default is I420.
--yuv-yuv4mpeg2, --no-yuv-yuv4mpeg2
YUV4MPEG2 header (default disabled) (default
disabled)
The YUV4MPEG2 header is compatible with mplayer yuv video output and
requires YV12/I420 fourcc. By default vlc writes the fourcc of the
picture frame into the output destination. (default disabled)
---------------------------------------------------------------------------------------------
Is it possible to know an example of a command of specific forms to use this option?
I need help really..