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
2ce8bca5
Commit
2ce8bca5
authored
Jan 15, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: print a warning when falling back to default 25fps
parent
33018907
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
avconv.c
avconv.c
+13
-4
No files found.
avconv.c
View file @
2ce8bca5
...
...
@@ -1691,10 +1691,19 @@ static int transcode_init(void)
(
video_sync_method
==
VSYNC_CFR
||
(
video_sync_method
==
VSYNC_AUTO
&&
!
(
oc
->
oformat
->
flags
&
(
AVFMT_NOTIMESTAMPS
|
AVFMT_VARIABLE_FPS
)))))
{
ost
->
frame_rate
=
ist
->
framerate
.
num
?
ist
->
framerate
:
ist
->
st
->
avg_frame_rate
.
num
?
ist
->
st
->
avg_frame_rate
:
(
AVRational
){
25
,
1
};
if
(
ist
->
framerate
.
num
)
ost
->
frame_rate
=
ist
->
framerate
;
else
if
(
ist
->
st
->
avg_frame_rate
.
num
)
ost
->
frame_rate
=
ist
->
st
->
avg_frame_rate
;
else
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"Constant framerate requested "
"for the output stream #%d:%d, but no information "
"about the input framerate is available. Falling "
"back to a default value of 25fps. Use the -r option "
"if you want a different framerate.
\n
"
,
ost
->
file_index
,
ost
->
index
);
ost
->
frame_rate
=
(
AVRational
){
25
,
1
};
}
if
(
ost
->
enc
&&
ost
->
enc
->
supported_framerates
&&
!
ost
->
force_fps
)
{
int
idx
=
av_find_nearest_q_idx
(
ost
->
frame_rate
,
ost
->
enc
->
supported_framerates
);
...
...
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