Ejemplo n.º 1
0
	def new(self):
		newServerConfigSubsection = ConfigSubsection()
		config.plugins.vlcplayer.servers.append(newServerConfigSubsection)
		newServerConfigSubsection.name = ConfigText("Server " + str(self.__getServerCount()), False)
		if newServerConfigSubsection.name.value == newServerConfigSubsection.name.default:
			newServerConfigSubsection.name.default = ""
		newServerConfigSubsection.addressType = ConfigSelectionExtended(
				[("FQDN", "FQDN"),
				 ("IP", "IP-Address")
				], "IP")
		newServerConfigSubsection.hostip = ConfigMutable(
				{"IP": ConfigIP([192,168,1,1]),
				 "FQDN": ConfigText("fqdname", False)
				}, newServerConfigSubsection.addressType.value)
		newServerConfigSubsection.httpport = ConfigInteger(8080, (0,65535))
		newServerConfigSubsection.password = ConfigText("", False)
		newServerConfigSubsection.basedir = ConfigText("/", False)
		newServerConfigSubsection.dvdPath = ConfigText("", False)
		newServerConfigSubsection.transcodeVideo = ConfigYesNo()
		newServerConfigSubsection.transcodeAudio = ConfigYesNo(True)
		newServerConfigSubsection.videocodec = ConfigSelection(
				[("mp1v", "MPEG1"),
				 ("mp2v", "MPEG2")
				], "mp2v")
		newServerConfigSubsection.videobitrate = ConfigInteger(2000, (100, 9999))
		newServerConfigSubsection.audiocodec = ConfigSelection(
				[("mpga", "MPEG Layer 1 (mpga)"),
				 ("mp2a", "MPEG Layer 2 (mp2a)"),
				 ("mp3", "MPEG Layer 3 (mp3)")
				], "mp2a")
		newServerConfigSubsection.audiobitrate = ConfigInteger(128, (64, 320))
		newServerConfigSubsection.samplerate = ConfigSelection(
				[("32000", "32000"),
				 ("44100", "44100"),
				 ("48000", "48000")
				], "44100")
		newServerConfigSubsection.audiochannels = ConfigInteger(2, (1, 9))
		newServerConfigSubsection.videonorm = ConfigSelection(
				[("720,576,4:3,25,i", "720 x 576 (4:3) @ 25fps (PAL)"),
				 ("720,576,16:9,25,i", "720 x 576 (16:9) @ 25fps (PAL)"),
				 ("720,576,16:9,24,i", "720 x 576 (16:9) @ 24fps (PAL)"), 
				 ("704,576,4:3,25,i", "704 x 576 (4:3) @ 25fps (PAL)"),
				 ("704,576,16:9,25,i", "704 x 576 (16:9) @ 25fps (PAL)"),
				 ("544,576,4:3,25,i", "544 x 576 (4:3) @ 25fps (PAL)"),
				 ("544,576,16:9,25,i", "544 x 576 (16:9) @ 25fps (PAL)"),
				 ("480,576,4:3,25,i", "480 x 576 (4:3) @ 25fps (PAL)"),
				 ("480,576,16:9,25,i", "480 x 576 (16:9) @ 25fps (PAL)"),
				 ("480,288,4:3,25,i", "480 x 288 (4:3) @ 25fps (PAL)"),
				 ("480,288,16:9,25,i", "480 x 288 (16:9) @ 25fps (PAL)"),
				 ("352,576,4:3,25,i", "352 x 576 (4:3) @ 25fps (PAL)"),
				 ("352,576,16:9,25,i", "352 x 576 (16:9) @ 25fps (PAL)"),
				 ("352,288,4:3,25,i", "352 x 288 (4:3) @ 25fps (PAL)"),
				 ("352,288,16:9,25,i", "352 x 288 (16:9) @ 25fps (PAL)"),
				 ("720,480,4:3,30,i", "720 x 480 (4:3) @ 30fps (NTSC)"),
				 ("720,480,16:9,30,i", "720 x 480 (16:9) @ 30fps (NTSC)"),
				 ("640,480,4:3,30,i", "640 x 480 (4:3) @ 30fps (NTSC)"),
				 ("640,480,16:9,30,i", "640 x 480 (16:9) @ 30fps (NTSC)"),
				 ("544,480,4:3,30,i", "544 x 480 (4:3) @ 30fps (NTSC)"),
				 ("544,480,16:9,30,i", "544 x 480 (16:9) @ 30fps (NTSC)"),
				 ("480,480,4:3,30,i", "480 x 480 (4:3) @ 30fps (NTSC)"),
				 ("480,480,16:9,30,i", "480 x 480 (16:9) @ 30fps (NTSC)"),
				 ("480,240,4:3,30,i", "480 x 240 (4:3) @ 30fps (NTSC)"),
				 ("480,240,16:9,30,i", "480 x 240 (16:9) @ 30fps (NTSC)"),
				 ("353,480,4:3,30,i", "353 x 480 (4:3) @ 30fps (NTSC)"),
				 ("353,480,16:9,30,i", "353 x 480 (16:9) @ 30fps (NTSC)"),
				 ("352,240,4:3,30,i", "352 x 240 (4:3) @ 30fps (NTSC)"),
				 ("352,240,16:9,30,i", "352 x 240 (16:9) @ 30fps (NTSC)"),
				 ("1920,1080,16:9,50,p", "1920 x 1080 (16:9) @ 50p (HTDV)"),
				 ("1920,1080,16:9,25,p", "1920 x 1080 (16:9) @ 25p (HTDV)"),
				 ("1920,1080,16:9,25,i", "1920 x 1080 (16:9) @ 25i (HTDV)"),
				 ("1440,1080,16:9,25,p", "1440 x 1080 (16:9) @ 25p (HTDV)"),
				 ("1440,1080,16:9,25,i", "1440 x 1080 (16:9) @ 25i (HTDV)"),
				 ("1280,720,16:9,50,p", "1280 x 720 (16:9) @ 50p (HDTV)"),
				 ("1280,720,16:9,25,p", "1280 x 720 (16:9) @ 25p (HDTV)"),
				 ("720,576,16:9,50,p", "720 x 576 (16:9) @ 50p (HDTV)")
				], "352,288,4:3,25,i")
		newServerConfigSubsection.overscancorrection = ConfigInteger(0, (0, 100))
		newServerConfigSubsection.soverlay = ConfigYesNo()
		newServer = VlcServer(newServerConfigSubsection)

		self.serverlist.append(newServer)

		return newServer
