[vlc-devel] commit: Default transcoding profiles. (Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Feb 22 23:08:57 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb 22 23:04:16 2009 +0100| [3eaf01d29351ad0f23e94dd58b16cd517c6e981e] | committer: Jean-Baptiste Kempf 

Default transcoding profiles.

"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...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3eaf01d29351ad0f23e94dd58b16cd517c6e981e
---

 .../gui/qt4/components/sout/profile_selector.cpp   |   32 ++++++++++++++++++++
 modules/gui/qt4/components/sout/profiles.hpp       |   32 ++++++++++++++++++++
 2 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp
index 4893c17..f84f809 100644
--- a/modules/gui/qt4/components/sout/profile_selector.cpp
+++ b/modules/gui/qt4/components/sout/profile_selector.cpp
@@ -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 at 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
index 0000000..030530e
--- /dev/null
+++ b/modules/gui/qt4/components/sout/profiles.hpp
@@ -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",
+};
+
+




More information about the vlc-devel mailing list