]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/streamdata.cpp
e780572930a0cd7e3fd6434d82db0ad21606a381
[vlc] / modules / gui / wxwidgets / streamdata.cpp
1 /*****************************************************************************
2  * streamdata.cpp: streaming/transcoding data
3  *****************************************************************************
4  * Copyright (C) 2000-2005 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #include <vlc/vlc.h>
25 #include <wx/string.h>
26 #include "streamdata.h"
27
28
29 const struct codec vcodecs_array[] =
30 {
31     { "MPEG-1 Video" , "mp1v" , N_("MPEG-1 Video codec (useable with MPEG PS, " \
32         "MPEG TS, MPEG1, OGG and RAW)"),
33 //       {MUX_PS, MUX_TS, MUX_MPEG, MUX_OGG, MUX_AVI, MUX_RAW, -1,-1,-1 } },
34        {MUX_PS, MUX_TS, MUX_MPEG, MUX_OGG, MUX_RAW, -1,-1,-1,-1 } },
35     { "MPEG-2 Video" , "mp2v" , N_("MPEG-2 Video codec (useable with MPEG PS, " \
36         "MPEG TS, MPEG1, OGG and RAW)"),
37 //       {MUX_PS, MUX_TS, MUX_MPEG, MUX_OGG, MUX_AVI, MUX_RAW, -1,-1,-1 } },
38        {MUX_PS, MUX_TS, MUX_MPEG, MUX_OGG, MUX_RAW, -1,-1,-1,-1 } },
39     { "MPEG-4 Video" , "mp4v" , N_("MPEG-4 Video codec (useable with MPEG PS, " \
40         "MPEG TS, MPEG1, ASF, MPEG4, OGG and RAW)"),
41 //       {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_MP4,MUX_OGG,MUX_AVI,MUX_RAW, -1} },
42        {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_MP4,MUX_OGG,MUX_RAW, -1,-1} },
43     { "DIVX 1" ,"DIV1",N_("DivX first version (useable with MPEG TS, MPEG1, ASF" \
44         " and OGG)") ,
45 //       {MUX_TS , MUX_MPEG , MUX_ASF , MUX_OGG , MUX_AVI , -1,-1,-1,-1 } },
46        {MUX_TS , MUX_MPEG , MUX_ASF , MUX_OGG , -1 , -1,-1,-1,-1 } },
47     { "DIVX 2" ,"DIV2",N_("DivX second version (useable with MPEG TS, MPEG1, ASF" \
48         " and OGG)") ,
49        {MUX_TS , MUX_MPEG , MUX_ASF , MUX_OGG , -1 , -1,-1,-1,-1 } },
50     { "DIVX 3" ,"DIV3",N_("DivX third version (useable with MPEG TS, MPEG1, ASF" \
51         " and OGG)") ,
52        {MUX_TS , MUX_MPEG , MUX_ASF , MUX_OGG , -1 , -1,-1,-1,-1 } },
53     { "H 263" , "h263" , N_("H263 is a video codec optimized for videoconference " \
54         "(low rates, useable with MPEG TS)") ,
55        { MUX_TS, -1, -1,-1,-1,-1,-1,-1,-1 } },
56     { "H 264" , "h264" , N_("H264 is a new video codec (useable with MPEG TS " \
57         "and MPEG4)") ,
58        { MUX_TS, MUX_MP4, MUX_ASF,-1,-1,-1,-1,-1,-1 } },
59     { "WMV 1" , "WMV1", N_("WMV (Windows Media Video) 7 (useable with MPEG TS, " \
60         "MPEG1, ASF and OGG)") ,
61        {MUX_TS , MUX_MPEG , MUX_ASF , MUX_OGG , -1 , -1,-1,-1,-1 } },
62     { "WMV 2" , "WMV2", N_("WMV (Windows Media Video) 8 (useable with MPEG TS, " \
63         "MPEG1, ASF and OGG)") ,
64        {MUX_TS , MUX_MPEG , MUX_ASF , MUX_OGG , -1 , -1,-1,-1,-1 } },
65 #ifdef WIN32
66     { "WMV 3" , "WMV3", N_("WMV (Windows Media Video) 9 (useable with MPEG TS, " \
67         "MPEG1, ASF and OGG)") ,
68        {MUX_TS , MUX_MPEG , MUX_ASF , MUX_OGG , -1 , -1,-1,-1,-1 } },
69 #endif
70     { "MJPEG" , "MJPG", N_("MJPEG consists of a series of JPEG pictures " \
71         "(useable with MPEG TS, MPEG1, ASF and OGG)") ,
72        {MUX_TS , MUX_MPEG , MUX_ASF , MUX_OGG , -1 , -1,-1,-1,-1 } },
73     { "Theora" , "theo", N_("Theora is a free general-purpose codec (useable " \
74         "with MPEG TS)"),
75        {MUX_TS, MUX_OGG,-1,-1,-1,-1,-1,-1,-1} },
76     { "Dummy", "dummy", N_("Dummy codec (do not transcode, useable with all " \
77         "encapsulation formats)") ,
78       {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_MP4,MUX_OGG,MUX_WAV,MUX_RAW,MUX_MOV}},
79     { NULL,NULL,NULL , {-1,-1,-1,-1,-1,-1,-1,-1,-1}} /* Do not remove me */
80 };
81
82 const struct codec acodecs_array[] =
83 {
84     { "MPEG Audio" , "mpga" , N_("The standard MPEG audio (1/2) format " \
85         "(useable with MPEG PS, MPEG TS, MPEG1, ASF, OGG and RAW)") ,
86 //       {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_OGG,MUX_AVI,MUX_RAW, -1,-1} },
87        {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_OGG,MUX_RAW, -1,-1,-1} },
88     { "MP3" , "mp3" , N_("MPEG Audio Layer 3 (useable with MPEG PS, MPEG TS, " \
89         "MPEG1, ASF, OGG and RAW)") ,
90 //       {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_OGG,MUX_AVI,MUX_RAW, -1,-1} },
91        {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_OGG,MUX_RAW, -1,-1, -1} },
92     { "MPEG 4 Audio" , "mp4a" , N_("Audio format for MPEG4 (useable with " \
93         "MPEG TS and MPEG4)") ,
94        {MUX_TS, MUX_MP4, -1,-1,-1,-1,-1,-1,-1 } },
95     { "A/52" , "a52" , N_("DVD audio format (useable with MPEG PS, MPEG TS, " \
96         "MPEG1, ASF, OGG and RAW)") ,
97 //       {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_OGG,MUX_AVI,MUX_RAW, -1,-1} },
98        {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_OGG,MUX_RAW, -1,-1,-1} },
99     { "Vorbis" , "vorb" , N_("Vorbis is a free audio codec (useable with OGG)") ,
100        {MUX_OGG, -1,-1,-1,-1,-1,-1,-1,-1} },
101     { "FLAC" , "flac" , N_("FLAC is a lossless audio codec (useable with OGG " \
102         "and RAW)") ,
103        {MUX_OGG , MUX_RAW, -1,-1,-1,-1,-1,-1,-1} },
104     { "Speex" , "spx" , N_("A free audio codec dedicated to compression of " \
105         "voice (useable with OGG)") ,
106        {MUX_OGG, -1,-1,-1,-1,-1,-1,-1,-1} },
107     { "Uncompressed, integer" , "s16l" , N_("Uncompressed audio samples " \
108         "(useable with WAV)"),
109        {MUX_WAV, -1,-1,-1,-1,-1,-1,-1,-1} },
110     { "Uncompressed, floating" , "fl32" , N_("Uncompressed audio samples " \
111         "(useable with WAV)"),
112        {MUX_WAV, -1,-1,-1,-1,-1,-1,-1,-1} },
113     { "Dummy", "dummy", N_("Dummy codec (do not transcode, useable with all " \
114         "encapsulation formats)") ,
115 //     {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_MP4,MUX_OGG,MUX_AVI,MUX_RAW,MUX_MOV}},
116      {MUX_PS,MUX_TS,MUX_MPEG,MUX_ASF,MUX_MP4,MUX_OGG,MUX_RAW,MUX_MOV,MUX_WAV}},
117     { NULL,NULL,NULL , {-1,-1,-1,-1,-1,-1,-1,-1,-1}} /* Do not remove me */
118 };
119
120 const struct method methods_array[] =
121 {
122     {"rtp{",N_("RTP Unicast"), N_("Stream to a single computer."),
123      N_("Enter the address of the computer to stream to."),
124      { MUX_TS, -1,-1,-1,-1,-1,-1,-1,-1 } },
125     {"rtp{",N_("RTP Multicast"),
126      N_("Stream to a dynamic group of computers on a "
127      "multicast-enabled network. This is the most efficient method "
128      "to stream to several computers, but it does not work over the Internet."),
129      N_("Enter the multicast address to stream to. "
130      "This must be an IP address between 224.0.0.0 an 239.255.255.255. "
131      "For private use, enter an address beginning with 239.255."),
132      { MUX_TS, -1,-1,-1,-1,-1,-1,-1,-1 } },
133     {"std{access=http,","HTTP",
134      N_("Stream to several computers. This method is "
135      "less efficient, as the server needs to send the "
136      "stream several times."),
137      N_("Enter the local addresses you want to listen to. Do not enter "
138      "anything if you want to listen to all adresses or if you don't "
139      "understand. This is generally the best thing to do. Other computers "
140      "can then access the stream at http://yourip:8080 by default."),
141      { MUX_TS, MUX_PS, MUX_MPEG, MUX_OGG, MUX_RAW, MUX_ASF, -1,-1,-1} },
142     { NULL, NULL,NULL,NULL , {-1,-1,-1,-1,-1,-1,-1,-1,-1}} /* Do not remove me */
143 };
144
145
146 const struct encap encaps_array[] =
147 {
148     { MUX_PS, "ps","MPEG PS", N_("MPEG Program Stream") },
149     { MUX_TS, "ts","MPEG TS", N_("MPEG Transport Stream") },
150     { MUX_MPEG, "ps", "MPEG 1", N_("MPEG 1 Format") },
151     { MUX_OGG, "ogg", "OGG", "OGG" },
152     { MUX_RAW, "raw", "RAW", "RAW" },
153     { MUX_ASF, "asf","ASF", "ASF" },
154 //    { MUX_AVI, "avi","AVI", "AVI" },
155     { MUX_MP4, "mp4","MP4", "MPEG4" },
156     { MUX_MOV, "mov","MOV", "MOV" },
157     { MUX_WAV, "wav","WAV", "WAV" },
158     { -1 , NULL,NULL , NULL } /* Do not remove me */
159 };