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
1111338a
Commit
1111338a
authored
Jun 10, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/mpeg/ts.c: New --no-sout-ts-crypt-video option to disable
CSA scrambling for video PID(s).
parent
b368edde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+11
-2
No files found.
modules/mux/mpeg/ts.c
View file @
1111338a
...
@@ -123,6 +123,8 @@ static void Close ( vlc_object_t * );
...
@@ -123,6 +123,8 @@ static void Close ( vlc_object_t * );
#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")
#define VCRYPT_TEXT N_("Crypt video")
#define VCRYPT_LONGTEXT N_("Crypt video using CSA")
#define CK_TEXT N_("CSA Key")
#define CK_TEXT N_("CSA Key")
#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 " \
...
@@ -169,6 +171,8 @@ vlc_module_begin();
...
@@ -169,6 +171,8 @@ vlc_module_begin();
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_bool
(
SOUT_CFG_PREFIX
"crypt-video"
,
VLC_TRUE
,
NULL
,
VCRYPT_TEXT
,
VCRYPT_LONGTEXT
,
VLC_TRUE
);
add_string
(
SOUT_CFG_PREFIX
"csa-ck"
,
NULL
,
NULL
,
CK_TEXT
,
CK_LONGTEXT
,
add_string
(
SOUT_CFG_PREFIX
"csa-ck"
,
NULL
,
NULL
,
CK_TEXT
,
CK_LONGTEXT
,
VLC_TRUE
);
VLC_TRUE
);
...
@@ -182,7 +186,7 @@ vlc_module_end();
...
@@ -182,7 +186,7 @@ vlc_module_end();
static
const
char
*
ppsz_sout_options
[]
=
{
static
const
char
*
ppsz_sout_options
[]
=
{
"pid-video"
,
"pid-audio"
,
"pid-spu"
,
"pid-pmt"
,
"tsid"
,
"program-pmt"
,
"pid-video"
,
"pid-audio"
,
"pid-spu"
,
"pid-pmt"
,
"tsid"
,
"program-pmt"
,
"es-id-pid"
,
"shaping"
,
"pcr"
,
"bmin"
,
"bmax"
,
"use-key-frames"
,
"es-id-pid"
,
"shaping"
,
"pcr"
,
"bmin"
,
"bmax"
,
"use-key-frames"
,
"dts-delay"
,
"csa-ck"
,
"crypt-audio"
,
"dts-delay"
,
"csa-ck"
,
"crypt-audio"
,
"crypt-video"
,
NULL
NULL
};
};
...
@@ -318,6 +322,7 @@ struct sout_mux_sys_t
...
@@ -318,6 +322,7 @@ struct sout_mux_sys_t
csa_t
*
csa
;
csa_t
*
csa
;
vlc_bool_t
b_crypt_audio
;
vlc_bool_t
b_crypt_audio
;
vlc_bool_t
b_crypt_video
;
};
};
...
@@ -550,6 +555,9 @@ static int Open( vlc_object_t *p_this )
...
@@ -550,6 +555,9 @@ static int Open( vlc_object_t *p_this )
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"crypt-audio"
,
&
val
);
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"crypt-audio"
,
&
val
);
p_sys
->
b_crypt_audio
=
val
.
b_bool
;
p_sys
->
b_crypt_audio
=
val
.
b_bool
;
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"crypt-video"
,
&
val
);
p_sys
->
b_crypt_video
=
val
.
b_bool
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -1297,7 +1305,8 @@ static int Mux( sout_mux_t *p_mux )
...
@@ -1297,7 +1305,8 @@ static int Mux( sout_mux_t *p_mux )
/* Build the TS packet */
/* Build the TS packet */
p_ts
=
TSNew
(
p_mux
,
p_stream
,
b_pcr
);
p_ts
=
TSNew
(
p_mux
,
p_stream
,
b_pcr
);
if
(
p_sys
->
csa
!=
NULL
&&
if
(
p_sys
->
csa
!=
NULL
&&
(
p_input
->
p_fmt
->
i_cat
!=
AUDIO_ES
||
p_sys
->
b_crypt_audio
)
)
(
p_input
->
p_fmt
->
i_cat
!=
AUDIO_ES
||
p_sys
->
b_crypt_audio
)
&&
(
p_input
->
p_fmt
->
i_cat
!=
VIDEO_ES
||
p_sys
->
b_crypt_video
)
)
{
{
p_ts
->
i_flags
|=
BLOCK_FLAG_SCRAMBLED
;
p_ts
->
i_flags
|=
BLOCK_FLAG_SCRAMBLED
;
}
}
...
...
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