summaryrefslogtreecommitdiff
path: root/gtk2_ardour/transcode_video_dialog.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-03-29 12:20:09 +0100
committerRobin Gareus <robin@gareus.org>2013-03-29 12:36:14 +0100
commitdaec8e44d52116d8841cf08954b930142c8dc495 (patch)
treea423c66a1f8667ca69d6fffc01fda27dff800c85 /gtk2_ardour/transcode_video_dialog.h
parent47ee22d91dbfa35b45c7cef8b825b4a7685c71c8 (diff)
vtl: rework import workflow
- do not allow to simply copy the video file - decision to transcode or just reference is made in "transcode dialog" not during file-selection. Only there the actual codec is known and can be judged to be suitable for direct reference - simplify "transcode dialog" - no more buttons for specific actions, drop-down select actions. - increase minimum bitrate for imported file to 500kbit/s
Diffstat (limited to 'gtk2_ardour/transcode_video_dialog.h')
-rw-r--r--gtk2_ardour/transcode_video_dialog.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gtk2_ardour/transcode_video_dialog.h b/gtk2_ardour/transcode_video_dialog.h
index 9d334cf0d2..981079b3a8 100644
--- a/gtk2_ardour/transcode_video_dialog.h
+++ b/gtk2_ardour/transcode_video_dialog.h
@@ -32,6 +32,12 @@
#include "transcode_ffmpeg.h"
+enum VtlTranscodeOption {
+ VTL_IMPORT_NO_VIDEO = 0,
+ VTL_IMPORT_REFERENCE = 1,
+ VTL_IMPORT_TRANSCODED = 2
+};
+
/** @class TranscodeVideoDialog
* @brief dialog-box and controller for importing video-files
*/
@@ -43,6 +49,7 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL
std::string get_filename () { return path_entry.get_text(); }
std::string get_audiofile () { return audiofile; }
+ VtlTranscodeOption import_option ();
private:
void on_show ();
@@ -50,18 +57,16 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL
void abort_clicked ();
void scale_combo_changed ();
void audio_combo_changed ();
+ void video_combo_changed ();
void aspect_checkbox_toggled ();
void bitrate_checkbox_toggled ();
void update_bitrate ();
void launch_audioonly ();
void launch_transcode ();
void launch_extract ();
- void prepare_copy ();
- void launch_copy ();
void dialog_progress_mode ();
bool aborted;
bool pending_audio_extract;
- bool pending_copy_file;
std::string audiofile;
std::string infn;
double m_aspect;
@@ -76,8 +81,6 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL
Gtk::Entry path_entry;
Gtk::Button browse_button;
Gtk::Button transcode_button;
- Gtk::Button copy_button;
- Gtk::Button audio_button;
Gtk::VBox* vbox;
Gtk::Button *cancel_button;
@@ -87,6 +90,7 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL
Gtk::Label progress_label;
Gtk::ProgressBar pbar;
+ Gtk::ComboBoxText video_combo;
Gtk::ComboBoxText scale_combo;
Gtk::CheckButton aspect_checkbox;
Gtk::Adjustment height_adjustment;