Ejemplo n.º 2
0
    def new(self):
        newServerConfigSubsection = ConfigSubsection()
        config.plugins.vlcplayer.servers.append(newServerConfigSubsection)
        newServerConfigSubsection.name = ConfigText(
            "Server " + str(self.__getServerCount()), False)
        if newServerConfigSubsection.name.value == newServerConfigSubsection.name.default:
            newServerConfigSubsection.name.default = ""
        newServerConfigSubsection.addressType = ConfigSelectionExtended(
            [("FQDN", "FQDN"), ("IP", "IP-Address")], "IP")
        newServerConfigSubsection.hostip = ConfigMutable(
            {
                "IP": ConfigIP([192, 168, 1, 1]),
                "FQDN": ConfigText("fqdname", False)
            }, newServerConfigSubsection.addressType.value)
        newServerConfigSubsection.httpport = ConfigInteger(8080, (0, 65535))
        newServerConfigSubsection.basedir = ConfigText("/", False)
        newServerConfigSubsection.dvdPath = ConfigText("", False)
        newServerConfigSubsection.transcodeVideo = ConfigYesNo()
        newServerConfigSubsection.transcodeAudio = ConfigYesNo(True)
        newServerConfigSubsection.videocodec = ConfigSelection(
            [("mp1v", "MPEG1"), ("mp2v", "MPEG2")], "mp2v")
        newServerConfigSubsection.videobitrate = ConfigInteger(
            2000, (100, 9999))
        newServerConfigSubsection.audiocodec = ConfigSelection(
            [("mpga", "MPEG Layer 1 (mpga)"), ("mp2a", "MPEG Layer 2 (mp2a)"),
             ("mp3", "MPEG Layer 3 (mp3)")], "mp2a")
        newServerConfigSubsection.audiobitrate = ConfigInteger(128, (64, 320))
        newServerConfigSubsection.samplerate = ConfigSelection(
            [("32000", "32000"), ("44100", "44100"),
             ("48000", "48000")], "44100")
        newServerConfigSubsection.audiochannels = ConfigInteger(2, (1, 9))
        newServerConfigSubsection.videonorm = ConfigSelection(
            [("720,576,4:3,25,i", "720 x 576 (4:3) @ 25fps (PAL)"),
             ("720,576,16:9,25,i", "720 x 576 (16:9) @ 25fps (PAL)"),
             ("704,576,4:3,25,i", "704 x 576 (4:3) @ 25fps (PAL)"),
             ("704,576,16:9,25,i", "704 x 576 (16:9) @ 25fps (PAL)"),
             ("544,576,4:3,25,i", "544 x 576 (4:3) @ 25fps (PAL)"),
             ("544,576,16:9,25,i", "544 x 576 (16:9) @ 25fps (PAL)"),
             ("480,576,4:3,25,i", "480 x 576 (4:3) @ 25fps (PAL)"),
             ("480,576,16:9,25,i", "480 x 576 (16:9) @ 25fps (PAL)"),
             ("480,288,4:3,25,i", "480 x 288 (4:3) @ 25fps (PAL)"),
             ("480,288,16:9,25,i", "480 x 288 (16:9) @ 25fps (PAL)"),
             ("352,576,4:3,25,i", "352 x 576 (4:3) @ 25fps (PAL)"),
             ("352,576,16:9,25,i", "352 x 576 (16:9) @ 25fps (PAL)"),
             ("352,288,4:3,25,i", "352 x 288 (4:3) @ 25fps (PAL)"),
             ("352,288,16:9,25,i", "352 x 288 (16:9) @ 25fps (PAL)"),
             ("720,480,4:3,30,i", "720 x 480 (4:3) @ 30fps (NTSC)"),
             ("720,480,16:9,30,i", "720 x 480 (16:9) @ 30fps (NTSC)"),
             ("640,480,4:3,30,i", "640 x 480 (4:3) @ 30fps (NTSC)"),
             ("640,480,16:9,30,i", "640 x 480 (16:9) @ 30fps (NTSC)"),
             ("544,480,4:3,30,i", "544 x 480 (4:3) @ 30fps (NTSC)"),
             ("544,480,16:9,30,i", "544 x 480 (16:9) @ 30fps (NTSC)"),
             ("480,480,4:3,30,i", "480 x 480 (4:3) @ 30fps (NTSC)"),
             ("480,480,16:9,30,i", "480 x 480 (16:9) @ 30fps (NTSC)"),
             ("480,240,4:3,30,i", "480 x 240 (4:3) @ 30fps (NTSC)"),
             ("480,240,16:9,30,i", "480 x 240 (16:9) @ 30fps (NTSC)"),
             ("353,480,4:3,30,i", "353 x 480 (4:3) @ 30fps (NTSC)"),
             ("353,480,16:9,30,i", "353 x 480 (16:9) @ 30fps (NTSC)"),
             ("352,240,4:3,30,i", "352 x 240 (4:3) @ 30fps (NTSC)"),
             ("352,240,16:9,30,i", "352 x 240 (16:9) @ 30fps (NTSC)"),
             ("1920,1080,16:9,50,p", "1920 x 1080 (16:9) @ 50p (HTDV)"),
             ("1920,1080,16:9,25,p", "1920 x 1080 (16:9) @ 25p (HTDV)"),
             ("1920,1080,16:9,25,i", "1920 x 1080 (16:9) @ 25i (HTDV)"),
             ("1440,1080,16:9,25,p", "1440 x 1080 (16:9) @ 25p (HTDV)"),
             ("1440,1080,16:9,25,i", "1440 x 1080 (16:9) @ 25i (HTDV)"),
             ("1280,720,16:9,50,p", "1280 x 720 (16:9) @ 50p (HDTV)"),
             ("1280,720,16:9,25,p", "1280 x 720 (16:9) @ 25p (HDTV)"),
             ("720,576,16:9,50,p", "720 x 576 (16:9) @ 50p (HDTV)")],
            "352,288,4:3,25,i")
        newServerConfigSubsection.overscancorrection = ConfigInteger(
            0, (0, 100))
        newServerConfigSubsection.soverlay = ConfigYesNo()
        newServer = VlcServer(newServerConfigSubsection)

        self.serverlist.append(newServer)

        return newServer
