YUV input through FIFO is failing

*nix specific usage questions
jdwiegman
New Cone
New Cone
Posts: 8
Joined: 29 May 2013 20:11

YUV input through FIFO is failing

Postby jdwiegman » 13 Feb 2015 23:16

Trying to input live YUV data through a FIFO into VLC. For testing I have YUV data in a file 'TEST.yuv', if I play this in VLC, it works. If I try to send it through a FIFO 'out.yuv', it fails. The relevant log portion is:

Code: Select all

[0x7f31400009b8] main input debug: creating access 'file' location='MYPATH/out.yuv', path='MYPATH/out.yuv' [0x7f31380010f8] main access debug: looking for access module matching "file": 25 candidates [0x7f31380010f8] filesystem access debug: opening file `MYPATH/out.yuv' [0x7f31380010f8] main access debug: using access module "filesystem" [0x7f3138001248] main stream debug: Using stream method for AStream* [0x7f3138001248] main stream debug: starting pre-buffering [0x7f3138001248] main stream error: cannot pre fill buffer [0x7f31380010f8] main access debug: removing module "filesystem" [0x7f31400009b8] main input warning: cannot create a stream_t from access
My relevant steps are:

mkfifo out.yuv
cat TEST.yuv > out.yuv
vlc --demux rawvideo --rawvid-fps 30 --rawvid-width 1920 --rawvid-height 1080 --rawvid-chroma I420 out.yuv

If I also cat the FIFO (to keep it alive), VLC does play the file, but it is garbled... so it seems like its something with the initial synchronization.

Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 10 guests