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
99230b7e
Commit
99230b7e
authored
Mar 05, 2018
by
Ravindra
Committed by
Karthick Jeyapal
Mar 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavformat/dashenc: Option to set timeout for socket I/O operation
parent
86c7d8df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
muxers.texi
doc/muxers.texi
+2
-0
dashenc.c
libavformat/dashenc.c
+4
-0
No files found.
doc/muxers.texi
View file @
99230b7e
...
...
@@ -264,6 +264,8 @@ of the adaptation sets and a,b,c,d and e are the indices of the mapped streams.
To map all video (or audio) streams to an AdaptationSet, "v" (or "a") can be used as stream identifier instead of IDs.
When no assignment is defined, this defaults to an AdaptationSet for each stream.
@item -timeout @var{timeout}
Set timeout for socket I/O operations. Applicable only for HTTP output.
@end table
@anchor{framecrc}
...
...
libavformat/dashenc.c
View file @
99230b7e
...
...
@@ -117,6 +117,7 @@ typedef struct DASHContext {
AVIOContext
*
mpd_out
;
AVIOContext
*
m3u8_out
;
int
streaming
;
int64_t
timeout
;
}
DASHContext
;
static
struct
codec_string
{
...
...
@@ -269,6 +270,8 @@ static void set_http_options(AVDictionary **options, DASHContext *c)
av_dict_set
(
options
,
"user_agent"
,
c
->
user_agent
,
0
);
if
(
c
->
http_persistent
)
av_dict_set_int
(
options
,
"multiple_requests"
,
1
,
0
);
if
(
c
->
timeout
>=
0
)
av_dict_set_int
(
options
,
"timeout"
,
c
->
timeout
,
0
);
}
static
void
get_hls_playlist_name
(
char
*
playlist_name
,
int
string_size
,
...
...
@@ -1440,6 +1443,7 @@ static const AVOption options[] = {
{
"http_persistent"
,
"Use persistent HTTP connections"
,
OFFSET
(
http_persistent
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
0
},
0
,
1
,
E
},
{
"hls_playlist"
,
"Generate HLS playlist files(master.m3u8, media_%d.m3u8)"
,
OFFSET
(
hls_playlist
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
E
},
{
"streaming"
,
"Enable/Disable streaming mode of output. Each frame will be moof fragment"
,
OFFSET
(
streaming
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
E
},
{
"timeout"
,
"set timeout for socket I/O operations"
,
OFFSET
(
timeout
),
AV_OPT_TYPE_DURATION
,
{
.
i64
=
-
1
},
-
1
,
INT_MAX
,
.
flags
=
E
},
{
NULL
},
};
...
...
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