Beispiel #1
0
		void QueueUpdate(QueueProp Id)
		{
			foreach (ListViewItem item in lstQueue.SelectedItems)
			{
				var X = item.Tag as Queue;

				switch (Id)
				{
					case QueueProp.FormatMkv:
						item.SubItems[3].Text = ".MKV (HEVC)";
						X.Data.SaveAsMkv = true;
						break;

					case QueueProp.FormatMp4:
						item.SubItems[3].Text = ".MP4 (HEVC)";
						X.Data.SaveAsMkv = false;
						break;

					case QueueProp.PictureResolution:
						X.Picture.Resolution = cboPictureRes.Text;
						break;

					case QueueProp.PictureFrameRate:
						X.Picture.FrameRate = cboPictureFps.Text;
						break;

					case QueueProp.PictureBitDepth:
						X.Picture.BitDepth = cboPictureBit.Text;
						break;

					case QueueProp.PictureChroma:
						X.Picture.Chroma = cboPictureYuv.Text;
						break;

					case QueueProp.PictureYadifEnable:
						X.Picture.YadifEnable = chkPictureYadif.Checked;
						break;

					case QueueProp.PictureYadifMode:
						X.Picture.YadifMode = cboPictureYadifMode.SelectedIndex;
						break;

					case QueueProp.PictureYadifField:
						X.Picture.YadifField = cboPictureYadifField.SelectedIndex;
						break;

					case QueueProp.PictureYadifFlag:
						X.Picture.YadifFlag = cboPictureYadifFlag.SelectedIndex;
						break;

					case QueueProp.PictureCopyVideo:
						if (X.Picture.IsHevc)
							X.Picture.IsCopy = chkPictureVideoCopy.Checked;
						break;

					case QueueProp.VideoPreset:
						X.Video.Preset = cboVideoPreset.Text;
						break;

					case QueueProp.VideoTune:
						X.Video.Tune = cboVideoTune.Text;
						break;

					case QueueProp.VideoType:
						X.Video.Type = cboVideoType.SelectedIndex;
						break;

					case QueueProp.VideoValue:
						X.Video.Value = txtVideoValue.Text;
						break;

					case QueueProp.VideoCommand:
						X.Video.Command = txtVideoCmd.Text;
						break;

					case QueueProp.AudioEncoder:
						X.Audio.Encoder = cboAudioEncoder.Text;
						break;

					case QueueProp.AudioBitRate:
						X.Audio.BitRate = cboAudioBit.Text;
						break;

					case QueueProp.AudioFreq:
						X.Audio.Frequency = cboAudioFreq.Text;
						break;

					case QueueProp.AudioChannel:
						X.Audio.Channel = cboAudioChannel.Text;
						break;

					case QueueProp.AudioMerge:
						X.Audio.Merge = chkAudioMerge.Checked;
						break;

					case QueueProp.AudioCommand:
						X.Audio.Command = txtAudioCmd.Text;
						break;

					default:
						break;
				}
			}
		}
Beispiel #2
0
		void QueueUpdate(QueueProp Id)
		{
			if (lstQueue.SelectedItems.Count == 0)
			{
				tipNotify.ToolTipIcon = ToolTipIcon.Warning;
				tipNotify.ToolTipTitle = Language.TipUpdateTitle;
				tipNotify.Show(Language.OneItem, tabConfig, 0, 0, 5000);
			}

			foreach (ListViewItem item in lstQueue.SelectedItems)
			{
				var x = item.Tag as Queue;
				var t = clbAudioTracks.SelectedIndex >= 0 ? clbAudioTracks.SelectedIndex : 0;

				switch (Id)
				{
					case QueueProp.FormatMkv:
						item.SubItems[3].Text = item.SubItems[3].Text.Replace("MP4","MKV");
						x.General.IsOutputMKV = true;
						break;

					case QueueProp.FormatMp4:
						item.SubItems[3].Text = item.SubItems[3].Text.Replace("MKV", "MP4");
						x.General.IsOutputMKV = false;
						break;

					case QueueProp.PictureResolution:
						x.Picture.Resolution = cboPictureRes.Text;
						break;

					case QueueProp.PictureFrameRate:
						x.Picture.FrameRate = cboPictureFps.Text;
						break;

					case QueueProp.PictureBitDepth:
						x.Picture.BitDepth = Convert.ToInt32(cboPictureBit.Text);
						break;

					case QueueProp.PictureChroma:
						x.Picture.Chroma = Convert.ToInt32(cboPictureYuv.Text);
						break;

					case QueueProp.PictureYadifEnable:
						x.Picture.YadifEnable = chkPictureYadif.Checked;
						break;

					case QueueProp.PictureYadifMode:
						x.Picture.YadifMode = cboPictureYadifMode.SelectedIndex;
						break;

					case QueueProp.PictureYadifField:
						x.Picture.YadifField = cboPictureYadifField.SelectedIndex;
						break;

					case QueueProp.PictureYadifFlag:
						x.Picture.YadifFlag = cboPictureYadifFlag.SelectedIndex;
						break;

					case QueueProp.VideoPreset:
						x.Video.Preset = cboVideoPreset.Text;
						break;

					case QueueProp.VideoTune:
						x.Video.Tune = cboVideoTune.Text;
						break;

					case QueueProp.VideoType:
						x.Video.Type = cboVideoType.SelectedIndex;
						break;

					case QueueProp.VideoValue:
						x.Video.Value = txtVideoValue.Text;
						break;

					case QueueProp.VideoCommand:
						x.Video.Command = txtVideoCmd.Text;
						break;

					case QueueProp.AudioEncoder:
						x.Audio[t].Encoder = ((KeyValuePair<Guid, string>)cboAudioEncoder.SelectedItem).Key;
                        break;

					case QueueProp.AudioBitRate:
						x.Audio[t].BitRate = cboAudioBit.Text;
						break;

					case QueueProp.AudioFreq:
						x.Audio[t].Freq = cboAudioFreq.Text;
						break;

					case QueueProp.AudioChannel:
						x.Audio[t].Chan = cboAudioChannel.Text;
						break;

					case QueueProp.AudioMerge:
						x.AudioMerge = chkAudioMerge.Checked;
						break;

					case QueueProp.AudioCommand:
						x.Audio[t].Args = txtAudioCmd.Text;
						break;

					default:
						break;
				}
			}
		}
