summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_video_dialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-03-27 16:04:56 +0100
committerRobin Gareus <robin@gareus.org>2013-03-27 16:04:56 +0100
commitba7def458eacf300b24819b3e017e5a1b1daa5cd (patch)
tree380473d4be43c6aef733ace155295a6bb08ff3f6 /gtk2_ardour/export_video_dialog.cc
parentbb9847abcd006f4348f0a503fc9309af71f65ad5 (diff)
messages related to video-server & ffmpeg external binaries
Diffstat (limited to 'gtk2_ardour/export_video_dialog.cc')
-rw-r--r--gtk2_ardour/export_video_dialog.cc24
1 files changed, 13 insertions, 11 deletions
diff --git a/gtk2_ardour/export_video_dialog.cc b/gtk2_ardour/export_video_dialog.cc
index 89693aee8e..104a1c5c6d 100644
--- a/gtk2_ardour/export_video_dialog.cc
+++ b/gtk2_ardour/export_video_dialog.cc
@@ -92,7 +92,6 @@ ExportVideoDialog::ExportVideoDialog (PublicEditor& ed, Session* s)
{
set_session (s);
- transcoder = 0;
set_name ("ExportVideoDialog");
set_position (Gtk::WIN_POS_MOUSE);
@@ -105,15 +104,18 @@ ExportVideoDialog::ExportVideoDialog (PublicEditor& ed, Session* s)
VBox* options_box = manage (new VBox);
HBox* path_hbox;
-#if 0
- l = manage (new Label (_("<b>Export Video File</b>"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
- l->set_use_markup ();
- vbox->pack_start (*l, false, false);
- l = manage (new Label (_("The file-format is determined by the extension you choose for the output file."), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
- l->set_size_request(700,-1);
- l->set_line_wrap();
- vbox->pack_start (*l, false, false, 8);
-#endif
+ /* check if ffmpeg can be found */
+ transcoder = new TranscodeFfmpeg("");
+ if (!transcoder->ffexec_ok()) {
+ l = manage (new Label (_("No ffprobe or ffmpeg executables could be found on this system. Video Export is not possible until you install those tools. See the Log widow for more information."), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
+ l->set_line_wrap();
+ vbox->pack_start (*l, false, false, 8);
+ get_vbox()->pack_start (*vbox, false, false);
+ add_button (Stock::OK, RESPONSE_CANCEL);
+ show_all_children ();
+ return;
+ }
+ delete transcoder; transcoder = 0;
l = manage (new Label (_("<b>Files:</b>"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
l->set_use_markup ();
@@ -538,7 +540,7 @@ ExportVideoDialog::encode_pass (int pass)
*/
transcoder = new TranscodeFfmpeg(invid);
if (!transcoder->ffexec_ok()) {
- warning << _("No ffprobe or ffmpeg executables could be found on this system. Transcoding is not possible until you install those tools.") << endmsg;
+ /* ffmpeg binary was not found. TranscodeFfmpeg prints a warning */
unlink (insnd.c_str());
Gtk::Dialog::response(RESPONSE_CANCEL);
return;