Changed writing to use the av_interleaved_write_frame call. Audio and video writing to a network stream now result in the desired video.