user2079355
user2079355

Reputation: 161

Piping out h.264 encoded video through avconv to vlc

My end game is to take read a raw video from a file into avconv, h.264 encode it, and pipe it to VLC. However, I cannot seem to get it to work. Even just piping an already encoded video to VLC does not work. Trying:

avconv -i test.mp4 -f h264 - | vlc -

appears to be encoding a video (the cmd line output looks like it is processing frame by frame), but nothing is displayed to VLC. A similar test with an .avi works fine:

avconv -i test.avi -f avi - | vlc -

Is there something different special piping out h264 encoded video?

Upvotes: 1

Views: 1561

Answers (1)

aergistal
aergistal

Reputation: 31209

Specify the demuxer:

cat test.h264 | vlc --demux h264 -

--demux=<string> Demux module Demultiplexers are used to separate the "elementary" streams (like audio and video streams). You can use it if the correct demuxer is not automatically detected. You should not set this as a global option unless you really know what you are doing.

VLC command line help

Upvotes: 3

Related Questions