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
de4f5320
Commit
de4f5320
authored
Apr 23, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* x264: added aspect support.
* transcode: added H264 codec id. * demux: added h264 demux shortcut.
parent
1f7367c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
modules/codec/x264.c
modules/codec/x264.c
+7
-5
modules/demux/demux2.c
modules/demux/demux2.c
+1
-0
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+1
-0
No files found.
modules/codec/x264.c
View file @
de4f5320
...
...
@@ -2,7 +2,7 @@
* x264.c: h264 video encoder
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id
: encoder.c 7342 2004-04-13 14:13:07Z gbazin
$
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -38,7 +38,7 @@ static void Close( vlc_object_t * );
vlc_module_begin
();
set_description
(
_
(
"h264 video encoder using x264 library"
));
set_capability
(
"encoder"
,
1
0
);
set_capability
(
"encoder"
,
20
0
);
set_callbacks
(
Open
,
Close
);
vlc_module_end
();
...
...
@@ -100,9 +100,11 @@ static int Open ( vlc_object_t *p_this )
if
(
p_enc
->
fmt_in
.
video
.
i_aspect
>
0
)
{
/* TODO */
p_sys
->
param
.
vui
.
i_sar_width
=
0
;
p_sys
->
param
.
vui
.
i_sar_height
=
0
;
p_sys
->
param
.
vui
.
i_sar_width
=
p_enc
->
fmt_in
.
video
.
i_aspect
*
p_enc
->
fmt_in
.
video
.
i_height
*
p_enc
->
fmt_in
.
video
.
i_height
/
p_enc
->
fmt_in
.
video
.
i_width
;
p_sys
->
param
.
vui
.
i_sar_height
=
p_enc
->
fmt_in
.
video
.
i_height
;
}
if
(
p_enc
->
fmt_in
.
video
.
i_frame_rate_base
>
0
)
{
...
...
modules/demux/demux2.c
View file @
de4f5320
...
...
@@ -65,6 +65,7 @@ vlc_module_begin();
add_shortcut
(
"mpgv"
);
add_shortcut
(
"rawdv"
);
add_shortcut
(
"ogg"
);
add_shortcut
(
"h264"
);
vlc_module_end
();
/*****************************************************************************
...
...
modules/stream_out/transcode.c
View file @
de4f5320
...
...
@@ -631,6 +631,7 @@ static struct
{
VLC_FOURCC
(
'S'
,
'V'
,
'Q'
,
'1'
),
CODEC_ID_SVQ1
},
#if LIBAVCODEC_BUILD >= 4666
{
VLC_FOURCC
(
'S'
,
'V'
,
'Q'
,
'3'
),
CODEC_ID_SVQ3
},
{
VLC_FOURCC
(
'h'
,
'2'
,
'6'
,
'4'
),
CODEC_ID_H264
},
#endif
/* raw video code, only used for 'encoding' */
...
...
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