Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
95d52464
Commit
95d52464
authored
Jun 22, 2013
by
Kieran Kunhya
Committed by
Anton Khirnov
Jun 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Add option to encode MPEG-2 AAC with libfdk-aac
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
ace87c19
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
1 deletion
+9
-1
APIchanges
doc/APIchanges
+3
-0
avcodec.h
libavcodec/avcodec.h
+2
-0
libfdk-aacenc.c
libavcodec/libfdk-aacenc.c
+1
-0
options_table.h
libavcodec/options_table.h
+2
-0
version.h
libavcodec/version.h
+1
-1
No files found.
doc/APIchanges
View file @
95d52464
...
...
@@ -13,6 +13,9 @@ libavutil: 2012-10-22
API changes, most recent first:
2013-06-xx - xxxxxxx - lavc 55.10.0 - avcodec.h
Add MPEG-2 AAC profiles
2013-06-xx - xxxxxxx - lavu 52.13.0 - mem.h
Add av_realloc_array and av_reallocp_array
...
...
libavcodec/avcodec.h
View file @
95d52464
...
...
@@ -2530,6 +2530,8 @@ typedef struct AVCodecContext {
#define FF_PROFILE_AAC_HE_V2 28
#define FF_PROFILE_AAC_LD 22
#define FF_PROFILE_AAC_ELD 38
#define FF_PROFILE_MPEG2_AAC_LOW 128
#define FF_PROFILE_MPEG2_AAC_HE 131
#define FF_PROFILE_DTS 20
#define FF_PROFILE_DTS_ES 30
...
...
libavcodec/libfdk-aacenc.c
View file @
95d52464
...
...
@@ -197,6 +197,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
avctx
->
bit_rate
=
(
96
*
sce
+
128
*
cpe
)
*
avctx
->
sample_rate
/
44
;
if
(
avctx
->
profile
==
FF_PROFILE_AAC_HE
||
avctx
->
profile
==
FF_PROFILE_AAC_HE_V2
||
avctx
->
profile
==
FF_PROFILE_MPEG2_AAC_HE
||
s
->
eld_sbr
)
avctx
->
bit_rate
/=
2
;
}
...
...
libavcodec/options_table.h
View file @
95d52464
...
...
@@ -291,6 +291,8 @@ static const AVOption options[]={
{
"aac_he_v2"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_HE_V2
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"profile"
},
{
"aac_ld"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_LD
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"profile"
},
{
"aac_eld"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_AAC_ELD
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"profile"
},
{
"mpeg2_aac_low"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_MPEG2_AAC_LOW
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"profile"
},
{
"mpeg2_aac_he"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_MPEG2_AAC_HE
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"profile"
},
{
"dts"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_DTS
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"profile"
},
{
"dts_es"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_DTS_ES
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"profile"
},
{
"dts_96_24"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
FF_PROFILE_DTS_96_24
},
INT_MIN
,
INT_MAX
,
A
|
E
,
"profile"
},
...
...
libavcodec/version.h
View file @
95d52464
...
...
@@ -27,7 +27,7 @@
*/
#define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR
9
#define LIBAVCODEC_VERSION_MINOR
10
#define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...
...
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