Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
87cd07ca
Commit
87cd07ca
authored
Feb 14, 2014
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mp2v/mp1v to muxers
Signed-off-by:
Ilkka Ollakka
<
ileoo@videolan.org
>
parent
cecf9be9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
4 deletions
+19
-4
modules/mux/mp4.c
modules/mux/mp4.c
+9
-3
modules/mux/mpeg/pes.c
modules/mux/mpeg/pes.c
+4
-1
modules/mux/mpeg/ps.c
modules/mux/mpeg/ps.c
+2
-0
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+2
-0
modules/mux/ogg.c
modules/mux/ogg.c
+2
-0
No files found.
modules/mux/mp4.c
View file @
87cd07ca
...
...
@@ -376,6 +376,8 @@ static int AddStream(sout_mux_t *p_mux, sout_input_t *p_input)
case
VLC_CODEC_MP4V
:
case
VLC_CODEC_MPGA
:
case
VLC_CODEC_MPGV
:
case
VLC_CODEC_MP2V
:
case
VLC_CODEC_MP1V
:
case
VLC_CODEC_MJPG
:
case
VLC_CODEC_MJPGB
:
case
VLC_CODEC_SVQ1
:
...
...
@@ -654,9 +656,13 @@ static bo_t *GetESDS(mp4_stream_t *p_stream)
case
VLC_CODEC_MP4V
:
i_object_type_indication
=
0x20
;
break
;
case
VLC_CODEC_MPGV
:
/* FIXME MPEG-I=0x6b, MPEG-II = 0x60 -> 0x65 */
i_object_type_indication
=
0x60
;
case
VLC_CODEC_MP2V
:
/* MPEG-I=0x6b, MPEG-II = 0x60 -> 0x65 */
i_object_type_indication
=
0x65
;
break
;
case
VLC_CODEC_MP1V
:
/* MPEG-I=0x6b, MPEG-II = 0x60 -> 0x65 */
i_object_type_indication
=
0x6b
;
break
;
case
VLC_CODEC_MP4A
:
/* FIXME for mpeg2-aac == 0x66->0x68 */
...
...
modules/mux/mpeg/pes.c
View file @
87cd07ca
...
...
@@ -110,7 +110,10 @@ static inline int PESHeader( uint8_t *p_hdr, mtime_t i_pts, mtime_t i_dts,
if
(
i_pts
>
0
&&
i_dts
>
0
&&
(
i_pts
!=
i_dts
||
(
p_fmt
->
i_cat
==
VIDEO_ES
&&
p_fmt
->
i_codec
!=
VLC_CODEC_MPGV
)
)
)
p_fmt
->
i_codec
!=
VLC_CODEC_MPGV
&&
p_fmt
->
i_codec
!=
VLC_CODEC_MP2V
&&
p_fmt
->
i_codec
!=
VLC_CODEC_MP1V
)
)
)
{
i_pts_dts
=
0x03
;
if
(
!
i_header_size
)
i_header_size
=
0xa
;
...
...
modules/mux/mpeg/ps.c
View file @
87cd07ca
...
...
@@ -273,6 +273,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
switch
(
p_input
->
p_fmt
->
i_codec
)
{
case
VLC_CODEC_MPGV
:
case
VLC_CODEC_MP2V
:
case
VLC_CODEC_MP1V
:
p_stream
->
i_stream_id
=
StreamIdGet
(
p_sys
->
stream_id_mpgv
,
0xe0
,
0xef
);
p_stream
->
i_stream_type
=
0x02
;
/* ISO/IEC 13818 Video */
...
...
modules/mux/mpeg/ts.c
View file @
87cd07ca
...
...
@@ -895,6 +895,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
/* VIDEO */
case
VLC_CODEC_MPGV
:
case
VLC_CODEC_MP2V
:
case
VLC_CODEC_MP1V
:
/* TODO: do we need to check MPEG-I/II ? */
p_stream
->
i_stream_type
=
0x02
;
p_stream
->
i_stream_id
=
0xe0
;
...
...
modules/mux/ogg.c
View file @
87cd07ca
...
...
@@ -389,6 +389,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
{
case
VLC_CODEC_MP4V
:
case
VLC_CODEC_MPGV
:
case
VLC_CODEC_MP1V
:
case
VLC_CODEC_MP2V
:
case
VLC_CODEC_DIV3
:
case
VLC_CODEC_MJPG
:
case
VLC_CODEC_WMV1
:
...
...
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