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
6eeb9a04
Commit
6eeb9a04
authored
May 09, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: automatically insert asyncts when -async is used.
Deprecate -async.
parent
369cb092
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
avconv.c
avconv.c
+27
-0
avconv.texi
doc/avconv.texi
+1
-0
No files found.
avconv.c
View file @
6eeb9a04
...
@@ -703,6 +703,33 @@ static int configure_audio_filters(FilterGraph *fg, AVFilterContext **in_filter,
...
@@ -703,6 +703,33 @@ static int configure_audio_filters(FilterGraph *fg, AVFilterContext **in_filter,
*
out_filter
=
format
;
*
out_filter
=
format
;
}
}
if
(
audio_sync_method
>
0
)
{
AVFilterContext
*
async
;
char
args
[
256
];
int
len
=
0
;
av_log
(
NULL
,
AV_LOG_WARNING
,
"-async has been deprecated. Used the "
"asyncts audio filter instead.
\n
"
);
if
(
audio_sync_method
>
1
)
len
+=
snprintf
(
args
+
len
,
sizeof
(
args
)
-
len
,
"compensate=1:"
"max_comp=%d:"
,
audio_sync_method
);
snprintf
(
args
+
len
,
sizeof
(
args
)
-
len
,
"min_delta=%f"
,
audio_drift_threshold
);
ret
=
avfilter_graph_create_filter
(
&
async
,
avfilter_get_by_name
(
"asyncts"
),
"async"
,
args
,
NULL
,
fg
->
graph
);
if
(
ret
<
0
)
return
ret
;
ret
=
avfilter_link
(
*
in_filter
,
0
,
async
,
0
);
if
(
ret
<
0
)
return
ret
;
*
in_filter
=
async
;
}
return
0
;
return
0
;
}
}
...
...
doc/avconv.texi
View file @
6eeb9a04
...
@@ -610,6 +610,7 @@ Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps
...
@@ -610,6 +610,7 @@ Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps
the parameter is the maximum samples per second by which the audio is changed.
the parameter is the maximum samples per second by which the audio is changed.
-async 1 is a special case where only the start of the audio stream is corrected
-async 1 is a special case where only the start of the audio stream is corrected
without any later correction.
without any later correction.
This option has been deprecated. Use the @code
{
asyncts
}
audio filter instead.
@item -copyts
@item -copyts
Copy timestamps from input to output.
Copy timestamps from input to output.
@item -copytb
@item -copytb
...
...
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