When playing a raw video (.yuv) file on VLC Player. How can I tell VLC the width, height and frame-rate of the video?
Asked
Active
Viewed 3.1k times
2 Answers
37
Try this:
vlc --demux rawvideo --rawvid-fps 25 --rawvid-width 1920 --rawvid-height 1080 --rawvid-chroma I420 input.yuv

CaptJak
- 3,592
- 1
- 29
- 50

user3403912
- 371
- 3
- 3
-
2`--demux rawvideo` broke this for me.. the other options work fine for playing yuv though. – jsj Oct 13 '14 at 04:30
-
1I don't see why you need --demux, so I removed that from my command line. Works well for me. Thanks! – Andi Jay Mar 17 '15 at 23:07
0
--demux rawvideo
was neither helpful or harmful, for my purposes, but the correct chroma choice happened to be --rawvid-chroma UYVY
. If uncertain, just experiment: you won't get crashes, just wonky imagery.