]> git.sesse.net Git - vlc/commitdiff
qt4: add vp80/webm to profiles
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 5 Jun 2010 11:18:44 +0000 (14:18 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sat, 5 Jun 2010 11:25:06 +0000 (14:25 +0300)
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.

modules/gui/qt4/components/sout/profile_selector.cpp
modules/gui/qt4/components/sout/profiles.hpp
modules/gui/qt4/components/sout/sout_widgets.cpp
modules/gui/qt4/ui/profiles.ui

index ef8d1d3c79baeef984b8252a6769d5c8cfcf1409..e279c6bf3dfb330be87826d1bfbe75158281427e 100644 (file)
@@ -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" )
index 9c4386dafd99d5e9cd03c02765bc4aa4b8abcded..93029000704ab59126c10e98d665c2a95d579fe7 100644 (file)
@@ -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",
index 497ea6ef494d43d381de464a7a3513fc625897e1..e28ae3e8f46889fcc510cb45370efd8f58f39efd 100644 (file)
@@ -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();
 }
index e40970992a1b7771e912123e863af370f74429e9..2fc8a8788f4ca125ce47ed4e1772ae2d57a3b82f 100644 (file)
         </widget>
        </item>
        <item row="2" column="1">
+        <widget class="QRadioButton" name="WEBMux">
+         <property name="text">
+          <string>Webm</string>
+         </property>
+        </widget>
+       </item>
+       <item row="6" column="0">
         <widget class="QRadioButton" name="ASFMux">
          <property name="text">
           <string>ASF/WMV</string>