Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d452d256
Commit
d452d256
authored
Nov 20, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: also add some statistics.
parent
90a6468c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
modules/misc/lua/libs/input.c
modules/misc/lua/libs/input.c
+2
-0
share/lua/intf/rc.lua
share/lua/intf/rc.lua
+2
-0
No files found.
modules/misc/lua/libs/input.c
View file @
d452d256
...
...
@@ -176,6 +176,8 @@ static int vlclua_input_stats( lua_State *L )
STATS_FLOAT
(
input_bitrate
)
STATS_INT
(
demux_read_bytes
)
STATS_FLOAT
(
demux_bitrate
)
STATS_INT
(
demux_corrupted
)
STATS_INT
(
demux_discontinuity
)
STATS_INT
(
decoded_video
)
STATS_INT
(
displayed_pictures
)
STATS_INT
(
lost_pictures
)
...
...
share/lua/intf/rc.lua
View file @
d452d256
...
...
@@ -329,6 +329,8 @@ function stats(name,client)
client
:
append
(
"| input bitrate : "
..
string.format
(
"%6.0f bB/s"
,
stats_tab
[
"input_bitrate"
]
*
8000
))
client
:
append
(
"| demux bytes read : "
..
string.format
(
"%8.0f kB"
,
stats_tab
[
"demux_read_bytes"
]
/
1000
))
client
:
append
(
"| demux bitrate : "
..
string.format
(
"%6.0f kB/s"
,
stats_tab
[
"demux_bitrate"
]
*
8000
))
client
:
append
(
"| demux corrupted : "
..
string.format
(
"%5i"
,
stats_tab
[
"demux_corrupted"
]))
client
:
append
(
"| discontinuities : "
..
string.format
(
"%5i"
,
stats_tab
[
"demux_discontinuity"
]))
client
:
append
(
"|"
)
client
:
append
(
"+-[Video Decoding]"
)
client
:
append
(
"| video decoded : "
..
string.format
(
"%5i"
,
stats_tab
[
"decoded_video"
]))
...
...
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