pipe video to vlc

*nix specific usage questions
milad
New Cone
New Cone
Posts: 3
Joined: 11 Dec 2019 11:22

pipe video to vlc

Postby milad » 11 Dec 2019 11:40

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: pipe video to vlc

Postby Rémi Denis-Courmont » 11 Dec 2019 18:24

Your file might not be suitable for nonseekable playback. Try instead:

Code: Select all

vlc - < video.mkv
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

milad
New Cone
New Cone
Posts: 3
Joined: 11 Dec 2019 11:22

Re: pipe video to vlc

Postby milad » 16 Dec 2019 13:43

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


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

Who is online

Users browsing this forum: No registered users and 12 guests