Beispiel #3
0
		void QueueUpdate(QueueProp Id)
		{
			if (lstQueue.SelectedItems.Count == 0)
			{
				tipNotify.ToolTipIcon = ToolTipIcon.Warning;
				tipNotify.ToolTipTitle = Language.TipUpdateTitle;
				tipNotify.Show(Language.OneItem, tabConfig, 0, 0, 5000);
			}

			foreach (ListViewItem item in lstQueue.SelectedItems)
			{
				var X = item.Tag as Queue;

				switch (Id)
				{
					case QueueProp.FormatMkv:
						item.SubItems[3].Text = item.SubItems[3].Text.Replace("MP4","MKV");
						X.Data.SaveAsMkv = true;
						break;

					case QueueProp.FormatMp4:
						item.SubItems[3].Text = item.SubItems[3].Text.Replace("MKV", "MP4");
						X.Data.SaveAsMkv = false;
						break;

					case QueueProp.PictureResolution:
						X.Picture.Resolution = cboPictureRes.Text;
						break;

					case QueueProp.PictureFrameRate:
						X.Picture.FrameRate = cboPictureFps.Text;
						break;

					case QueueProp.PictureBitDepth:
						X.Picture.BitDepth = Convert.ToInt32(cboPictureBit.Text);
						break;

					case QueueProp.PictureChroma:
						X.Picture.Chroma = Convert.ToInt32(cboPictureYuv.Text);
						break;

					case QueueProp.PictureYadifEnable:
						X.Picture.YadifEnable = chkPictureYadif.Checked;
						break;

					case QueueProp.PictureYadifMode:
						X.Picture.YadifMode = cboPictureYadifMode.SelectedIndex;
						break;

					case QueueProp.PictureYadifField:
						X.Picture.YadifField = cboPictureYadifField.SelectedIndex;
						break;

					case QueueProp.PictureYadifFlag:
						X.Picture.YadifFlag = cboPictureYadifFlag.SelectedIndex;
						break;

					case QueueProp.PictureCopyVideo:
						if (X.Picture.IsHevc)
							X.Picture.IsCopy = chkPictureVideoCopy.Checked;
						break;

					case QueueProp.VideoPreset:
						X.Video.Preset = cboVideoPreset.Text;
						break;

					case QueueProp.VideoTune:
						X.Video.Tune = cboVideoTune.Text;
						break;

					case QueueProp.VideoType:
						X.Video.Type = cboVideoType.SelectedIndex;
						break;

					case QueueProp.VideoValue:
						X.Video.Value = txtVideoValue.Text;
						break;

					case QueueProp.VideoCommand:
						X.Video.Command = txtVideoCmd.Text;
						break;

					case QueueProp.AudioEncoder:
						X.Audio.Encoder = cboAudioEncoder.Text;
						break;

					case QueueProp.AudioBitRate:
						X.Audio.BitRate = cboAudioBit.Text;
						break;

					case QueueProp.AudioFreq:
						X.Audio.Frequency = cboAudioFreq.Text;
						break;

					case QueueProp.AudioChannel:
						X.Audio.Channel = cboAudioChannel.Text;
						break;

					case QueueProp.AudioMerge:
						X.Audio.Merge = chkAudioMerge.Checked;
						break;

					case QueueProp.AudioCommand:
						X.Audio.Command = txtAudioCmd.Text;
						break;

					default:
						break;
				}
			}
		}