+/*****************************************************************************
+ * 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>
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();
}
--- /dev/null
+#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",
+};
+
+