Using VLC to transcode an Axis Camera’s video stream, and stream it out again

VLC likes to die when transcoding an rtsp stream from an Axis camera then re-streaming it. However, by using a named pipe and two instances of VLC it is possible to make this work.