From: Ilkka Ollakka Date: Sat, 5 Jun 2010 11:18:44 +0000 (+0300) Subject: qt4: add vp80/webm to profiles X-Git-Tag: 1.2.0-pre1~6300 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e8b350df4f1985fab19f797f0fb926c21bff18b8;p=vlc qt4: add vp80/webm to profiles VP8/webm profile defaults to 720p, which could be reasonable default imo. Not sure if people want to it to default to same resolution as input is. --- diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp index ef8d1d3c79..e279c6bf3d 100644 --- a/modules/gui/qt4/components/sout/profile_selector.cpp +++ b/modules/gui/qt4/components/sout/profile_selector.cpp @@ -269,6 +269,7 @@ inline void VLCProfileEditor::registerCodecs() ADD_VCODEC( "DIVX 3" , "DIV3" ) ADD_VCODEC( "H-263", "H263" ) ADD_VCODEC( "H-264", "h264" ) + ADD_VCODEC( "VP8", "VP80" ) ADD_VCODEC( "WMV1", "WMV1" ) ADD_VCODEC( "WMV2" , "WMV2" ) ADD_VCODEC( "M-JPEG", "MJPG" ) @@ -323,6 +324,7 @@ void VLCProfileEditor::fillProfile( const QString& qs ) #define CHECKMUX( button, text) if( text == mux ) ui.button->setChecked( true ); else CHECKMUX( PSMux, "ps" ) CHECKMUX( TSMux, "ts" ) + CHECKMUX( WEBMux, "webm" ) CHECKMUX( MPEG1Mux, "mpeg1" ) CHECKMUX( OggMux, "ogg" ) CHECKMUX( ASFMux, "asf" ) @@ -412,6 +414,7 @@ QString VLCProfileEditor::transcodeValue() #define SMUX( x, txt ) if( ui.x->isChecked() ) muxValue = txt; else SMUX( PSMux, "ps" ) SMUX( TSMux, "ts" ) + SMUX( WEBMux, "webm" ) SMUX( MPEG1Mux, "mpeg1" ) SMUX( OggMux, "ogg" ) SMUX( ASFMux, "asf" ) diff --git a/modules/gui/qt4/components/sout/profiles.hpp b/modules/gui/qt4/components/sout/profiles.hpp index 9c4386dafd..9302900070 100644 --- a/modules/gui/qt4/components/sout/profiles.hpp +++ b/modules/gui/qt4/components/sout/profiles.hpp @@ -1,8 +1,9 @@ #define NB_PROFILE \ (sizeof(video_profile_value_list)/sizeof(video_profile_value_list[0])) -static const char video_profile_name_list[][32] = { +static const char video_profile_name_list[][35] = { "Video - H.264 + AAC (MP4)", + "Video - 720p VP80 + Vorbis (Webm)", "Video - H.264 + AAC (TS)", "Video - Dirac + AAC (TS)", "Video - Theora + Vorbis (OGG)", @@ -17,13 +18,14 @@ static const char video_profile_name_list[][32] = { "Audio - CD", }; -static const char video_profile_value_list[][48] = { +static const char video_profile_value_list[][53] = { /* Container(string), transcode video(bool), transcode audio(bool), */ /* use subtitles(bool), video codec(string), video bitrate(integer), */ /* scale(float), fps(float), width(integer, height(integer), */ /* audio codec(string), audio bitrate(integer), channels(integer), */ /* samplerate(integer), subtitle codec(string), subtitle overlay(bool) */ - "mp4;1;1;0;h264;0;0;0;0;0;mp4a;128;2;44100;0;0", + "mp4;1;1;0;h264;0;0;0;0;0;mp4a;128;2;44100;0;1", + "webm;1;1;0;VP80;2000;0;0;720;0;vorb;128;2;44100;0;1", "ts;1;1;0;h264;800;1;0;0;0;mp4a;128;2;44100;0;0", "ts;1;1;0;drac;800;1;0;0;0;mp4a;128;2;44100;0;0", "ogg;1;1;0;theo;800;1;0;0;0;vorb;128;2;44100;0;0", diff --git a/modules/gui/qt4/components/sout/sout_widgets.cpp b/modules/gui/qt4/components/sout/sout_widgets.cpp index 497ea6ef49..e28ae3e8f4 100644 --- a/modules/gui/qt4/components/sout/sout_widgets.cpp +++ b/modules/gui/qt4/components/sout/sout_widgets.cpp @@ -136,7 +136,7 @@ QString FileDestBox::getMRL( const QString& mux ) void FileDestBox::fileBrowse() { QString fileName = QFileDialog::getSaveFileName( this, qtr( "Save file..." ), - "", qtr( "Containers (*.ps *.ts *.mpg *.ogg *.asf *.mp4 *.mov *.wav *.raw *.flv)" ) ); + "", qtr( "Containers (*.ps *.ts *.mpg *.ogg *.asf *.mp4 *.mov *.wav *.raw *.flv *.webm)" ) ); fileEdit->setText( toNativeSeparators( fileName ) ); emit mrlUpdated(); } diff --git a/modules/gui/qt4/ui/profiles.ui b/modules/gui/qt4/ui/profiles.ui index e40970992a..2fc8a8788f 100644 --- a/modules/gui/qt4/ui/profiles.ui +++ b/modules/gui/qt4/ui/profiles.ui @@ -74,6 +74,13 @@ + + + Webm + + + + ASF/WMV