]> git.sesse.net Git - vlc/commitdiff
Default transcoding profiles.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 22 Feb 2009 22:04:16 +0000 (23:04 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 22 Feb 2009 22:04:16 +0000 (23:04 +0100)
"H.264 + AAC", "Dirac + AAC", "Theora + Vorbis", "Theora + Flac", "MPEG-4 + AAC", "MPEG-2 + MPGA", "WMV + WMA", "DIV3 + MP3", "Vorbis", "MP3", "AAC",  "FLAC".

Please modify or add iPhone or any other profiles...

modules/gui/qt4/components/sout/profile_selector.cpp
modules/gui/qt4/components/sout/profiles.hpp [new file with mode: 0644]

index 4893c17bbce56b82dea53b9025547cef4136a571..f84f809682e139ec390396e349b52287d368d88e 100644 (file)
@@ -1,5 +1,29 @@
+/*****************************************************************************
+ * profile_selector.cpp : A small profile selector and editor
+ ****************************************************************************
+ * Copyright (C) 2009 the VideoLAN team
+ * $Id$
+ *
+ * Authors: Jean-Baptiste Kempf <jb@videolan.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
 
 #include "components/sout/profile_selector.hpp"
+#include "components/sout/profiles.hpp"
 #include "dialogs/sout.hpp"
 
 #include <QHBoxLayout>
@@ -62,6 +86,14 @@ inline void VLCProfileSelector::fillProfilesCombo()
         profileBox->addItem( settings.value( "Profile-Name" ).toString(),
                 settings.value( "Profile-Value" ) );
     }
+    if( i_size == 0 )
+    {
+        for( int i = 0; i < NB_PROFILE; i++ )
+        {
+            profileBox->addItem( video_profile_name_list[i],
+                                 video_profile_value_list[i] );
+        }
+    }
     settings.endArray();
 }
 
diff --git a/modules/gui/qt4/components/sout/profiles.hpp b/modules/gui/qt4/components/sout/profiles.hpp
new file mode 100644 (file)
index 0000000..030530e
--- /dev/null
@@ -0,0 +1,32 @@
+#define NB_PROFILE 12
+
+static const char *const video_profile_name_list[] = {
+    "Video - H.264 + AAC",
+    "Video - Dirac + AAC",
+    "Video - Theora + Vorbis",
+    "Video - Theora + Flac",
+    "Video - MPEG-4 + AAC",
+    "Video - MPEG-2 + MPGA",
+    "Video - WMV + WMA",
+    "Video - DIV3 + MP3",
+    "Audio - Vorbis",
+    "Audio - MP3",
+    "Audio - AAC",
+    "Audio - FLAC",
+};
+static const char *const video_profile_value_list[] = {
+    "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",
+    "ogg;1;1;0;theo;800;1;0;0;0;flac;128;2;44100;0;0",
+    "mp4;1;1;0;mp4v;800;1;0;0;0;mp4a;128;2;44100;0;0",
+    "ts;1;1;0;mp2v;800;1;0;0;0;mpga;128;2;44100;0;0",
+    "asf;1;1;0;WMV2;800;1;0;0;0;wma;128;2;44100;0;0",
+    "asf;1;1;0;DIV3;800;1;0;0;0;mp3;128;2;44100;0;0",
+    "ogg;0;1;0;0;800;1;0;0;0;vorb;128;2;44100;0;0",
+    "raw;0;1;0;0;800;1;0;0;0;mp3;128;2;44100;0;0",
+    "mp4;0;1;0;0;800;1;0;0;0;mp4a;128;2;44100;0;0",
+    "raw;0;1;0;0;800;1;0;0;0;flac;128;2;44100;0;0",
+};
+
+