Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
81498ceb
Commit
81498ceb
authored
Mar 12, 2014
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: Match stream id
Quite useful to select by pid in MPEG-TS.
parent
6998a9f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
cmdutils.c
cmdutils.c
+6
-0
avtools-common-opts.texi
doc/avtools-common-opts.texi
+2
-0
No files found.
cmdutils.c
View file @
81498ceb
...
...
@@ -1530,6 +1530,12 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)
return
1
;
}
return
0
;
}
else
if
(
*
spec
==
'i'
&&
*
(
spec
+
1
)
==
':'
)
{
int
stream_id
;
char
*
endptr
;
spec
+=
2
;
stream_id
=
strtol
(
spec
,
&
endptr
,
0
);
return
stream_id
==
st
->
id
;
}
else
if
(
!*
spec
)
/* empty specifier, matches everything */
return
1
;
...
...
doc/avtools-common-opts.texi
View file @
81498ceb
...
...
@@ -42,6 +42,8 @@ streams of this type.
@item p:@var{program_id}[:@var{stream_index}]
If @var{stream_index} is given, then matches stream number @var{stream_index} in
program with id @var{program_id}. Otherwise matches all streams in this program.
@item i:@var{stream_id}
Match the stream by stream id (e.g. PID in MPEG-TS container).
@end table
@section Generic options
...
...
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