Search found 44 matches

Go to advanced search

by roland1
20 May 2023 14:25
Forum: Scripting VLC in lua
Topic: Saving data to a file
Replies: 1
Views: 4287

Re: Saving data to a file

hi, local f = io.open("C:/hello.txt", 'w') -- Messages -------- msg.dbg( [str1, [str2, [...]]] ): Output debug messages (-vv). msg.warn( [str1, [str2, [...]]] ): Output warning messages (-v). msg.err( [str1, [str2, [...]]] ): Output error messages. msg.info( [str1, [str2, [...]]] ): Output...
by roland1
27 Dec 2022 00:55
Forum: Scripting VLC in lua
Topic: How works Generic playlist parser
Replies: 2
Views: 6142

Re: How works Generic playlist parser

The Youtube Parser doesn't work anymore.
by roland1
21 Dec 2022 06:16
Forum: Scripting VLC in lua
Topic: Attempting to write a script to control Podcast Play
Replies: 4
Views: 5799

Re: Attempting to write a script to control Podcast Play

Hello, my extension 'progress' https://addons.videolan.org/p/1154006/ does the 'opposite', that is, if playcount > 0, then, input starts at 0, else it resumes to the last known position. Though, 'progress' itself stores playcount and last known position while running, and, idk where your podcasts ge...
by roland1
31 May 2021 20:51
Forum: Scripting VLC in lua
Topic: [Service Discovery] mediathek (ARD, ZDF, ...)
Replies: 10
Views: 20365

Re: [Service Discovery] mediathek (ARD, ZDF, ...)

Hi, ad 1) There are atm 462998 entries, nevertheless one can define a filter rule to match them... ad 2) mediathek is tested to work under windows 7 x64 with 7zip installed into the default/standard directory (s.t. mediathek can find it). 7zip is only necessary if the LZMA module is missing to vlc, ...
by roland1
10 Jan 2021 16:14
Forum: VLC media player for Windows Troubleshooting
Topic: Remaining time in playlist
Replies: 10
Views: 2228

Re: Remaining time in playlist

@franc modified to react on play/pause/stop and changed input (vlc 3): -- Playlist total duration -- Simple extension that shows the current playlist's total duration -- Lua scripts are tried in alphabetical order in the user's VLC config directory -- lua/{playlist,meta,intf}/ subdirectory on Window...
by roland1
11 Aug 2019 13:57
Forum: VLC media player for Windows Troubleshooting
Topic: lzma stream_filter module
Replies: 0
Views: 439

lzma stream_filter module

Hi,
is there a way to get the lzma stream_filter module for vlc 3
on windows 7 to work (without compiling)?
thanks in advance
by roland1
20 Jan 2019 22:52
Forum: Scripting VLC in lua
Topic: [Service Discovery] mediathek (ARD, ZDF, ...)
Replies: 10
Views: 20365

Re: [Service Discovery] mediathek (ARD, ZDF, ...)

Hi,
The path would have been
C:\Program Files\VideoLAN\VLC\lua\sd\mediathek.lua
but vlc MUST also have installed a module to decompress LZMA (afaik).
My windows test installation didn't provide it, so, mediathek is untested on windows.
Feedback is welcome.
regards
by roland1
23 Dec 2018 19:27
Forum: Scripting VLC in lua
Topic: Filename to txt
Replies: 6
Views: 3749

Re: Filename to txt

There are ways to make it work.
The extension from the first post seems to be open for feature requests (but idk, maybe it is dead), worth trying.
by roland1
26 Nov 2018 21:03
Forum: Scripting VLC in lua
Topic: Filename to txt
Replies: 6
Views: 3749

Re: Filename to txt

