Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ed900830
Commit
ed900830
authored
Apr 26, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/mpeg/ts.c: revised config options descriptions.
parent
92c5f281
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
63 deletions
+45
-63
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+45
-63
No files found.
modules/mux/mpeg/ts.c
View file @
ed900830
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
* Eric Petit <titer@videolan.org>
*
*
*
* This program is free software; you can redistribute it and/or modify
* 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
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 2 of the License, or
...
@@ -77,48 +76,28 @@
...
@@ -77,48 +76,28 @@
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define SOUT_CFG_PREFIX "sout-ts-"
vlc_module_begin
();
#if defined MODULE_NAME_IS_mux_ts
set_description
(
_
(
"TS muxer"
)
);
set_capability
(
"sout mux"
,
100
);
add_shortcut
(
"ts"
);
add_shortcut
(
"ts_nodvbpsi"
);
#elif defined MODULE_NAME_IS_mux_ts_dvbpsi
set_description
(
_
(
"TS muxer (libdvbpsi)"
)
);
set_capability
(
"sout mux"
,
120
);
add_shortcut
(
"ts"
);
add_shortcut
(
"ts_dvbpsi"
);
#endif
#define VPID_TEXT N_("Video PID")
#define VPID_TEXT N_("Video PID")
#define VPID_LONGTEXT N_("Assign a fixed PID to the video stream")
#define VPID_LONGTEXT N_("Assign a fixed PID to the video stream")
#define APID_TEXT N_("Audio PID")
#define APID_TEXT N_("Audio PID")
#define APID_LONGTEXT N_("Assign a fixed PID to the audio stream")
#define APID_LONGTEXT N_("Assign a fixed PID to the audio stream")
#define BMIN_TEXT N_("Minimum bitrate warning")
#define BMIN_LONGTEXT N_("A warning will be emitted if the bitrate drops below this limit. THIS OPTION IS NO MORE SUPPORTED.")
#define BMAX_TEXT N_("Maximum bitrate warning")
#define BMAX_LONGTEXT N_("A warning will be emitted if the bitrate exceeds this limit. THIS OPTION IS NO MORE SUPPORTED.")
#define SHAPING_TEXT N_("Shaping delay (ms)")
#define SHAPING_TEXT N_("Shaping delay (ms)")
#define SHAPING_LONGTEXT N_("")
#define SHAPING_LONGTEXT N_("This allows you to change the caching done " \
"inside the muxer itself.")
#define KEYF_TEXT N_("Use keyframes")
#define KEYF_LONGTEXT N_("If enabled, the shaping delay will be " \
"automatically optimized for the GOP size used in the video stream.")
#define PCR_TEXT N_("PCR delay (ms)")
#define PCR_TEXT N_("PCR delay (ms)")
#define PCR_LONGTEXT N_("This option
s sets the interval between two PCR
" \
#define PCR_LONGTEXT N_("This option
allows you to set at which interval
" \
"sendings. PCR is the synchronisation clock
. " \
"PCRs (Program Clock Reference) will be sent
. " \
"This value should be below 100ms. (default is 30)")
"This value should be below 100ms. (default is 30)")
#define DTS_TEXT N_("DTS delay (ms)")
#define DTS_TEXT N_("DTS delay (ms)")
#define DTS_LONGTEXT N_("This option will delay the DTS and PTS of the " \
#define DTS_LONGTEXT N_("This option will delay the DTS (decoding time " \
"stream, compared to the PCR. (DTS and PTS are two" \
"stamps) and PTS (presentation timestamps) of the data in the " \
" timestamps that give the time at which a packet " \
"stream, compared to the PCRs. This allows for some buffering inside " \
"must be decoded and displayed). This allows for " \
"the client decoder.")
"some buffering inside the client decoder.")
#define KEYF_TEXT N_("Use keyframes")
#define KEYF_LONGTEXT N_("")
#define ACRYPT_TEXT N_("Crypt audio")
#define ACRYPT_TEXT N_("Crypt audio")
#define ACRYPT_LONGTEXT N_("Crypt audio using CSA")
#define ACRYPT_LONGTEXT N_("Crypt audio using CSA")
...
@@ -127,30 +106,40 @@ vlc_module_begin();
...
@@ -127,30 +106,40 @@ vlc_module_begin();
#define CK_LONGTEXT N_("Defines the CSA encryption key. This must be a " \
#define CK_LONGTEXT N_("Defines the CSA encryption key. This must be a " \
"16 char string (8 hexadecimal bytes).")
"16 char string (8 hexadecimal bytes).")
add_integer
(
SOUT_CFG_PREFIX
"pid-video"
,
0
,
NULL
,
VPID_TEXT
,
VPID_LONGTEXT
,
#define SOUT_CFG_PREFIX "sout-ts-"
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"pid-audio"
,
0
,
NULL
,
APID_TEXT
,
APID_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"bmin"
,
0
,
NULL
,
BMIN_TEXT
,
BMIN_LONGTEXT
,
vlc_module_begin
();
VLC_TRUE
);
#if defined MODULE_NAME_IS_mux_ts
add_integer
(
SOUT_CFG_PREFIX
"bmax"
,
0
,
NULL
,
BMAX_TEXT
,
BMAX_LONGTEXT
,
set_description
(
_
(
"TS muxer"
)
);
set_capability
(
"sout mux"
,
100
);
add_shortcut
(
"ts"
);
add_shortcut
(
"ts_nodvbpsi"
);
#elif defined MODULE_NAME_IS_mux_ts_dvbpsi
set_description
(
_
(
"TS muxer (libdvbpsi)"
)
);
set_capability
(
"sout mux"
,
120
);
add_shortcut
(
"ts"
);
add_shortcut
(
"ts_dvbpsi"
);
#endif
add_integer
(
SOUT_CFG_PREFIX
"pid-video"
,
0
,
NULL
,
VPID_TEXT
,
VPID_LONGTEXT
,
VLC_TRUE
);
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"pid-audio"
,
0
,
NULL
,
APID_TEXT
,
APID_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"shaping"
,
200
,
NULL
,
SHAPING_TEXT
,
add_integer
(
SOUT_CFG_PREFIX
"shaping"
,
200
,
NULL
,
SHAPING_TEXT
,
SHAPING_LONGTEXT
,
VLC_TRUE
);
SHAPING_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"pcr"
,
30
,
NULL
,
PCR_TEXT
,
PCR_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"dts-delay"
,
200
,
NULL
,
DTS_TEXT
,
DTS_LONGTEXT
,
VLC_TRUE
);
add_bool
(
SOUT_CFG_PREFIX
"use-key-frames"
,
VLC_FALSE
,
NULL
,
KEYF_TEXT
,
add_bool
(
SOUT_CFG_PREFIX
"use-key-frames"
,
VLC_FALSE
,
NULL
,
KEYF_TEXT
,
KEYF_LONGTEXT
,
VLC_TRUE
);
KEYF_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"pcr"
,
30
,
NULL
,
PCR_TEXT
,
PCR_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"dts-delay"
,
200
,
NULL
,
DTS_TEXT
,
DTS_LONGTEXT
,
VLC_TRUE
);
add_bool
(
SOUT_CFG_PREFIX
"crypt-audio"
,
VLC_TRUE
,
NULL
,
ACRYPT_TEXT
,
add_bool
(
SOUT_CFG_PREFIX
"crypt-audio"
,
VLC_TRUE
,
NULL
,
ACRYPT_TEXT
,
ACRYPT_LONGTEXT
,
VLC_TRUE
);
ACRYPT_LONGTEXT
,
VLC_TRUE
);
add_string
(
SOUT_CFG_PREFIX
"csa-ck"
,
""
,
NULL
,
CK_TEXT
,
CK_LONGTEXT
,
add_string
(
SOUT_CFG_PREFIX
"csa-ck"
,
NULL
,
NULL
,
CK_TEXT
,
CK_LONGTEXT
,
VLC_TRUE
);
VLC_TRUE
);
set_callbacks
(
Open
,
Close
);
set_callbacks
(
Open
,
Close
);
...
@@ -160,15 +149,8 @@ vlc_module_end();
...
@@ -160,15 +149,8 @@ vlc_module_end();
* Local data structures
* Local data structures
*****************************************************************************/
*****************************************************************************/
static
const
char
*
ppsz_sout_options
[]
=
{
static
const
char
*
ppsz_sout_options
[]
=
{
"pid-video"
,
"pid-audio"
,
"pid-video"
,
"pid-audio"
,
"shaping"
,
"pcr"
,
"bmin"
,
"bmax"
,
"use-key-frames"
,
"dts-delay"
,
"csa-ck"
,
"crypt-audio"
,
NULL
"shaping"
,
"pcr"
,
"use-key-frames"
,
"dts-delay"
,
"csa-ck"
,
"crypt-audio"
,
NULL
};
};
#define SOUT_BUFFER_FLAGS_PRIVATE_PCR ( 1 << BLOCK_FLAG_PRIVATE_SHIFT )
#define SOUT_BUFFER_FLAGS_PRIVATE_PCR ( 1 << BLOCK_FLAG_PRIVATE_SHIFT )
...
@@ -400,10 +382,10 @@ static int Open( vlc_object_t *p_this )
...
@@ -400,10 +382,10 @@ static int Open( vlc_object_t *p_this )
/* Allow to create constrained stream */
/* Allow to create constrained stream */
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"bmin"
,
&
val
);
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"bmin"
,
&
val
);
p_sys
->
i_bitrate_min
=
val
.
i_int
;
p_sys
->
i_bitrate_min
=
0
;
/*val.i_int;*/
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"bmax"
,
&
val
);
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"bmax"
,
&
val
);
p_sys
->
i_bitrate_max
=
val
.
i_int
;
p_sys
->
i_bitrate_max
=
0
;
/*val.i_int;*/
if
(
p_sys
->
i_bitrate_min
>
0
&&
p_sys
->
i_bitrate_max
>
0
&&
if
(
p_sys
->
i_bitrate_min
>
0
&&
p_sys
->
i_bitrate_max
>
0
&&
p_sys
->
i_bitrate_min
>
p_sys
->
i_bitrate_max
)
p_sys
->
i_bitrate_min
>
p_sys
->
i_bitrate_max
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment