I have a video container vid.mp4
that I want to play with ffplay
through a named PIPE and be able to tweak the maximum bandwidth allowed by the "channel". Follows what I did:
1.
Create a named PIPE:
mkfifo pipe_in
2.
Send the container to the pipe with a limited bandwidth (150kB/s) with the help of pipe viewer pv
:
cat vid.mp4 | pv -L 150k > pipe_in
3.
Play the video with ffplay
:
ffplay cache:./pipe_in
My expectation: To watch the video come through immediately but slowly given the bandwidth constraint.
What really happens: The video begins to show at normal speed only when command 2.
finishes running.
Thank you in advance!