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
c809b89a
Commit
c809b89a
authored
Jul 30, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: show audio frame channels and channel_layout
parent
23fc4dd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
ffprobe.xsd
doc/ffprobe.xsd
+2
-0
ffprobe.c
ffprobe.c
+8
-0
No files found.
doc/ffprobe.xsd
View file @
c809b89a
...
@@ -62,6 +62,8 @@
...
@@ -62,6 +62,8 @@
<!-- audio attributes -->
<!-- audio attributes -->
<xsd:attribute
name=
"sample_fmt"
type=
"xsd:string"
/>
<xsd:attribute
name=
"sample_fmt"
type=
"xsd:string"
/>
<xsd:attribute
name=
"nb_samples"
type=
"xsd:long"
/>
<xsd:attribute
name=
"nb_samples"
type=
"xsd:long"
/>
<xsd:attribute
name=
"channels"
type=
"xsd:int"
/>
<xsd:attribute
name=
"channel_layout"
type=
"xsd:string"
/>
<!-- video attributes -->
<!-- video attributes -->
<xsd:attribute
name=
"width"
type=
"xsd:long"
/>
<xsd:attribute
name=
"width"
type=
"xsd:long"
/>
...
...
ffprobe.c
View file @
c809b89a
...
@@ -1647,6 +1647,14 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
...
@@ -1647,6 +1647,14 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
if
(
s
)
print_str
(
"sample_fmt"
,
s
);
if
(
s
)
print_str
(
"sample_fmt"
,
s
);
else
print_str_opt
(
"sample_fmt"
,
"unknown"
);
else
print_str_opt
(
"sample_fmt"
,
"unknown"
);
print_int
(
"nb_samples"
,
frame
->
nb_samples
);
print_int
(
"nb_samples"
,
frame
->
nb_samples
);
print_int
(
"channels"
,
av_frame_get_channels
(
frame
));
if
(
av_frame_get_channel_layout
(
frame
))
{
av_bprint_clear
(
&
pbuf
);
av_bprint_channel_layout
(
&
pbuf
,
av_frame_get_channels
(
frame
),
av_frame_get_channel_layout
(
frame
));
print_str
(
"channel_layout"
,
pbuf
.
str
);
}
else
print_str_opt
(
"channel_layout"
,
"unknown"
);
break
;
break
;
}
}
show_tags
(
av_frame_get_metadata
(
frame
));
show_tags
(
av_frame_get_metadata
(
frame
));
...
...
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