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
f7d52724
Commit
f7d52724
authored
May 25, 2012
by
Christian Schmidt
Committed by
Stefano Sabatini
May 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: display the codec profile in show_stream()
Signed-off-by:
Stefano Sabatini
<
stefasab@gmail.com
>
parent
36f714f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ffprobe.xsd
doc/ffprobe.xsd
+1
-0
ffprobe.c
ffprobe.c
+6
-0
No files found.
doc/ffprobe.xsd
View file @
f7d52724
...
@@ -83,6 +83,7 @@
...
@@ -83,6 +83,7 @@
<xsd:attribute
name=
"index"
type=
"xsd:int"
use=
"required"
/>
<xsd:attribute
name=
"index"
type=
"xsd:int"
use=
"required"
/>
<xsd:attribute
name=
"codec_name"
type=
"xsd:string"
/>
<xsd:attribute
name=
"codec_name"
type=
"xsd:string"
/>
<xsd:attribute
name=
"codec_long_name"
type=
"xsd:string"
/>
<xsd:attribute
name=
"codec_long_name"
type=
"xsd:string"
/>
<xsd:attribute
name=
"profile"
type=
"xsd:string"
/>
<xsd:attribute
name=
"codec_type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"codec_type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"codec_time_base"
type=
"xsd:string"
use=
"required"
/>
<xsd:attribute
name=
"codec_time_base"
type=
"xsd:string"
use=
"required"
/>
<xsd:attribute
name=
"codec_tag"
type=
"xsd:string"
use=
"required"
/>
<xsd:attribute
name=
"codec_tag"
type=
"xsd:string"
use=
"required"
/>
...
...
ffprobe.c
View file @
f7d52724
...
@@ -1364,6 +1364,7 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
...
@@ -1364,6 +1364,7 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
print_int
(
"index"
,
stream
->
index
);
print_int
(
"index"
,
stream
->
index
);
if
((
dec_ctx
=
stream
->
codec
))
{
if
((
dec_ctx
=
stream
->
codec
))
{
const
char
*
profile
=
NULL
;
if
((
dec
=
dec_ctx
->
codec
))
{
if
((
dec
=
dec_ctx
->
codec
))
{
print_str
(
"codec_name"
,
dec
->
name
);
print_str
(
"codec_name"
,
dec
->
name
);
print_str
(
"codec_long_name"
,
dec
->
long_name
);
print_str
(
"codec_long_name"
,
dec
->
long_name
);
...
@@ -1372,6 +1373,11 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
...
@@ -1372,6 +1373,11 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
print_str_opt
(
"codec_long_name"
,
"unknown"
);
print_str_opt
(
"codec_long_name"
,
"unknown"
);
}
}
if
(
dec
&&
(
profile
=
av_get_profile_name
(
dec
,
dec_ctx
->
profile
)))
print_str
(
"profile"
,
profile
);
else
print_str_opt
(
"profile"
,
"unknown"
);
s
=
av_get_media_type_string
(
dec_ctx
->
codec_type
);
s
=
av_get_media_type_string
(
dec_ctx
->
codec_type
);
if
(
s
)
print_str
(
"codec_type"
,
s
);
if
(
s
)
print_str
(
"codec_type"
,
s
);
else
print_str_opt
(
"codec_type"
,
"unknown"
);
else
print_str_opt
(
"codec_type"
,
"unknown"
);
...
...
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