Page 1 of 1

pipe video to vlc

Posted: 11 Dec 2019 11:40
by milad
When i try :

Code: Select all

cat video.mkv | vlc -
In GIU I get below error:

Code: Select all

VLC can't recognize the input's format The format of 'fd://0' cannot be detected. Have a look at the log for details
and In command line i get below errors:

Code: Select all

mkv demux error: cannot find any cluster, damaged file ? ps demux error: cannot peek mpgv demux error: cannot peek mjpeg demux error: cannot peek ps demux error: cannot peek core input error: no suitable demux module for 'fd/any://0'
But when i try:

Code: Select all

vlc video.mkv
Vlc plays video correctly.

does any one know what should I do to pass a video through pipe?

another way that i tried to pipe a video to vlc is:

Code: Select all

mkfifo test cat video.mkv > test vlc test
doesn't work again and give me below error:

Code: Select all

cannot pre fill buffer

Re: pipe video to vlc

Posted: 11 Dec 2019 18:24
by Rémi Denis-Courmont
Your file might not be suitable for nonseekable playback. Try instead:

Code: Select all

vlc - < video.mkv

Re: pipe video to vlc

Posted: 16 Dec 2019 13:43
by milad
Rémi Denis-Courmont. thank you for your reply.
You are right:"file might not be suitable for nonseekable playback"
By attention to your hint I converted it to mpegts format and now it works fine with :) :

Code: Select all

cat video.ts | vlc -
but still there is the problem when i try to pipe using mkfifo:

Code: Select all

mkfifo test cat video.mkv > test vlc test