Exemplo n.º 1
0
        private void UpdateVideoSelection()
        {
            bool hasVideoOptions = VideoOutputs.Items.Count > 0;

            if (hasVideoOptions)
            {
                selectedVideo = (VideoOutput)VideoOutputs.SelectedItem;
                UpdateSelectedOutput(GetVideoLabel());
            }
        }
Exemplo n.º 2
0
        private string GetVideoLabel()
        {
            VideoOutput selectedItem = (VideoOutput)VideoOutputs.SelectedItem;

            if (selectedItem != null)
            {
                return("Video - " + selectedItem.Extension + ", " + selectedItem.Resolution);
            }
            else
            {
                return("");
            }
        }
Exemplo n.º 3
0
        private string GenerateQuery(string fileName)
        {
            string query;

            if (isAudioOnly)
            {
                string extension = (string)AudioOutputs.SelectedValue;
                query = "-x --audio-format " + extension + " --audio-quality 0 -i -o " + fileName + extension + " " + urlInput.Text;
            }
            else
            {
                VideoOutput video = VideoOutputs.SelectedValue as VideoOutput;
                query = "-f " + video.FormatCode + " " + urlInput.Text +
                        " -o \"" + fileName + "\"";
            }
            return(query);
        }
Exemplo n.º 4
0
 private void ClearOptions()
 {
     VideoOutputs.Items.Clear();
     ClearSelectedOutput();
     selectedVideo = null;
 }
Exemplo n.º 5
0
        private string GetVideoFilter()
        {
            VideoOutput video = VideoOutputs.SelectedValue as VideoOutput;

            return("Video file (*." + video.Extension + ")|*." + video.Extension);
        }