code: def enable_audio_video_cmd(param, enable):
      
      cmd = 'configManager.cgi?action=setConfig'
      formats = [('Extra', 3), ('Main', 4)]
      if param == 'Video':
          formats.append(('Snap', 3))
      for fmt, num in formats:
          for i in range(num):
              cmd += '&Encode[0].{}Format[{}].{}Enable={}'.format(
                  fmt, i, param, str(enable).lower())
      return cmd
docs: Return command to enable/disable all audio/video streams.