looping .mpeg dump
Posted
by
Matt Cook
on Super User
See other posts from Super User
or by Matt Cook
Published on 2011-01-17T23:00:47Z
Indexed on
2011/01/17
23:55 UTC
Read the original article
Hit count: 248
Need to dump an MPEG2 file in a loop, either to stdout or a named pipe.
This works:
$ { while : ; do cat myLoop.mpg; done; } | vlc -
This works on a text file containing "1234\n":
$ mkfifo myPipe
$ cat test.txt > myPipe & < myPipe tee -a myPipe | cat -
(it correctly loops, outputting "1234" on every line). Why does the following NOT work?
$ cat myLoop.mpg > myPipe & < myPipe tee -a myPipe | vlc myPipe
I'm primarily interested in re-writing the first statement to remove the improper "cat myLoop.mpg" statement. Will be inputting into VLC, or into FFMPEG and then piped into VLC.
© Super User or respective owner