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
f9dd2e5e
Commit
f9dd2e5e
authored
Sep 08, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: print start_pts and duration_ts stream information
parent
0c5fe2f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ffprobe.xsd
doc/ffprobe.xsd
+2
-0
ffprobe.c
ffprobe.c
+4
-2
No files found.
doc/ffprobe.xsd
View file @
f9dd2e5e
...
...
@@ -121,7 +121,9 @@
<xsd:attribute
name=
"r_frame_rate"
type=
"xsd:string"
use=
"required"
/>
<xsd:attribute
name=
"avg_frame_rate"
type=
"xsd:string"
use=
"required"
/>
<xsd:attribute
name=
"time_base"
type=
"xsd:string"
use=
"required"
/>
<xsd:attribute
name=
"start_pts"
type=
"xsd:long"
/>
<xsd:attribute
name=
"start_time"
type=
"xsd:float"
/>
<xsd:attribute
name=
"duration_ts"
type=
"xsd:long"
/>
<xsd:attribute
name=
"duration"
type=
"xsd:float"
/>
<xsd:attribute
name=
"bit_rate"
type=
"xsd:int"
/>
<xsd:attribute
name=
"nb_frames"
type=
"xsd:int"
/>
...
...
ffprobe.c
View file @
f9dd2e5e
...
...
@@ -1715,8 +1715,10 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
print_q
(
"r_frame_rate"
,
stream
->
r_frame_rate
,
'/'
);
print_q
(
"avg_frame_rate"
,
stream
->
avg_frame_rate
,
'/'
);
print_q
(
"time_base"
,
stream
->
time_base
,
'/'
);
print_time
(
"start_time"
,
stream
->
start_time
,
&
stream
->
time_base
);
print_time
(
"duration"
,
stream
->
duration
,
&
stream
->
time_base
);
print_ts
(
"start_pts"
,
stream
->
start_time
);
print_time
(
"start_time"
,
stream
->
start_time
,
&
stream
->
time_base
);
print_ts
(
"duration_ts"
,
stream
->
duration
);
print_time
(
"duration"
,
stream
->
duration
,
&
stream
->
time_base
);
if
(
dec_ctx
->
bit_rate
>
0
)
print_val
(
"bit_rate"
,
dec_ctx
->
bit_rate
,
unit_bit_per_second_str
);
else
print_str_opt
(
"bit_rate"
,
"N/A"
);
if
(
stream
->
nb_frames
)
print_fmt
(
"nb_frames"
,
"%"
PRId64
,
stream
->
nb_frames
);
...
...
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