Ejemplo n.º 3
0
    def new(self):
        newServerConfigSubsection = ConfigSubsection()
        config.plugins.vlcplayer.servers.append(newServerConfigSubsection)
        newServerConfigSubsection.name = ConfigText(
            "Server " + str(self.__getServerCount()), False)
        if newServerConfigSubsection.name.value == newServerConfigSubsection.name.default:
            newServerConfigSubsection.name.default = ""
        newServerConfigSubsection.addressType = ConfigSelectionExtended(
            [("FQDN", _("FQDN")), ("IP", _("IP-Address"))], "IP")
        newServerConfigSubsection.hostip = ConfigMutable(
            {
                "IP": ConfigIP([192, 168, 1, 1]),
                "FQDN": ConfigText("fqdname", False)
            }, newServerConfigSubsection.addressType.value)
        newServerConfigSubsection.httpport = ConfigInteger(8080, (0, 65535))
        newServerConfigSubsection.vlctype = ConfigYesNo(False)
        newServerConfigSubsection.basedir = ConfigText("/", False)
        newServerConfigSubsection.pingonopen = ConfigYesNo(True)
        newServerConfigSubsection.usecachedir = ConfigYesNo(False)
        newServerConfigSubsection.cachedir = ConfigText(
            "/media/hdd/movie", False)
        newServerConfigSubsection.dvdPath = ConfigText("", False)
        newServerConfigSubsection.transcodeVideo = ConfigYesNo()
        newServerConfigSubsection.transcodeAudio = ConfigYesNo(True)
        newServerConfigSubsection.videocodec = ConfigSelection(
            [("mp1v", "MPEG1"), ("mp2v", "MPEG2")], "mp2v")
        newServerConfigSubsection.videobitrate = ConfigInteger(
            2000, (100, 9999))
        newServerConfigSubsection.audiocodec = ConfigSelection(
            [("mpga", "MPEG Layer 1 (mpga)"), ("mp2a", "MPEG Layer 2 (mp2a)"),
             ("mp3", "MPEG Layer 3 (mp3)")], "mp2a")
        newServerConfigSubsection.audiobitrate = ConfigInteger(128, (64, 320))
        newServerConfigSubsection.samplerate = ConfigSelection(
            [("32000", "32000"), ("44100", "44100"), ("48000", "48000"),
             ("0", "0")], "44100")
        newServerConfigSubsection.audiochannels = ConfigInteger(2, (1, 9))
        newServerConfigSubsection.videonorm = ConfigSelection(
            [("720,576,4:3,25,i", "720 x 576 (4:3) @ 25fps (PAL)"),
             ("720,576,16:9,25,i", "720 x 576 (16:9) @ 25fps (PAL)"),
             ("704,576,4:3,25,i", "704 x 576 (4:3) @ 25fps (PAL)"),
             ("704,440,4:3,25,i", "704 x 440 (4:3) @ 25fps (PAL)"),
             ("704,420,4:3,25,i", "704 x 420 (4:3) @ 25fps (PAL)"),
             ("704,400,4:3,25,i", "704 x 400 (4:3) @ 25fps (PAL)"),
             ("704,576,16:9,25,i", "704 x 576 (16:9) @ 25fps (PAL)"),
             ("544,576,4:3,25,i", "544 x 576 (4:3) @ 25fps (PAL)"),
             ("544,576,16:9,25,i", "544 x 576 (16:9) @ 25fps (PAL)"),
             ("480,576,4:3,25,i", "480 x 576 (4:3) @ 25fps (PAL)"),
             ("480,576,16:9,25,i", "480 x 576 (16:9) @ 25fps (PAL)"),
             ("480,288,4:3,25,i", "480 x 288 (4:3) @ 25fps (PAL)"),
             ("480,288,16:9,25,i", "480 x 288 (16:9) @ 25fps (PAL)"),
             ("352,576,4:3,25,i", "352 x 576 (4:3) @ 25fps (PAL)"),
             ("352,576,16:9,25,i", "352 x 576 (16:9) @ 25fps (PAL)"),
             ("352,288,4:3,25,i", "352 x 288 (4:3) @ 25fps (PAL)"),
             ("352,288,16:9,25,i", "352 x 288 (16:9) @ 25fps (PAL)"),
             ("720,480,4:3,30,i", "720 x 480 (4:3) @ 30fps (NTSC)"),
             ("720,480,16:9,30,i", "720 x 480 (16:9) @ 30fps (NTSC)"),
             ("640,480,4:3,30,i", "640 x 480 (4:3) @ 30fps (NTSC)"),
             ("640,480,16:9,30,i", "640 x 480 (16:9) @ 30fps (NTSC)"),
             ("544,480,4:3,30,i", "544 x 480 (4:3) @ 30fps (NTSC)"),
             ("544,480,16:9,30,i", "544 x 480 (16:9) @ 30fps (NTSC)"),
             ("480,480,4:3,30,i", "480 x 480 (4:3) @ 30fps (NTSC)"),
             ("480,480,16:9,30,i", "480 x 480 (16:9) @ 30fps (NTSC)"),
             ("480,240,4:3,30,i", "480 x 240 (4:3) @ 30fps (NTSC)"),
             ("480,240,16:9,30,i", "480 x 240 (16:9) @ 30fps (NTSC)"),
             ("353,480,4:3,30,i", "353 x 480 (4:3) @ 30fps (NTSC)"),
             ("353,480,16:9,30,i", "353 x 480 (16:9) @ 30fps (NTSC)"),
             ("352,240,4:3,30,i", "352 x 240 (4:3) @ 30fps (NTSC)"),
             ("352,240,16:9,30,i", "352 x 240 (16:9) @ 30fps (NTSC)"),
             ("1920,1080,16:9,50,p", "1920 x 1080 (16:9) @ 50p (HTDV)"),
             ("1920,1080,16:9,25,p", "1920 x 1080 (16:9) @ 25p (HTDV)"),
             ("1920,1080,16:9,25,i", "1920 x 1080 (16:9) @ 25i (HTDV)"),
             ("1440,1080,16:9,25,p", "1440 x 1080 (16:9) @ 25p (HTDV)"),
             ("1440,1080,16:9,25,i", "1440 x 1080 (16:9) @ 25i (HTDV)"),
             ("1280,720,16:9,50,p", "1280 x 720 (16:9) @ 50p (HDTV)"),
             ("1280,720,16:9,25,p", "1280 x 720 (16:9) @ 25p (HDTV)"),
             ("720,576,16:9,50,p", "720 x 576 (16:9) @ 50p (HDTV)")],
            "352,288,4:3,25,i")
        newServerConfigSubsection.overscancorrection = ConfigInteger(
            0, (0, 100))
        newServerConfigSubsection.soverlay = ConfigYesNo()
        newServerConfigSubsection.subyellow = ConfigYesNo()

        newServerConfigSubsection.langInputType = ConfigSelectionExtended(
            [("track", _("tracks")), ("language", _("languages"))], "language")
        newServerConfigSubsection.typeAudio = ConfigMutable(
            {
                "track":
                ConfigSelection([("-1", "-1"), ("0", "0"), ("1", "1"),
                                 ("2", "2"), ("3", "3"), ("4", "4"),
                                 ("5", "5"), ("6", "6"), ("7", "7"),
                                 ("8", "8"), ("9", "9"), ("10", "10"),
                                 ("11", "11"), ("12", "12"), ("13", "13"),
                                 ("14", "14"), ("15", "15")], "-1"),
                "language":
                ConfigSelection([("---", "None"), ("ara", "Arabic"),
                                 ("baq", "Basque"), ("hrv", "Croatian"),
                                 ("cze", "Czech"), ("dan", "Danish"),
                                 ("dut", "Dutch"), ("eng", "English"),
                                 ("est", "Estonian"), ("fin", "Finnish"),
                                 ("fra", "French"), ("ger", "German"),
                                 ("gre", "Greek"), ("hun", "Hungarian"),
                                 ("ita", "Italian"), ("lat", "Latvian"),
                                 ("lit", "Lithuanian"), ("nob", "Norwegian"),
                                 ("pol", "Polish"), ("por", "Portuguese"),
                                 ("fas", "Persian"), ("ron", "Romanian"),
                                 ("rus", "Russian"), ("srp", "Serbian"),
                                 ("slk", "Slovak"), ("slv", "Slovenian"),
                                 ("spa", "Spanish"), ("swe", "Swedish"),
                                 ("tur", "Turkish")], "---")
            }, newServerConfigSubsection.langInputType.value)
        newServerConfigSubsection.typeSubtitles = ConfigMutable(
            {
                "track":
                ConfigSelection([("-1", "-1"), ("0", "0"), ("1", "1"),
                                 ("2", "2"), ("3", "3"), ("4", "4"),
                                 ("5", "5"), ("6", "6"), ("7", "7"),
                                 ("8", "8"), ("9", "9"), ("10", "10"),
                                 ("11", "11"), ("12", "12"), ("13", "13"),
                                 ("14", "14"), ("15", "15")], "-1"),
                "language":
                ConfigSelection([("---", "None"), ("ara", "Arabic"),
                                 ("baq", "Basque"), ("hrv", "Croatian"),
                                 ("cze", "Czech"), ("dan", "Danish"),
                                 ("dut", "Dutch"), ("eng", "English"),
                                 ("est", "Estonian"), ("fin", "Finnish"),
                                 ("fra", "French"), ("ger", "German"),
                                 ("gre", "Greek"), ("hun", "Hungarian"),
                                 ("ita", "Italian"), ("lat", "Latvian"),
                                 ("lit", "Lithuanian"), ("nob", "Norwegian"),
                                 ("pol", "Polish"), ("por", "Portuguese"),
                                 ("fas", "Persian"), ("ron", "Romanian"),
                                 ("rus", "Russian"), ("srp", "Serbian"),
                                 ("slk", "Slovak"), ("slv", "Slovenian"),
                                 ("spa", "Spanish"), ("swe", "Swedish"),
                                 ("tur", "Turkish")], "---")
            }, newServerConfigSubsection.langInputType.value)

        newServer = VlcServer(newServerConfigSubsection)

        self.serverlist.append(newServer)

        return newServer
