Ardour  8.12
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 #ifndef __gtk_ardour_transcode_video_dialog_h__
19 #define __gtk_ardour_transcode_video_dialog_h__
20 
21 #include <string>
22 
23 #include <gtkmm/adjustment.h>
24 #include <gtkmm/box.h>
25 #include <gtkmm/button.h>
26 #include <gtkmm/checkbutton.h>
27 #include <gtkmm/comboboxtext.h>
28 #include <gtkmm/entry.h>
29 #include <gtkmm/label.h>
30 #include <gtkmm/progressbar.h>
31 #include <gtkmm/spinbutton.h>
32 
33 #include "ardour/template_utils.h"
34 #include "ardour/types.h"
35 #include "ardour_dialog.h"
36 
37 #include "transcode_ffmpeg.h"
38 
43 };
44 
49 {
50 public:
53 
55 
56  std::string get_filename ()
57  {
58  return path_entry.get_text ();
59  }
60 
61  std::string get_audiofile ()
62  {
63  return audiofile;
64  }
65 
66  bool detect_ltc ()
67  {
68  return ltc_detect.get_active ();
69  }
70 
71  void on_response (int response_id)
72  {
73  Gtk::Dialog::on_response (response_id);
74  }
75 
76 private:
77  void on_show ();
79  void abort_clicked ();
85  void update_bitrate ();
88  void launch_extract ();
90  void finished (int);
92 
93  bool aborted;
95  std::string audiofile;
96  std::string infn;
97  double m_aspect;
98 
99  PBD::Signal0<void> StartNextStage;
100 
102 
107 
111 
115 
127 };
128 
129 #endif /* __gtk_ardour_transcode_video_dialog_h__ */
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::Signal0< 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