Ported from libshcodecs 5ae138f
Adds shrecord functionality, using libshcodecs/libshveu/libuiomux.
Override the control file value for "frame_num_to_encode"; set it to -1 so that the encoded stream is not terminated. This allows control files that were originally set up for file encoding to be used for stream setup.
Don't call shrecord_cleanup() from the signal handler directly, but instead flag to the shrecord_main thread to clean itself up.
Each client connection starts reading from the ringbuffer for that encoded stream; each encoder writes continuously to that buffer. Tested with dual encode (vga+cif) from a single camera, with the following two stanzas in /etc/sighttpd/sighttpd.conf: <SHRecord> Path "/video0/vga.264" CtlFile "/usr/share/shcodecs-record/k264-v4l2-vga-stream.ctl" </SHRecord> <SHRecord> Path "/video0/cif.264" CtlFile "/usr/share/shcodecs-record/k264-v4l2-cif-stream.ctl" </SHRecord>