Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8fd3727f
Commit
8fd3727f
authored
Apr 23, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mp4: use sout_ParseCfg and rename option to --sout-mp4-faststart.
parent
4518a7d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
modules/mux/mp4.c
modules/mux/mp4.c
+16
-12
No files found.
modules/mux/mp4.c
View file @
8fd3727f
...
@@ -50,12 +50,13 @@
...
@@ -50,12 +50,13 @@
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-mp4-"
vlc_module_begin
();
vlc_module_begin
();
set_description
(
_
(
"MP4/MOV muxer"
)
);
set_description
(
_
(
"MP4/MOV muxer"
)
);
add_bool
(
"mp4-
faststart"
,
1
,
NULL
,
FASTSTART_TEXT
,
FASTSTART_LONGTEXT
,
add_bool
(
SOUT_CFG_PREFIX
"
faststart"
,
1
,
NULL
,
FASTSTART_TEXT
,
FASTSTART_LONGTEXT
,
VLC_TRUE
);
VLC_TRUE
);
set_capability
(
"sout mux"
,
5
);
set_capability
(
"sout mux"
,
5
);
add_shortcut
(
"mp4"
);
add_shortcut
(
"mp4"
);
add_shortcut
(
"mov"
);
add_shortcut
(
"mov"
);
...
@@ -65,6 +66,10 @@ vlc_module_end();
...
@@ -65,6 +66,10 @@ vlc_module_end();
/*****************************************************************************
/*****************************************************************************
* Exported prototypes
* Exported prototypes
*****************************************************************************/
*****************************************************************************/
static
const
char
*
ppsz_sout_options
[]
=
{
"faststart"
,
NULL
};
static
int
Capability
(
sout_mux_t
*
,
int
,
void
*
,
void
*
);
static
int
Capability
(
sout_mux_t
*
,
int
,
void
*
,
void
*
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
...
@@ -164,7 +169,14 @@ static int Open( vlc_object_t *p_this )
...
@@ -164,7 +169,14 @@ static int Open( vlc_object_t *p_this )
sout_mux_sys_t
*
p_sys
;
sout_mux_sys_t
*
p_sys
;
bo_t
*
box
;
bo_t
*
box
;
p_sys
=
malloc
(
sizeof
(
sout_mux_sys_t
)
);
msg_Dbg
(
p_mux
,
"Mp4 muxer opend"
);
sout_ParseCfg
(
p_mux
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_mux
->
p_cfg
);
p_mux
->
pf_capacity
=
Capability
;
p_mux
->
pf_addstream
=
AddStream
;
p_mux
->
pf_delstream
=
DelStream
;
p_mux
->
pf_mux
=
Mux
;
p_mux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
sout_mux_sys_t
)
);
p_sys
->
i_pos
=
0
;
p_sys
->
i_pos
=
0
;
p_sys
->
i_nb_streams
=
0
;
p_sys
->
i_nb_streams
=
0
;
p_sys
->
pp_streams
=
NULL
;
p_sys
->
pp_streams
=
NULL
;
...
@@ -172,13 +184,6 @@ static int Open( vlc_object_t *p_this )
...
@@ -172,13 +184,6 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_mov
=
p_mux
->
psz_mux
&&
!
strcmp
(
p_mux
->
psz_mux
,
"mov"
);
p_sys
->
b_mov
=
p_mux
->
psz_mux
&&
!
strcmp
(
p_mux
->
psz_mux
,
"mov"
);
p_sys
->
i_dts_start
=
0
;
p_sys
->
i_dts_start
=
0
;
msg_Dbg
(
p_mux
,
"Open"
);
p_mux
->
pf_capacity
=
Capability
;
p_mux
->
pf_addstream
=
AddStream
;
p_mux
->
pf_delstream
=
DelStream
;
p_mux
->
pf_mux
=
Mux
;
p_mux
->
p_sys
=
p_sys
;
if
(
!
p_sys
->
b_mov
)
if
(
!
p_sys
->
b_mov
)
{
{
...
@@ -253,8 +258,7 @@ static void Close( vlc_object_t * p_this )
...
@@ -253,8 +258,7 @@ static void Close( vlc_object_t * p_this )
moov
=
GetMoovBox
(
p_mux
);
moov
=
GetMoovBox
(
p_mux
);
/* Check we need to create "fast start" files */
/* Check we need to create "fast start" files */
var_Create
(
p_this
,
"mp4-faststart"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
SOUT_CFG_PREFIX
"faststart"
,
&
val
);
var_Get
(
p_this
,
"mp4-faststart"
,
&
val
);
p_sys
->
b_fast_start
=
val
.
b_bool
;
p_sys
->
b_fast_start
=
val
.
b_bool
;
while
(
p_sys
->
b_fast_start
)
while
(
p_sys
->
b_fast_start
)
{
{
...
...
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