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
45
class
ExportVideoDialog
:
public
ArdourDialog
,
public
PBD::ScopedConnectionList
46
{
47
public
:
48
ExportVideoDialog
();
49
~ExportVideoDialog
();
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
68
void
set_original_file_information
();
69
void
update_progress
(
ARDOUR::samplecnt_t
,
ARDOUR::samplecnt_t
);
70
gint
audio_progress_display
();
71
72
void
open_outfn_dialog
();
73
void
open_invid_dialog
();
74
75
bool
_aborted
;
76
bool
_normalize
;
77
78
std::shared_ptr<ARDOUR::ExportStatus>
status
;
79
80
TimeSelection
_export_range
;
81
sigc::connection
_audio_progress_connection
;
82
float
_previous_progress
;
83
TranscodeFfmpeg
*
_transcoder
;
84
std::string
_insnd
;
85
86
Gtk::Label
outfn_path_label
;
87
Gtk::Entry
outfn_path_entry
;
88
Gtk::Button
outfn_browse_button
;
89
Gtk::Label
invid_path_label
;
90
Gtk::Entry
invid_path_entry
;
91
Gtk::Button
invid_browse_button
;
92
Gtk::ComboBoxText
insnd_combo
;
93
Gtk::Button
transcode_button
;
94
95
Gtk::VBox
*
vbox
;
96
Gtk::Button
*
cancel_button
;
97
Gtk::Button
abort_button
;
98
99
Gtk::VBox
*
progress_box
;
100
Gtk::ProgressBar
pbar
;
101
102
Gtk::ComboBoxText
audio_bitrate_combo
;
103
Gtk::ComboBoxText
audio_sample_rate_combo
;
104
105
Gtk::CheckButton
normalize_checkbox
;
106
Gtk::CheckButton
copy_video_codec_checkbox
;
107
Gtk::CheckButton
meta_checkbox
;
108
Gtk::CheckButton
debug_checkbox
;
109
};
110
111
#endif
/* __gtk_ardour_export_video_dialog_h__ */
types.h
ardour_dialog.h
checkbutton.h
ArdourDialog
Definition:
ardour_dialog.h:41
ExportVideoDialog
dialog box and controller for video-file export
Definition:
export_video_dialog.h:46
ExportVideoDialog::outfn_browse_button
Gtk::Button outfn_browse_button
Definition:
export_video_dialog.h:88
ExportVideoDialog::invid_path_label
Gtk::Label invid_path_label
Definition:
export_video_dialog.h:89
ExportVideoDialog::vbox
Gtk::VBox * vbox
Definition:
export_video_dialog.h:95
ExportVideoDialog::ExportVideoDialog
ExportVideoDialog()
ExportVideoDialog::invid_path_entry
Gtk::Entry invid_path_entry
Definition:
export_video_dialog.h:90
ExportVideoDialog::debug_checkbox
Gtk::CheckButton debug_checkbox
Definition:
export_video_dialog.h:108
ExportVideoDialog::abort_button
Gtk::Button abort_button
Definition:
export_video_dialog.h:97
ExportVideoDialog::_insnd
std::string _insnd
Definition:
export_video_dialog.h:84
ExportVideoDialog::_normalize
bool _normalize
Definition:
export_video_dialog.h:76
ExportVideoDialog::meta_checkbox
Gtk::CheckButton meta_checkbox
Definition:
export_video_dialog.h:107
ExportVideoDialog::normalize_checkbox
Gtk::CheckButton normalize_checkbox
Definition:
export_video_dialog.h:105
ExportVideoDialog::open_invid_dialog
void open_invid_dialog()
ExportVideoDialog::set_state
void set_state(const XMLNode &)
ExportVideoDialog::_previous_progress
float _previous_progress
Definition:
export_video_dialog.h:82
ExportVideoDialog::abort_clicked
void abort_clicked()
ExportVideoDialog::set_original_file_information
void set_original_file_information()
ExportVideoDialog::open_outfn_dialog
void open_outfn_dialog()
ExportVideoDialog::get_state
XMLNode & get_state() const
ExportVideoDialog::audio_sample_rate_combo
Gtk::ComboBoxText audio_sample_rate_combo
Definition:
export_video_dialog.h:103
ExportVideoDialog::progress_box
Gtk::VBox * progress_box
Definition:
export_video_dialog.h:99
ExportVideoDialog::audio_bitrate_combo
Gtk::ComboBoxText audio_bitrate_combo
Definition:
export_video_dialog.h:102
ExportVideoDialog::status
std::shared_ptr< ARDOUR::ExportStatus > status
Definition:
export_video_dialog.h:78
ExportVideoDialog::get_exported_filename
std::string get_exported_filename()
Definition:
export_video_dialog.h:51
ExportVideoDialog::~ExportVideoDialog
~ExportVideoDialog()
ExportVideoDialog::_transcoder
TranscodeFfmpeg * _transcoder
Definition:
export_video_dialog.h:83
ExportVideoDialog::copy_video_codec_checkbox
Gtk::CheckButton copy_video_codec_checkbox
Definition:
export_video_dialog.h:106
ExportVideoDialog::insnd_combo
Gtk::ComboBoxText insnd_combo
Definition:
export_video_dialog.h:92
ExportVideoDialog::outfn_path_entry
Gtk::Entry outfn_path_entry
Definition:
export_video_dialog.h:87
ExportVideoDialog::finished
void finished(int)
ExportVideoDialog::_aborted
bool _aborted
Definition:
export_video_dialog.h:75
ExportVideoDialog::outfn_path_label
Gtk::Label outfn_path_label
Definition:
export_video_dialog.h:86
ExportVideoDialog::cancel_button
Gtk::Button * cancel_button
Definition:
export_video_dialog.h:96
ExportVideoDialog::encode_video
void encode_video()
ExportVideoDialog::invid_browse_button
Gtk::Button invid_browse_button
Definition:
export_video_dialog.h:91
ExportVideoDialog::_audio_progress_connection
sigc::connection _audio_progress_connection
Definition:
export_video_dialog.h:81
ExportVideoDialog::apply_state
void apply_state(TimeSelection &tme, bool range)
ExportVideoDialog::transcode_button
Gtk::Button transcode_button
Definition:
export_video_dialog.h:93
ExportVideoDialog::pbar
Gtk::ProgressBar pbar
Definition:
export_video_dialog.h:100
ExportVideoDialog::launch_export
void launch_export()
ExportVideoDialog::audio_progress_display
gint audio_progress_display()
ExportVideoDialog::_export_range
TimeSelection _export_range
Definition:
export_video_dialog.h:80
ExportVideoDialog::update_progress
void update_progress(ARDOUR::samplecnt_t, ARDOUR::samplecnt_t)
Gtk::Button
Definition:
tk/ytkmm/ytkmm/gtkmm/button.h:60
Gtk::CheckButton
Definition:
checkbutton.h:56
Gtk::ComboBoxText
Definition:
comboboxtext.h:55
Gtk::Entry
Definition:
entry.h:101
Gtk::Entry::get_text
Glib::ustring get_text() const
Gtk::Label
Definition:
label.h:55
Gtk::ProgressBar
Definition:
progressbar.h:109
Gtk::VBox
Definition:
tk/ytkmm/ytkmm/gtkmm/box.h:505
PBD::ScopedConnectionList
Definition:
signals.h:197
TimeSelection
Definition:
time_selection.h:31
TranscodeFfmpeg
wrapper around ffmpeg and ffprobe command-line utils
Definition:
transcode_ffmpeg.h:35
XMLNode
Definition:
xml++.h:114
comboboxtext.h
entry.h
export_status.h
label.h
ARDOUR::samplecnt_t
Temporal::samplecnt_t samplecnt_t
Definition:
ardour/ardour/types.h:89
progressbar.h
time_selection.h
box.h
button.h
transcode_ffmpeg.h
gtk2_ardour
export_video_dialog.h
Generated on Mon Mar 10 2025 20:26:21 for Ardour by
1.9.1