[vlc-devel] commit: Qt: provide a way to dump from the convert dialog. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sun Mar 15 03:07:36 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Mar 15 03:07:14 2009 +0100| [75a5efb2f7138221593357954e3bd4dde0b88993] | committer: Jean-Baptiste Kempf
Qt: provide a way to dump from the convert dialog.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=75a5efb2f7138221593357954e3bd4dde0b88993
---
modules/gui/qt4/dialogs/convert.cpp | 26 ++++++++++++++++++--------
modules/gui/qt4/dialogs/convert.hpp | 2 +-
2 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/modules/gui/qt4/dialogs/convert.cpp b/modules/gui/qt4/dialogs/convert.cpp
index 4ba8894..bad5181 100644
--- a/modules/gui/qt4/dialogs/convert.cpp
+++ b/modules/gui/qt4/dialogs/convert.cpp
@@ -80,11 +80,14 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
QGridLayout *settingLayout = new QGridLayout( settingBox );
profile = new VLCProfileSelector( this );
- settingLayout->addWidget( profile, 0, 0 );
+ settingLayout->addWidget( profile, 0, 0, 1, -1 );
deinterBox = new QCheckBox( qtr( "Deinterlace" ) );
settingLayout->addWidget( deinterBox, 1, 0 );
+ dumpBox = new QCheckBox( qtr( "Dump raw input" ) );
+ settingLayout->addWidget( dumpBox, 1, 1 );
+
mainLayout->addWidget( settingBox, 3, 0, 1, -1 );
/* Buttons */
@@ -119,16 +122,23 @@ void ConvertDialog::close()
{
hide();
- mrl = "sout=#" + profile->getTranscode();
- if( deinterBox->isChecked() )
+ if( dumpBox->isChecked() )
{
- mrl.remove( '}' );
- mrl += ",deinterlace}";
+ mrl = "demux=dump :demuxdump-file" + fileLine->text();
}
- mrl += ":duplicate{";
- if( displayBox->isChecked() ) mrl += "dst=display,";
- mrl += "dst=std{access=file,mux=" + profile->getMux() +
+ else
+ {
+ mrl = "sout=#" + profile->getTranscode();
+ if( deinterBox->isChecked() )
+ {
+ mrl.remove( '}' );
+ mrl += ",deinterlace}";
+ }
+ mrl += ":duplicate{";
+ if( displayBox->isChecked() ) mrl += "dst=display,";
+ mrl += "dst=std{access=file,mux=" + profile->getMux() +
",dst='" + fileLine->text() + "'}";
+ }
msg_Dbg( p_intf, "Transcode MRL: %s", qtu( mrl ) );
accept();
diff --git a/modules/gui/qt4/dialogs/convert.hpp b/modules/gui/qt4/dialogs/convert.hpp
index f0854d0..112c877 100644
--- a/modules/gui/qt4/dialogs/convert.hpp
+++ b/modules/gui/qt4/dialogs/convert.hpp
@@ -42,7 +42,7 @@ public:
private:
QLineEdit *fileLine;
- QCheckBox *displayBox, *deinterBox;
+ QCheckBox *displayBox, *deinterBox, *dumpBox;
VLCProfileSelector *profile;
QString mrl;
private slots:
More information about the vlc-devel
mailing list