I use this command to stream a live video from a Raspberry camera:
raspivid -n -ih -t 0 -rot 0 -w 1280 -h 720 -fps 15 -b 1000000 -o - | nc -lkv4 5001
I need a way to stream a H.264 file through netcat
like the example above. It must be received in the same way than my Raspberry camera.