Excellent!
Here are a couple more things you might like to try:
You're currently doing unicast streaming. You can make it work in multicast mode (so that ffmpeg will broadcast to a number of computers running VLC) pretty easily. Essentially just use a
multicast address instead of the address of your PC.
And you should be able to package and stream HLS, UDP and RTMP all at the same time. To do that you need to send the h264 to multiple ffmpeg instances. You can do that using tee like this:
Code: Select all
$ cat "$fifo" | tee >( ffmpeg -f h264 -i - -c copy {hls options} ) >( ffmpeg -f h264 -i - -c copy {udp options} ) > /dev/null
So you could, for example, use UDP multicast for devices that can run VLC and HLS for anything else.