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
79ffc8fe
Commit
79ffc8fe
authored
Mar 20, 2006
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/mpeg/ts.c: New --sout-ts-alignment option.
parent
f0e4276f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+16
-4
No files found.
modules/mux/mpeg/ts.c
View file @
79ffc8fe
...
@@ -101,8 +101,14 @@ static void Close ( vlc_object_t * );
...
@@ -101,8 +101,14 @@ static void Close ( vlc_object_t * );
#define SDTDESC_TEXT N_("SDT Descriptors (requires --sout-ts-es-id-pid)")
#define SDTDESC_TEXT N_("SDT Descriptors (requires --sout-ts-es-id-pid)")
#define SDTDESC_LONGTEXT N_("Defines the descriptors of each SDT" )
#define SDTDESC_LONGTEXT N_("Defines the descriptors of each SDT" )
#define PID_TEXT N_("Set PID to id of ES")
#define PID_TEXT N_("Set PID to ID of ES")
#define PID_LONGTEXT N_("set PID to id of es")
#define PID_LONGTEXT N_("Sets PID to the ID if the incoming ES. This is for " \
"use with --ts-es-id-pid, and allows to have the same PIDs in the input " \
"and output streams.")
#define ALIGNMENT_TEXT N_("Data alignment")
#define ALIGNMENT_LONGTEXT N_("Enforces alignment of all access units on " \
"PES boundaries. This is a waste of bandwidth.")
#define SHAPING_TEXT N_("Shaping delay (ms)")
#define SHAPING_TEXT N_("Shaping delay (ms)")
#define SHAPING_LONGTEXT N_("If enabled, the TS muxer will cut the " \
#define SHAPING_LONGTEXT N_("If enabled, the TS muxer will cut the " \
...
@@ -186,6 +192,8 @@ vlc_module_begin();
...
@@ -186,6 +192,8 @@ vlc_module_begin();
#ifdef HAVE_DVBPSI_SDT
#ifdef HAVE_DVBPSI_SDT
add_string
(
SOUT_CFG_PREFIX
"sdtdesc"
,
NULL
,
NULL
,
SDTDESC_TEXT
,
SDTDESC_LONGTEXT
,
VLC_TRUE
);
add_string
(
SOUT_CFG_PREFIX
"sdtdesc"
,
NULL
,
NULL
,
SDTDESC_TEXT
,
SDTDESC_LONGTEXT
,
VLC_TRUE
);
#endif
#endif
add_bool
(
SOUT_CFG_PREFIX
"alignment"
,
0
,
NULL
,
ALIGNMENT_TEXT
,
ALIGNMENT_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
);
...
@@ -220,7 +228,7 @@ static const char *ppsz_sout_options[] = {
...
@@ -220,7 +228,7 @@ static const char *ppsz_sout_options[] = {
"pid-video"
,
"pid-audio"
,
"pid-spu"
,
"pid-pmt"
,
"tsid"
,
"netid"
,
"pid-video"
,
"pid-audio"
,
"pid-spu"
,
"pid-pmt"
,
"tsid"
,
"netid"
,
"es-id-pid"
,
"shaping"
,
"pcr"
,
"bmin"
,
"bmax"
,
"use-key-frames"
,
"es-id-pid"
,
"shaping"
,
"pcr"
,
"bmin"
,
"bmax"
,
"use-key-frames"
,
"dts-delay"
,
"csa-ck"
,
"csa-pkt"
,
"crypt-audio"
,
"crypt-video"
,
"dts-delay"
,
"csa-ck"
,
"csa-pkt"
,
"crypt-audio"
,
"crypt-video"
,
"muxpmt"
,
"sdtdesc"
,
"program-pmt"
,
"muxpmt"
,
"sdtdesc"
,
"program-pmt"
,
"alignment"
,
NULL
NULL
};
};
...
@@ -359,6 +367,7 @@ struct sout_mux_sys_t
...
@@ -359,6 +367,7 @@ struct sout_mux_sys_t
pmt_map_t
pmtmap
[
MAX_PMT_PID
];
pmt_map_t
pmtmap
[
MAX_PMT_PID
];
int
i_pmt_program_number
[
MAX_PMT
];
int
i_pmt_program_number
[
MAX_PMT
];
sdt_desc_t
sdt_descriptors
[
MAX_PMT
];
sdt_desc_t
sdt_descriptors
[
MAX_PMT
];
vlc_bool_t
b_data_alignment
;
int
i_mpeg4_streams
;
int
i_mpeg4_streams
;
...
@@ -609,6 +618,9 @@ static int Open( vlc_object_t *p_this )
...
@@ -609,6 +618,9 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_sdt
=
VLC_FALSE
;
p_sys
->
b_sdt
=
VLC_FALSE
;
#endif
#endif
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"alignment"
,
&
val
);
p_sys
->
b_data_alignment
=
val
.
b_bool
;
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"program-pmt"
,
&
val
);
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"program-pmt"
,
&
val
);
if
(
val
.
psz_string
&&
*
val
.
psz_string
)
if
(
val
.
psz_string
&&
*
val
.
psz_string
)
{
{
...
@@ -1317,7 +1329,7 @@ static int Mux( sout_mux_t *p_mux )
...
@@ -1317,7 +1329,7 @@ static int Mux( sout_mux_t *p_mux )
}
}
b_ok
=
VLC_FALSE
;
b_ok
=
VLC_FALSE
;
if
(
p_stream
==
p_pcr_stream
if
(
p_stream
==
p_pcr_stream
||
p_sys
->
b_data_alignment
||
p_input
->
p_fmt
->
i_codec
!=
||
p_input
->
p_fmt
->
i_codec
!=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
)
)
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
)
)
p_data
=
block_FifoGet
(
p_input
->
p_fifo
);
p_data
=
block_FifoGet
(
p_input
->
p_fifo
);
...
...
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