--[[ Copyright (C) 2018 roland1 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed...
by roland1
24 Nov 2018 16:14
Forum: Scripting VLC in lua
Topic: [Service Discovery] mediathek (ARD, ZDF, ...)
Replies: 10
Views: 20365

Re: [Service Discovery] mediathek (ARD, ZDF, ...)

I am glad that You got it working. Instruction-wise there is potential for improvement, but, more surprisingly (to me) nodes are created when typing in the text box even without hitting Enter. There is no (obvious (after a quick test)) way to decide whether a given query is "spontanous" ;(...
by roland1
22 Nov 2018 20:05
Forum: Scripting VLC in lua
Topic: [Service Discovery] mediathek (ARD, ZDF, ...)
Replies: 10
Views: 20365

Re: [Service Discovery] mediathek (ARD, ZDF, ...)

Hello Peripatus, top-right to the box where the program list should appear there is (or imho should be) a search-field ready to consume keyboard input. Type in Tatort followed by an Enter. (In theory) Then a node is created in the box and will be populated (took 40secs here). In case You were at tha...
by roland1
12 Nov 2018 20:04
Forum: Scripting VLC in lua
Topic: HTTPS requests
Replies: 2
Views: 1291

Re: HTTPS requests

Thanks for info.
by roland1
12 Nov 2018 00:11
Forum: Scripting VLC in lua
Topic: HTTPS requests
Replies: 2
Views: 1291

HTTPS requests

Hi forum,
I would like to use HTTPS requests in some (VLC, Lua) project.
I am grateful for any guidance.
by roland1
11 Jul 2018 20:15
Forum: Scripting VLC in lua
Topic: cannot copy file with special char in windows
Replies: 6
Views: 1631

Re: cannot copy file with special char in windows

but there is no io.copy. true. Untested: copy = function(from, to) local io = vlc.io or io local ff, err = io.open(from, "rb") if not ff then return nil, err end local ft, err = io.open(to, "wb") if not ft then return ft, err end local sz = 2^16 repeat local s = ff:read(sz) unti...
by roland1
08 Jul 2018 23:06
Forum: Scripting VLC in lua
Topic: cannot copy file with special char in windows
Replies: 6
Views: 1631

Re: cannot copy file with special char in windows

It depends, but maybe vlc.io Input/Output ------------ All path for this namespace are expected to be passed as UTF8 strings. io.mkdir("path", "mode"): Similar to mkdir(2). The mode is passed as a string to allow for octal representations. This returns a success code (non 0 in ca...
by roland1
20 Jun 2018 21:06
Forum: Scripting VLC in lua
Topic: vlc.config.userdatadir replacement for service discovery?
Replies: 5
Views: 1499

Re: vlc.config.userdatadir replacement for service discovery?

For comfort! :) After one-click activation of mediathek it populates all my past queries and I can browse through it. The screenshot at https://addons.videolan.org/p/1241457/ shows a playlist set up prior to activation through the search field (not hardcoded). There are also minor reasons for cachin...
by roland1
19 Jun 2018 19:28
Forum: Scripting VLC in lua
Topic: vlc.config.userdatadir replacement for service discovery?
Replies: 5
Views: 1499

Re: vlc.config.userdatadir replacement for service discovery?

It is for the mediathek sd script. There, persistence is needed (queries are persistent, database is also cached). In sd scripts (environment) vlc.config is nil, so, in absence of vlc.config.userdatadir I am about to build some search path (atm it is only ~/.local/share/vlc), s.t. other systems can ...
by roland1
18 Jun 2018 21:53
Forum: Scripting VLC in lua
Topic: vlc.config.userdatadir replacement for service discovery?
Replies: 5
Views: 1499

vlc.config.userdatadir replacement for service discovery?

Does anybody have a list of directories vlc might use as userdatadir (on different systems)?
by roland1
17 Jun 2018 19:16
Forum: Scripting VLC in lua
Topic: [Service Discovery] mediathek (ARD, ZDF, ...)
Replies: 10
Views: 20365

[Service Discovery] mediathek (ARD, ZDF, ...)

https://www.opendesktop.org/p/1241457/
Access to online streaming offering of public german TV channels ARD, ZDF, NDR, ...
Organized via persistent queries fully manipulated through the search field.
Uses the database of the MediathekView project https://mediathekview.de/
by roland1
10 Jun 2018 23:08
Forum: Scripting VLC in lua
Topic: [Extension] Progress: Auto-Restore, -Start, -Resume
Replies: 3
Views: 3009

Re: [Extension] Progress: Auto-Restore, -Start, -Resume

Thanks mederi.
Btw, having different units for duration and, say, time is suboptimal.
by roland1
06 May 2018 17:49
Forum: Scripting VLC in lua
Topic: [Extension] Progress: Auto-Restore, -Start, -Resume
Replies: 3
Views: 3009

Re: [Extension] Progress: Auto-Restore, -Start, -Resume

A user reports this extension doesn't work on vlc release 3.0.2. Are there any major changes? There is up to no diff between the README.txt files. Here are the occuring calls if it helps helping me: vlc.config.userdatadir() vlc.input.item() vlc.input.item():duration() vlc.input.item():uri() vlc.obje...
by roland1
18 Jan 2017 12:11
Forum: Scripting VLC in lua
Topic: HTTPS request in VLC
Replies: 2
Views: 4922

Re: HTTPS request in VLC

Try to wrap your code into a function called activate, i.e: function activate() --[[ your code ]] end To print a message, You can use e.g: vlc.msg.info("Hello World!") IIRC vlc uses Lua5.2, but it should be possible to just print _VERSION. Modules not compatible to _VERSION cannot be loade...
by roland1
20 Nov 2016 18:16
Forum: Scripting VLC in lua
Topic: Giant floating timecode
Replies: 2
Views: 4296

Re: Giant floating timecode

Hi,
is a (e.g. the default) vlc interface able to print the timecode as desired? (Cannot test atm)
by roland1
23 Jun 2015 11:54
Forum: Scripting VLC in lua
Topic: How to fetch urls, which is served with 206 - Partial Content
Replies: 8
Views: 2894

Re: How to fetch urls, which is served with 206 - Partial Content

You could repeat (some 10 times) open+read stream until json.decode succeed, ugly but could work as there is some chance to get the whole json. At the cost of having wget on Your (linux) machine this is nicer: -- -- di_vlc.lua - VLC Service Discovery Plugin -- Adds Digital Imported based Radiostatio...

Go to advanced search