2

I have a Rapberry Pi (model B), wired connected on network.

I want to stream using raspistill and save loop jpeg picture into a fifo file. In the other side I want to read this fifo file with VLC, and display it.

I tried somthing like this:

mkfifo fifo
wget -O /home/pi/fifo http://192.168.1.27:8554 & omxplayer -r /home/pi/fifo

and this:

cvlc --rc-host 192.168.1.27:8554 /home/pi/fifo -d

to read localy the stream (networkless) I tryed:

cvlc < fifo

(rpi and PC are both on linux)

(I already stream without fifo on VLC player)

Any ideas?

Ghanima
  • 15,958
  • 17
  • 65
  • 125
Jérémy
  • 121
  • 1
  • 4

1 Answers1

1

fifos are not for saving or reading more than once. You may find tee better suited to your goals.

Untested guess at what you want(split a network stream):

mkfifo myfifo1 myfifo2 && curl -s http://192.168.1.27:8554 | tee myfifo1 > myfifo2;

Other guess at what you want(display and save on rpi):

raspistill --fullpreview --output - >> jpgs.dat

or using more than one file in a loop

raspistill --fullpreview --output $(date +%Y%M%dT%H%m%S).jpg

or using raspivid

raspivid -fps 2 --timeout 0 --fullscreen --output $(date +%Y%M%dT%H%m%S).h264

Note that you can set the fps on raspivid and with it's temporal compression it may be better than looping raspistill in some conditions.

user1133275
  • 2,216
  • 16
  • 32