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
278d6ab9
Commit
278d6ab9
authored
Feb 06, 2012
by
Matthieu Bouron
Committed by
Stefano Sabatini
Feb 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: report bit rate in stream description
Signed-off-by:
Stefano Sabatini
<
stefasab@gmail.com
>
parent
3293b1ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
ffprobe.xsd
doc/ffprobe.xsd
+1
-0
ffprobe.c
ffprobe.c
+2
-0
No files found.
doc/ffprobe.xsd
View file @
278d6ab9
...
...
@@ -110,6 +110,7 @@
<xsd:attribute
name=
"time_base"
type=
"xsd:string"
use=
"required"
/>
<xsd:attribute
name=
"start_time"
type=
"xsd:float"
/>
<xsd:attribute
name=
"duration"
type=
"xsd:float"
/>
<xsd:attribute
name=
"bit_rate"
type=
"xsd:int"
/>
<xsd:attribute
name=
"nb_frames"
type=
"xsd:int"
/>
<xsd:attribute
name=
"nb_read_frames"
type=
"xsd:int"
/>
<xsd:attribute
name=
"nb_read_packets"
type=
"xsd:int"
/>
...
...
ffprobe.c
View file @
278d6ab9
...
...
@@ -1509,6 +1509,8 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
print_fmt
(
"time_base"
,
"%d/%d"
,
stream
->
time_base
.
num
,
stream
->
time_base
.
den
);
print_time
(
"start_time"
,
stream
->
start_time
,
&
stream
->
time_base
);
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
);
else
print_str_opt
(
"nb_frames"
,
"N/A"
);
if
(
nb_streams_frames
[
stream_idx
])
print_fmt
(
"nb_read_frames"
,
"%"
PRIu64
,
nb_streams_frames
[
stream_idx
]);
...
...
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