Ardour  8.12
export_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_export_video_dialog_h__
19 #define __gtk_ardour_export_video_dialog_h__
20 
21 #include <string>
22 
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 
31 #include "ardour/export_status.h"
32 #include "ardour/types.h"
33 
34 #include "ardour_dialog.h"
35 #include "time_selection.h"
36 #include "transcode_ffmpeg.h"
37 
46 {
47 public:
50 
51  std::string get_exported_filename ()
52  {
53  return outfn_path_entry.get_text ();
54  }
55 
56  void apply_state (TimeSelection& tme, bool range);
57 
58  XMLNode& get_state () const;
59  void set_state (const XMLNode&);
60 
61 private:
62 
63  void abort_clicked ();
64  void launch_export ();
65  void encode_video ();
66  void finished (int);
67 
71 
74 
75  bool _aborted;
76  bool _normalize;
77 
78  std::shared_ptr<ARDOUR::ExportStatus> status;
79 
81  sigc::connection _audio_progress_connection;
84  std::string _insnd;
85 
94 
98 
101 
104 
109 };
110 
111 #endif /* __gtk_ardour_export_video_dialog_h__ */
dialog box and controller for video-file export
Gtk::Button outfn_browse_button
Gtk::CheckButton debug_checkbox
Gtk::CheckButton meta_checkbox
Gtk::CheckButton normalize_checkbox
void open_invid_dialog()
void set_state(const XMLNode &)
void set_original_file_information()
void open_outfn_dialog()
XMLNode & get_state() const
Gtk::ComboBoxText audio_sample_rate_combo
Gtk::ComboBoxText audio_bitrate_combo
std::shared_ptr< ARDOUR::ExportStatus > status
std::string get_exported_filename()
TranscodeFfmpeg * _transcoder
Gtk::CheckButton copy_video_codec_checkbox
Gtk::ComboBoxText insnd_combo
void finished(int)
Gtk::Button * cancel_button
Gtk::Button invid_browse_button
sigc::connection _audio_progress_connection
void apply_state(TimeSelection &tme, bool range)
Gtk::Button transcode_button
Gtk::ProgressBar pbar
gint audio_progress_display()
TimeSelection _export_range
void update_progress(ARDOUR::samplecnt_t, ARDOUR::samplecnt_t)
Glib::ustring get_text() const
wrapper around ffmpeg and ffprobe command-line utils
Definition: xml++.h:114
Temporal::samplecnt_t samplecnt_t