Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a8c2ff2c
Commit
a8c2ff2c
authored
Jul 11, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "lavc: remove a half-working attempt at different defaults for audio/video codecs."
This reverts commit
18c007ba
.
parent
3602ad7e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
options.c
libavcodec/options.c
+1
-1
lavf-regression.sh
tests/lavf-regression.sh
+2
-2
No files found.
libavcodec/options.c
View file @
a8c2ff2c
...
@@ -71,7 +71,7 @@ static const AVOption *opt_find(void *obj, const char *name, const char *unit, i
...
@@ -71,7 +71,7 @@ static const AVOption *opt_find(void *obj, const char *name, const char *unit, i
static
const
AVOption
options
[]
=
{
static
const
AVOption
options
[]
=
{
{
"b"
,
"set bitrate (in bits/s)"
,
OFFSET
(
bit_rate
),
FF_OPT_TYPE_INT
,
{.
dbl
=
AV_CODEC_DEFAULT_BITRATE
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"b"
,
"set bitrate (in bits/s)"
,
OFFSET
(
bit_rate
),
FF_OPT_TYPE_INT
,
{.
dbl
=
AV_CODEC_DEFAULT_BITRATE
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"ab"
,
"set bitrate (in bits/s)"
,
OFFSET
(
bit_rate
),
FF_OPT_TYPE_INT
,
{.
dbl
=
AV_CODEC_DEFAULT_BITRATE
},
INT_MIN
,
INT_MAX
,
A
|
E
},
{
"ab"
,
"set bitrate (in bits/s)"
,
OFFSET
(
bit_rate
),
FF_OPT_TYPE_INT
,
{.
dbl
=
64
*
1000
},
INT_MIN
,
INT_MAX
,
A
|
E
},
{
"bt"
,
"set video bitrate tolerance (in bits/s)"
,
OFFSET
(
bit_rate_tolerance
),
FF_OPT_TYPE_INT
,
{.
dbl
=
AV_CODEC_DEFAULT_BITRATE
*
20
},
1
,
INT_MAX
,
V
|
E
},
{
"bt"
,
"set video bitrate tolerance (in bits/s)"
,
OFFSET
(
bit_rate_tolerance
),
FF_OPT_TYPE_INT
,
{.
dbl
=
AV_CODEC_DEFAULT_BITRATE
*
20
},
1
,
INT_MAX
,
V
|
E
},
{
"flags"
,
NULL
,
OFFSET
(
flags
),
FF_OPT_TYPE_FLAGS
,
{.
dbl
=
DEFAULT
},
0
,
UINT_MAX
,
V
|
A
|
E
|
D
,
"flags"
},
{
"flags"
,
NULL
,
OFFSET
(
flags
),
FF_OPT_TYPE_FLAGS
,
{.
dbl
=
DEFAULT
},
0
,
UINT_MAX
,
V
|
A
|
E
|
D
,
"flags"
},
{
"mv4"
,
"use four motion vector by macroblock (mpeg4)"
,
0
,
FF_OPT_TYPE_CONST
,
{.
dbl
=
CODEC_FLAG_4MV
},
INT_MIN
,
INT_MAX
,
V
|
E
,
"flags"
},
{
"mv4"
,
"use four motion vector by macroblock (mpeg4)"
,
0
,
FF_OPT_TYPE_CONST
,
{.
dbl
=
CODEC_FLAG_4MV
},
INT_MIN
,
INT_MAX
,
V
|
E
,
"flags"
},
...
...
tests/lavf-regression.sh
View file @
a8c2ff2c
...
@@ -14,7 +14,7 @@ eval do_$test=y
...
@@ -14,7 +14,7 @@ eval do_$test=y
do_lavf
()
do_lavf
()
{
{
file
=
${
outfile
}
lavf.
$1
file
=
${
outfile
}
lavf.
$1
do_ffmpeg
$file
$DEC_OPTS
-f
image2
-vcodec
pgmyuv
-i
$raw_src
$DEC_OPTS
-ar
44100
-f
s16le
-i
$pcm_src
$ENC_OPTS
-
ab
64k
-
t
1
-qscale
10
$2
do_ffmpeg
$file
$DEC_OPTS
-f
image2
-vcodec
pgmyuv
-i
$raw_src
$DEC_OPTS
-ar
44100
-f
s16le
-i
$pcm_src
$ENC_OPTS
-t
1
-qscale
10
$2
do_ffmpeg_crc
$file
$DEC_OPTS
-i
$target_path
/
$file
$3
do_ffmpeg_crc
$file
$DEC_OPTS
-i
$target_path
/
$file
$3
}
}
...
@@ -53,7 +53,7 @@ fi
...
@@ -53,7 +53,7 @@ fi
if
[
-n
"
$do_rm
"
]
;
then
if
[
-n
"
$do_rm
"
]
;
then
file
=
${
outfile
}
lavf.rm
file
=
${
outfile
}
lavf.rm
do_ffmpeg
$file
$DEC_OPTS
-f
image2
-vcodec
pgmyuv
-i
$raw_src
$DEC_OPTS
-ar
44100
-f
s16le
-i
$pcm_src
$ENC_OPTS
-t
1
-qscale
10
-acodec
ac3_fixed
-ab
64k
do_ffmpeg
$file
$DEC_OPTS
-f
image2
-vcodec
pgmyuv
-i
$raw_src
$DEC_OPTS
-ar
44100
-f
s16le
-i
$pcm_src
$ENC_OPTS
-t
1
-qscale
10
-acodec
ac3_fixed
# broken
# broken
#do_ffmpeg_crc $file -i $target_path/$file
#do_ffmpeg_crc $file -i $target_path/$file
fi
fi
...
...
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