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
d1996146
Commit
d1996146
authored
Feb 13, 2010
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also dump item name, uri, duration and es info.
parent
3fd49ca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
share/lua/intf/dumpmeta.lua
share/lua/intf/dumpmeta.lua
+23
-3
No files found.
share/lua/intf/dumpmeta.lua
View file @
d1996146
...
...
@@ -22,7 +22,9 @@
--]==========================================================================]
--[[ to dump meta data information in the debug output, run:
vlc -I lua --lua-intf dumpmeta -v=0 coolmusic.mp3
vlc -I lua --lua-intf dumpmeta coolmusic.mp3
Additional options can improve performance and output readability:
-V dummy -A dummy --no-video-title --no-media-library --verbose-objects +lua,-all -v=0
--]]
local
item
...
...
@@ -30,11 +32,29 @@ repeat
item
=
vlc
.
input
.
item
()
until
(
item
and
item
:
is_preparsed
())
or
vlc
.
misc
.
should_die
()
-- preparsing doesn't always provide all the information we want (like duration)
repeat
until
item
:
stats
()[
"demux_read_bytes"
]
>
0
or
vlc
.
misc
.
should_die
()
vlc
.
msg
.
info
(
"name: "
..
item
:
name
())
vlc
.
msg
.
info
(
"uri: "
..
vlc
.
strings
.
decode_uri
(
item
:
uri
()))
vlc
.
msg
.
info
(
"duration: "
..
tostring
(
item
:
duration
()))
vlc
.
msg
.
info
(
"meta data:"
)
local
meta
=
item
:
metas
()
vlc
.
msg
.
info
(
"Dumping meta data"
)
if
meta
then
for
key
,
value
in
pairs
(
meta
)
do
vlc
.
msg
.
info
(
key
..
": "
..
value
)
vlc
.
msg
.
info
(
" "
..
key
..
": "
..
value
)
end
else
vlc
.
msg
.
info
(
" no meta data available"
)
end
vlc
.
msg
.
info
(
"info:"
)
for
cat
,
data
in
pairs
(
item
:
info
())
do
vlc
.
msg
.
info
(
" "
..
cat
)
for
key
,
value
in
pairs
(
data
)
do
vlc
.
msg
.
info
(
" "
..
key
..
": "
..
value
)
end
end
...
...
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