Ardour  9.0-pre0-582-g084a23a80d
transcode_video_dialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 #pragma once
19 
20 #include <string>
21 
22 #include <gtkmm/adjustment.h>
23 #include <gtkmm/box.h>
24 #include <gtkmm/button.h>
25 #include <gtkmm/checkbutton.h>
26 #include <gtkmm/comboboxtext.h>
27 #include <gtkmm/entry.h>
28 #include <gtkmm/label.h>
29 #include <gtkmm/progressbar.h>
30 #include <gtkmm/spinbutton.h>
31 
32 #include "ardour/template_utils.h"
33 #include "ardour/types.h"
34 #include "ardour_dialog.h"
35 
36 #include "transcode_ffmpeg.h"
37 
42 };
43 
48 {
49 public:
52 
54 
55  std::string get_filename ()
56  {
57  return path_entry.get_text ();
58  }
59 
60  std::string get_audiofile ()
61  {
62  return audiofile;
63  }
64 
65  bool detect_ltc ()
66  {
67  return ltc_detect.get_active ();
68  }
69 
70  void on_response (int response_id)
71  {
72  Gtk::Dialog::on_response (response_id);
73  }
74 
75 private:
76  void on_show ();
78  void abort_clicked ();
84  void update_bitrate ();
87  void launch_extract ();
89  void finished (int);
91 
92  bool aborted;
94  std::string audiofile;
95  std::string infn;
96  double m_aspect;
97 
99 
101 
106 
110 
114 
126 };
127 
virtual void on_response(int response_id)
This is a default handler for the signal signal_response().
Glib::ustring get_text() const
bool get_active() const
wrapper around ffmpeg and ffprobe command-line utils
dialog-box and controller for importing video-files
TranscodeVideoDialog(ARDOUR::Session *, std::string)
VtlTranscodeOption import_option()
Gtk::ComboBoxText scale_combo
Gtk::Adjustment bitrate_adjustment
void on_show()
This is a default handler for the signal signal_show().
Gtk::CheckButton debug_checkbox
void bitrate_checkbox_toggled()
Gtk::ComboBoxText video_combo
Gtk::ComboBoxText audio_combo
PBD::Signal< void()> StartNextStage
void update_progress(ARDOUR::samplecnt_t, ARDOUR::samplecnt_t)
void on_response(int response_id)
This is a default handler for the signal signal_response().
Gtk::CheckButton bitrate_checkbox
Gtk::Adjustment height_adjustment
TranscodeFfmpeg * transcoder
Gtk::CheckButton aspect_checkbox
void aspect_checkbox_toggled()
Temporal::samplecnt_t samplecnt_t
VtlTranscodeOption
@ VTL_IMPORT_REFERENCE
@ VTL_IMPORT_NO_VIDEO
@ VTL_IMPORT_TRANSCODED