23

When playing a raw video (.yuv) file on VLC Player. How can I tell VLC the width, height and frame-rate of the video?

jsj
  • 8,599
  • 14
  • 55
  • 99
user1177187
  • 451
  • 1
  • 5
  • 15

2 Answers2

34

Try this:

vlc --demux rawvideo --rawvid-fps 25 --rawvid-width 1920 --rawvid-height 1080 --rawvid-chroma I420 input.yuv
CaptJak
  • 3,562
  • 1
  • 27
  • 50
user3403912
  • 341
  • 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
  • 1
    I 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.