Ejemplo n.º 4
0
	def new(self):
		newServerConfigSubsection = ConfigSubsection()
		config.plugins.vlcplayer.servers.append(newServerConfigSubsection)
		newServerConfigSubsection.name = ConfigText("Server " + str(self.__getServerCount()), False)
		if newServerConfigSubsection.name.value == newServerConfigSubsection.name.default:
			newServerConfigSubsection.name.default = ""
		newServerConfigSubsection.addressType = ConfigSelectionExtended(
				[("FQDN", _("FQDN")),
				 ("IP", _("IP-Address"))
				], "IP")
		newServerConfigSubsection.hostip = ConfigMutable(
				{"IP": ConfigIP([192,168,1,1]),
				 "FQDN": ConfigText("fqdname", False)
				}, newServerConfigSubsection.addressType.value)
		newServerConfigSubsection.httpport = ConfigInteger(8080, (0,65535))
		newServerConfigSubsection.vlctype = ConfigYesNo(False)
		newServerConfigSubsection.basedir = ConfigText("/", False)
		newServerConfigSubsection.pingonopen = ConfigYesNo(True)
		newServerConfigSubsection.usecachedir = ConfigYesNo(False)
		newServerConfigSubsection.cachedir = ConfigText("/media/hdd/movie", False)
		newServerConfigSubsection.dvdPath = ConfigText("", False)
		newServerConfigSubsection.transcodeVideo = ConfigYesNo()
		newServerConfigSubsection.transcodeAudio = ConfigYesNo(True)
		newServerConfigSubsection.videocodec = ConfigSelection(
				[("mp1v", "MPEG1"),
				 ("mp2v", "MPEG2")
				], "mp2v")
		newServerConfigSubsection.videobitrate = ConfigInteger(2000, (100, 9999))
		newServerConfigSubsection.audiocodec = ConfigSelection(
				[("mpga", "MPEG Layer 1 (mpga)"),
				 ("mp2a", "MPEG Layer 2 (mp2a)"),
				 ("mp3", "MPEG Layer 3 (mp3)")
				], "mp2a")
		newServerConfigSubsection.audiobitrate = ConfigInteger(128, (64, 320))
		newServerConfigSubsection.samplerate = ConfigSelection(
				[("32000", "32000"),
				 ("44100", "44100"),
				 ("48000", "48000"),
				 ("0", "0")
				], "44100")
		newServerConfigSubsection.audiochannels = ConfigInteger(2, (1, 9))
		newServerConfigSubsection.videonorm = ConfigSelection(
				[("720,576,4:3,25,i", "720 x 576 (4:3) @ 25fps (PAL)"),
				 ("720,576,16:9,25,i", "720 x 576 (16:9) @ 25fps (PAL)"),
				 ("704,576,4:3,25,i", "704 x 576 (4:3) @ 25fps (PAL)"),
				 ("704,440,4:3,25,i", "704 x 440 (4:3) @ 25fps (PAL)"),
				 ("704,420,4:3,25,i", "704 x 420 (4:3) @ 25fps (PAL)"),
				 ("704,400,4:3,25,i", "704 x 400 (4:3) @ 25fps (PAL)"),
				 ("704,576,16:9,25,i", "704 x 576 (16:9) @ 25fps (PAL)"),
				 ("544,576,4:3,25,i", "544 x 576 (4:3) @ 25fps (PAL)"),
				 ("544,576,16:9,25,i", "544 x 576 (16:9) @ 25fps (PAL)"),
				 ("480,576,4:3,25,i", "480 x 576 (4:3) @ 25fps (PAL)"),
				 ("480,576,16:9,25,i", "480 x 576 (16:9) @ 25fps (PAL)"),
				 ("480,288,4:3,25,i", "480 x 288 (4:3) @ 25fps (PAL)"),
				 ("480,288,16:9,25,i", "480 x 288 (16:9) @ 25fps (PAL)"),
				 ("352,576,4:3,25,i", "352 x 576 (4:3) @ 25fps (PAL)"),
				 ("352,576,16:9,25,i", "352 x 576 (16:9) @ 25fps (PAL)"),
				 ("352,288,4:3,25,i", "352 x 288 (4:3) @ 25fps (PAL)"),
				 ("352,288,16:9,25,i", "352 x 288 (16:9) @ 25fps (PAL)"),
				 ("720,480,4:3,30,i", "720 x 480 (4:3) @ 30fps (NTSC)"),
				 ("720,480,16:9,30,i", "720 x 480 (16:9) @ 30fps (NTSC)"),
				 ("640,480,4:3,30,i", "640 x 480 (4:3) @ 30fps (NTSC)"),
				 ("640,480,16:9,30,i", "640 x 480 (16:9) @ 30fps (NTSC)"),
				 ("544,480,4:3,30,i", "544 x 480 (4:3) @ 30fps (NTSC)"),
				 ("544,480,16:9,30,i", "544 x 480 (16:9) @ 30fps (NTSC)"),
				 ("480,480,4:3,30,i", "480 x 480 (4:3) @ 30fps (NTSC)"),
				 ("480,480,16:9,30,i", "480 x 480 (16:9) @ 30fps (NTSC)"),
				 ("480,240,4:3,30,i", "480 x 240 (4:3) @ 30fps (NTSC)"),
				 ("480,240,16:9,30,i", "480 x 240 (16:9) @ 30fps (NTSC)"),
				 ("353,480,4:3,30,i", "353 x 480 (4:3) @ 30fps (NTSC)"),
				 ("353,480,16:9,30,i", "353 x 480 (16:9) @ 30fps (NTSC)"),
				 ("352,240,4:3,30,i", "352 x 240 (4:3) @ 30fps (NTSC)"),
				 ("352,240,16:9,30,i", "352 x 240 (16:9) @ 30fps (NTSC)"),
				 ("1920,1080,16:9,50,p", "1920 x 1080 (16:9) @ 50p (HTDV)"),
				 ("1920,1080,16:9,25,p", "1920 x 1080 (16:9) @ 25p (HTDV)"),
				 ("1920,1080,16:9,25,i", "1920 x 1080 (16:9) @ 25i (HTDV)"),
				 ("1440,1080,16:9,25,p", "1440 x 1080 (16:9) @ 25p (HTDV)"),
				 ("1440,1080,16:9,25,i", "1440 x 1080 (16:9) @ 25i (HTDV)"),
				 ("1280,720,16:9,50,p", "1280 x 720 (16:9) @ 50p (HDTV)"),
				 ("1280,720,16:9,25,p", "1280 x 720 (16:9) @ 25p (HDTV)"),
				 ("720,576,16:9,50,p", "720 x 576 (16:9) @ 50p (HDTV)")
				], "352,288,4:3,25,i")
		newServerConfigSubsection.overscancorrection = ConfigInteger(0, (0, 100))
		newServerConfigSubsection.soverlay = ConfigYesNo()
		newServerConfigSubsection.subyellow = ConfigYesNo()
		
		newServerConfigSubsection.langInputType = ConfigSelectionExtended(
				[("track", _("tracks")),
				 ("language", _("languages"))
				], "language")
		newServerConfigSubsection.typeAudio = ConfigMutable(
				{"track": ConfigSelection([
							("-1","-1"),
							("0","0"),
							("1","1"),
							("2","2"),
							("3","3"),
							("4","4"),
							("5","5"),
							("6","6"),
							("7","7"),
							("8","8"),
							("9","9"),
							("10","10"),
							("11","11"),
							("12","12"),
							("13","13"),
							("14","14"),
							("15","15")
							],"-1"),
				 "language": ConfigSelection([
							("---", "None"),
							("ara", "Arabic"),
							("baq", "Basque"),
							("hrv", "Croatian"),
							("cze", "Czech"),
							("dan", "Danish"),
							("dut", "Dutch"),
							("eng", "English"),
							("est", "Estonian"),
							("fin", "Finnish"),
							("fra", "French"),
							("ger", "German"),
							("gre", "Greek"),
							("hun", "Hungarian"),
							("ita", "Italian"),
							("lat", "Latvian"),
							("lit", "Lithuanian"),
							("nob", "Norwegian"),
							("pol", "Polish"),
							("por", "Portuguese"),
							("fas", "Persian"),
							("ron", "Romanian"),
							("rus", "Russian"),
							("srp", "Serbian"),
							("slk", "Slovak"),
							("slv", "Slovenian"),
							("spa", "Spanish"),
							("swe", "Swedish"),
							("tur", "Turkish")
							],"---")
				}, newServerConfigSubsection.langInputType.value)
		newServerConfigSubsection.typeSubtitles = ConfigMutable(
				{"track": ConfigSelection([
							("-1","-1"),
							("0","0"),
							("1","1"),
							("2","2"),
							("3","3"),
							("4","4"),
							("5","5"),
							("6","6"),
							("7","7"),
							("8","8"),
							("9","9"),
							("10","10"),
							("11","11"),
							("12","12"),
							("13","13"),
							("14","14"),
							("15","15")
							],"-1"),
				 "language": ConfigSelection([
							("---", "None"),
							("ara", "Arabic"),
							("baq", "Basque"),
							("hrv", "Croatian"),
							("cze", "Czech"),
							("dan", "Danish"),
							("dut", "Dutch"),
							("eng", "English"),
							("est", "Estonian"),
							("fin", "Finnish"),
							("fra", "French"),
							("ger", "German"),
							("gre", "Greek"),
							("hun", "Hungarian"),
							("ita", "Italian"),
							("lat", "Latvian"),
							("lit", "Lithuanian"),
							("nob", "Norwegian"),
							("pol", "Polish"),
							("por", "Portuguese"),
							("fas", "Persian"),
							("ron", "Romanian"),
							("rus", "Russian"),
							("srp", "Serbian"),
							("slk", "Slovak"),
							("slv", "Slovenian"),
							("spa", "Spanish"),
							("swe", "Swedish"),
							("tur", "Turkish")
							],"---")
				}, newServerConfigSubsection.langInputType.value)

		newServer = VlcServer(newServerConfigSubsection)

		self.serverlist.append(newServer)

		return newServer