move video export info to online-manual, allow to open it.
authorRobin Gareus <robin@gareus.org>
Wed, 19 Jun 2013 18:26:53 +0000 (20:26 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 19 Jun 2013 18:26:53 +0000 (20:26 +0200)
gtk2_ardour/editor_videotimeline.cc
gtk2_ardour/export_video_infobox.cc
gtk2_ardour/export_video_infobox.h

index fa42211d19a855d08a8b40b8748daad4d1aa2123..7395d767c77083c7697d177e0792b8a561d956b4 100644 (file)
@@ -36,6 +36,7 @@
 #include "export_video_infobox.h"
 #include "interthread_progress_window.h"
 
+#include "pbd/openuri.h"
 #include "i18n.h"
 
 using namespace std;
@@ -125,10 +126,17 @@ Editor::export_video ()
 {
        if (ARDOUR::Config->get_show_video_export_info()) {
                ExportVideoInfobox infobox (_session);
-               infobox.run();
+               Gtk::ResponseType rv = (Gtk::ResponseType) infobox.run();
                if (infobox.show_again()) {
                        ARDOUR::Config->set_show_video_export_info(false);
                }
+               switch (rv) {
+                       case GTK_RESPONSE_YES:
+                               PBD::open_uri (ARDOUR::Config->get_reference_manual_url() + "/video-timeline/operations/#export");
+                               break;
+                       default:
+                               break;
+               }
        }
        ExportVideoDialog dialog (*this, _session);
        Gtk::ResponseType r = (Gtk::ResponseType) dialog.run();
index 92180462d4bf21ff3749a07c50b60aa04747afd0..fbe28bd8214cd180f539d35a4439e59499355e1d 100644 (file)
@@ -43,7 +43,11 @@ ExportVideoInfobox::ExportVideoInfobox (Session* s)
        l = manage (new Label (_("<b>Video Export Info</b>"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
        l->set_use_markup ();
        vbox->pack_start (*l, false, true);
-       l = manage (new Label (_("Ardour video export is not recommended for mastering!\nWhile 'ffmpeg' (which is used by ardour) can produce high-quality files, this export lacks the possibility to tweak many settings. We recommend to use 'winff', 'devede' or 'dvdauthor' to mux & master. Nevertheless this video-export comes in handy to do quick snapshots, intermediates, dailies or online videos.\n\nThe soundtrack is created from the master-bus of the current Ardour session.\n\nThe video soure defaults to the file used in the video timeline, which may not the best quality to start with, you should the original video file.\n\nIf the export-range is longer than the original video, black video frames are prefixed and/or appended. This process may fail with non-standard pixel-aspect-ratios.\n\nThe file-format is determined by the extension that you choose for the output file (.avi, .mov, .flv, .ogv,...)\nNote: not all combinations of format+codec+settings produce files which are according so spec. e.g. flv files require sample-rates of 22.1kHz or 44.1kHz, mpeg containers can not be used with ac3 audio-codec, etc. If in doubt, use one of the built-in presets."), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
+       l = manage (new Label (
+                               string_compose(
+                               _("Video encoding is a non-trivial task with many details.\n\nPlease see the manual at %1/video-timeline/operations/#export.\n\nOpen Manual in Browser? "),
+                               Config->get_reference_manual_url()
+                               ), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
        l->set_size_request(700,-1);
        l->set_line_wrap();
        vbox->pack_start (*l, false, true,4);
@@ -56,7 +60,8 @@ ExportVideoInfobox::ExportVideoInfobox (Session* s)
 
        showagain_checkbox.set_active(false);
        show_all_children ();
-       add_button (Stock::OK, RESPONSE_ACCEPT);
+       add_button (Stock::YES, RESPONSE_YES);
+       add_button (Stock::NO, RESPONSE_NO);
 }
 
 ExportVideoInfobox::~ExportVideoInfobox ()
index 6bd6c64533e1c9235f69e7eb5a0e2f6cbfe2b3cb..d3dadf1c2a09aef783d04a40f2f5306be5b97aaf 100644 (file)
@@ -38,7 +38,6 @@ class ExportVideoInfobox : public ArdourDialog
        bool show_again () { return showagain_checkbox.get_active(); }
 
   private:
-       //void on_show ();
        Gtk::CheckButton showagain_checkbox;
 };