Commit 75a5efb2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: provide a way to dump from the convert dialog.

parent 97513e31
...@@ -80,11 +80,14 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf, ...@@ -80,11 +80,14 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
QGridLayout *settingLayout = new QGridLayout( settingBox ); QGridLayout *settingLayout = new QGridLayout( settingBox );
profile = new VLCProfileSelector( this ); profile = new VLCProfileSelector( this );
settingLayout->addWidget( profile, 0, 0 ); settingLayout->addWidget( profile, 0, 0, 1, -1 );
deinterBox = new QCheckBox( qtr( "Deinterlace" ) ); deinterBox = new QCheckBox( qtr( "Deinterlace" ) );
settingLayout->addWidget( deinterBox, 1, 0 ); settingLayout->addWidget( deinterBox, 1, 0 );
dumpBox = new QCheckBox( qtr( "Dump raw input" ) );
settingLayout->addWidget( dumpBox, 1, 1 );
mainLayout->addWidget( settingBox, 3, 0, 1, -1 ); mainLayout->addWidget( settingBox, 3, 0, 1, -1 );
/* Buttons */ /* Buttons */
...@@ -119,16 +122,23 @@ void ConvertDialog::close() ...@@ -119,16 +122,23 @@ void ConvertDialog::close()
{ {
hide(); hide();
mrl = "sout=#" + profile->getTranscode(); if( dumpBox->isChecked() )
if( deinterBox->isChecked() )
{ {
mrl.remove( '}' ); mrl = "demux=dump :demuxdump-file" + fileLine->text();
mrl += ",deinterlace}";
} }
mrl += ":duplicate{"; else
if( displayBox->isChecked() ) mrl += "dst=display,"; {
mrl += "dst=std{access=file,mux=" + profile->getMux() + 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() + "'}"; ",dst='" + fileLine->text() + "'}";
}
msg_Dbg( p_intf, "Transcode MRL: %s", qtu( mrl ) ); msg_Dbg( p_intf, "Transcode MRL: %s", qtu( mrl ) );
accept(); accept();
......
...@@ -42,7 +42,7 @@ public: ...@@ -42,7 +42,7 @@ public:
private: private:
QLineEdit *fileLine; QLineEdit *fileLine;
QCheckBox *displayBox, *deinterBox; QCheckBox *displayBox, *deinterBox, *dumpBox;
VLCProfileSelector *profile; VLCProfileSelector *profile;
QString mrl; QString mrl;
private slots: private slots:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment