Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
47abb64a
Commit
47abb64a
authored
Feb 15, 2014
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stats: write outputfile as tab separated with headers, easier for example gnuplot plotting
parent
578b83be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/stream_out/stats.c
modules/stream_out/stats.c
+5
-2
No files found.
modules/stream_out/stats.c
View file @
47abb64a
...
...
@@ -116,6 +116,8 @@ static int Open( vlc_object_t *p_this )
free
(
p_sys
);
free
(
outputFile
);
return
VLC_EGENERIC
;
}
else
{
fprintf
(
p_sys
->
output
,
"#prefix
\t
track
\t
type
\t
segment_number
\t
dts_difference
\t
length
\t
md5
\n
"
);
}
free
(
outputFile
);
}
...
...
@@ -193,7 +195,7 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
msg_Dbg
(
p_stream
,
"%s: Removing track type:%s id:%d"
,
p_sys
->
prefix
,
id
->
type
,
id
->
id
);
if
(
p_sys
->
output
)
{
fprintf
(
p_sys
->
output
,
"%s: final type:%s id:%d segments:%"
PRIu64
" md5:%16s
\n
"
,
fprintf
(
p_sys
->
output
,
"
#
%s: final type:%s id:%d segments:%"
PRIu64
" md5:%16s
\n
"
,
p_sys
->
prefix
,
id
->
type
,
id
->
id
,
id
->
segment_number
,
outputhash
);
}
else
{
msg_Info
(
p_stream
,
"%s: final type:%s id:%d segments:%"
PRIu64
" md5:%16s"
,
...
...
@@ -226,7 +228,8 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
*/
if
(
p_sys
->
output
)
{
fprintf
(
p_sys
->
output
,
"%s: track:%d type:%s segment_number:%"
PRIu64
" dts_difference:%"
PRId64
" length:%"
PRId64
" md5:%16s
\n
"
,
/* Write data in a form that it's easy to plot for example with gnuplot*/
fprintf
(
p_sys
->
output
,
"%s
\t
%d
\t
%s
\t
%"
PRIu64
"
\t
%"
PRId64
"
\t
%"
PRId64
"
\t
%16s
\n
"
,
p_sys
->
prefix
,
id
->
id
,
id
->
type
,
++
id
->
segment_number
,
p_block
->
i_dts
-
id
->
previous_dts
,
p_block
->
i_length
,
outputhash
);
...
...
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