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
fbe6e296
Commit
fbe6e296
authored
Nov 16, 2011
by
Clément Bœsch
Committed by
Clément Bœsch
Nov 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: print codec timecode if available.
parent
b1ca5634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ffprobe.c
ffprobe.c
+11
-0
No files found.
ffprobe.c
View file @
fbe6e296
...
...
@@ -993,6 +993,17 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
if
(
s
)
print_str
(
"pix_fmt"
,
s
);
else
print_str_opt
(
"pix_fmt"
,
"unknown"
);
print_int
(
"level"
,
dec_ctx
->
level
);
if
(
dec_ctx
->
timecode_frame_start
>=
0
)
{
uint32_t
tc
=
dec_ctx
->
timecode_frame_start
;
print_fmt
(
"timecode"
,
"%02d:%02d:%02d%c%02d"
,
tc
>>
19
&
0x1f
,
// hours
tc
>>
13
&
0x3f
,
// minutes
tc
>>
6
&
0x3f
,
// seconds
tc
&
1
<<
24
?
';'
:
':'
,
// drop
tc
&
0x3f
);
// frames
}
else
{
print_str_opt
(
"timecode"
,
"N/A"
);
}
break
;
case
AVMEDIA_TYPE_AUDIO
:
...
...
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