Search found 29 matches

Go to advanced search

by nokangaroo
09 Feb 2020 21:46
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Fix for vlc3 dvdnav start-time bug backported from vlc-git
Replies: 0
Views: 166

Fix for vlc3 dvdnav start-time bug backported from vlc-git

Since trac.videolan.org seems to be broken (I'm not the only one who can neither log in nor reset my password) I post this here. This fix for the vlc3 --start-time failure is backported from vlc-git (commit 59ea3e67fbc7ff5a649cc549ec512ffe55d62a51). It seems to work, but the resume times will be dif...
by nokangaroo
28 May 2015 20:06
Forum: VLC media player for Linux and friends Troubleshooting
Topic: (Solved) Fixing the cli.lua help option to build with Lua 5.3
Replies: 1
Views: 342

(Solved) Fixing the cli.lua help option to build with Lua 5.3

Since my bug reports keep getting killed, I have to fix this myself: diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua index e2fa856..d6d3001 100644 --- a/share/lua/intf/cli.lua +++ b/share/lua/intf/cli.lua @@ -343,7 +343,7 @@ function help(name,client,arg) end if val.args then str = str ...
by nokangaroo
26 May 2015 19:32
Forum: VLC media player for Linux and friends Troubleshooting
Topic: --start-time commandline option does not work with vlc-3.0 and DVDs
Replies: 1
Views: 418

Re: --start-time commandline option does not work with vlc-3.0 and DVDs

Solved - sort of, at least the Lua part. According to the bug report I filed about missing documentation of the change in vlc.object.input(), "time" , VLC object variables are internal and won't be documented, so users writing their own interface scripts will have to study the files in vlc...
by nokangaroo
24 May 2015 23:09
Forum: VLC media player for Linux and friends Troubleshooting
Topic: --start-time commandline option does not work with vlc-3.0 and DVDs
Replies: 1
Views: 418

--start-time commandline option does not work with vlc-3.0 and DVDs

I already know that you have multiply the time in seconds with 1000000 (why?) for seeking with lua in vlc-3.0. But that does not work on the commandline: vlc dvd://<path>#<title> --start-time=50000000 does not seek 50 seconds into the title. Neither does --start-time 50 or :start-time=50 or changing...
by nokangaroo
23 Mar 2015 16:02
Forum: Web and scripting
Topic: Documenting cli.lua - a stripped console-only CLI
Replies: 6
Views: 1345

Re: Documenting cli.lua - a stripped console-only CLI

I was wrong - it can be further reduced. And I am having trouble believing this myself. Not sure if this code proves anything - I wanted to find out about polling, but it turns out it's not even required. Anyway, for local commandline control of VLC this seems to be the way to go (3 cheers for good ...
by nokangaroo
16 Mar 2015 19:46
Forum: Web and scripting
Topic: Documenting cli.lua - a stripped console-only CLI
Replies: 6
Views: 1345

Re: Documenting cli.lua - a stripped console-only CLI

A minimal console-only host module. I can't reduce it any further (and I don't think it would make sense to try). vlc.net.POLLIN = 1 and vlc.net.POLLOUT = 4, at least on my box. To use it, move it to $HOME/.local/share/vlc/lua/intf/modules/minimalhost.lua and require it in the shell.lua script. The ...
by nokangaroo
14 Mar 2015 19:21
Forum: Web and scripting
Topic: Documenting cli.lua - a stripped console-only CLI
Replies: 6
Views: 1345

Re: Documenting cli.lua - a stripped console-only CLI

A hostless version of the CLI with the needed parts of host.lua inserted (to have a single file for studying). To avoid too much repetition, I left out some of the functions. Unfortunately, polling (which is required) seems to be undocumented. This should be easier. --[==============================...
by nokangaroo
12 Mar 2015 10:20
Forum: Web and scripting
Topic: Documenting cli.lua - a stripped console-only CLI
Replies: 6
Views: 1345

Re: Documenting cli.lua - a stripped console-only CLI

A stripped-down console-only version of host.lua. To use it, move it to $HOME/.local/share/vlc/lua/intf/modules/consolehost.lua (doesn't need to be compiled) and require it in the shell.lua script. The h.status_callbacks[host.status.password] = on_password line can be commented out. --[=============...
by nokangaroo
11 Mar 2015 08:00
Forum: Web and scripting
Topic: Documenting cli.lua - a stripped console-only CLI
Replies: 6
Views: 1345

Re: Documenting cli.lua - a stripped console-only CLI

This is what I have so far. It might be a good idea to replace "set_var" with "set" and "get_var" with "get" and to use something like "set_env" and "get_env" for setting the environment (the most used commands should have the shortest name...
by nokangaroo
09 Mar 2015 12:58
Forum: Web and scripting
Topic: Documenting cli.lua - a stripped console-only CLI
Replies: 6
Views: 1345

Re: Documenting cli.lua - a stripped console-only CLI

A version of the main loop with error handling: --GPL goes here. I hope I did not commit a crime by forgetting the copyright notice while running do -- accept new connections and select active clients local write,read = h:accept_and_select() -- handle clients in write mode for _, client in pairs(wri...
by nokangaroo
07 Mar 2015 05:37
Forum: Web and scripting
Topic: Documenting cli.lua - a stripped console-only CLI
Replies: 6
Views: 1345

Documenting cli.lua - a stripped console-only CLI

Pardon me if I am still in the wrong forum. Put this where it belongs if necessary. I posted an earlier version of this in "scripting VLC with Lua", and I can put it back there. The copyright notice is adapted from host.lua. --[==============================================================...
by nokangaroo
06 Mar 2015 00:31
Forum: Scripting VLC in lua
Topic: A stripped console-only Lua CLI for use with shell scripts
Replies: 4
Views: 1728

Re: A stripped console-only Lua CLI for use with shell scripts

Thanks! Can you please explain how your script works? I really don't know jack about Lua; I'm working on my best guess here. Since this is about documenting the Lua interface, please contribute. I am not really competent to write documentation; I'm only doing it because I could not find anything use...
by nokangaroo
05 Mar 2015 06:22
Forum: Scripting VLC in lua
Topic: A stripped console-only Lua CLI for use with shell scripts
Replies: 4
Views: 1728

A stripped console-only Lua CLI for use with shell scripts

Consider this to be part of the VLC documentation (which is extremely lacking). Feedback would be welcome. The copyright notice is adapted from host.lua. --[==========================================================================[ shell.lua: A stripped console-only CLI for use with shell scripts -...
by nokangaroo
17 Feb 2015 17:33
Forum: VLC media player for Linux and friends Troubleshooting
Topic: How do I load the vlc object in lua?
Replies: 2
Views: 555

How do I load the vlc object in lua?

I am trying to rewrite cli.lua so it can be used in shell scripts (that makes more sense to me than trying to write an entire interface in lua). What I want to do is something like this: my_variable=`lua <path/to/cli.lua> <arguments>` echo $my_variable >> my_textfile.txt #saving current state echo $...
by nokangaroo
12 Feb 2015 23:05
Forum: VLC media player for Linux and friends Troubleshooting
Topic: (Solved) Fix opencv compilation in vlc-3.0.0 for archlinux
Replies: 2
Views: 627

Re: (Solved) Fix opencv compilation in vlc-3.0.0 for archlinux

Sorry, it does not work for me without the patch; I just tried it again: video_filter/opencv_wrapper.c:42:20: fatal error: cxcore.h: No such file or directory #include <cxcore.h> ^ compilation terminated. Makefile:12228: recipe for target 'video_filter/opencv_wrapper.lo' failed make[4]: *** [video_f...
by nokangaroo
11 Feb 2015 20:27
Forum: VLC media player for Linux and friends Troubleshooting
Topic: (Solved) Fix opencv compilation in vlc-3.0.0 for archlinux
Replies: 2
Views: 627

(Solved) Fix opencv compilation in vlc-3.0.0 for archlinux

vlc-3.0-opencv.patch: diff --git a/modules/video_filter/opencv_wrapper.c b/modules/video_filter/opencv_wrapper.c index 0ca54a3..ce0d900 100644 --- a/modules/video_filter/opencv_wrapper.c +++ b/modules/video_filter/opencv_wrapper.c @@ -39,8 +39,8 @@ #include <vlc_image.h> #include "filter_pictur...
by nokangaroo
29 Jan 2015 13:25
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Help with bash script!
Replies: 1
Views: 1236

Help with bash script!

Can you try prefixing your command with sudo -u <yourusername> ? That should run it as a normal user.
by nokangaroo
29 Jan 2015 11:52
Forum: VLC media player for Linux and friends Troubleshooting
Topic: [Solved] Patches to make lua dvd chapters work with 2.1.6
Replies: 2
Views: 370

[Solved] Patches to make lua dvd chapters work with 2.1.6

No need to use then with 2.2.0 - as I said, that's where I ***stole*** them from. As for formatted patches, I assume you mean this (hope it works, it is without the changes to cli.lua) Two patches are taken from the archlinux vlc-2.1.5 build: vlc-2.1.5-ffmpeg-2.4.patch vlc-2.0.7-vaapi-compat.patch S...
by nokangaroo
28 Jan 2015 17:39
Forum: VLC media player for Linux and friends Troubleshooting
Topic: [Solved] DVD bookmarking using the shell and lua interface
Replies: 5
Views: 637

[Solved] DVD bookmarking using the shell and lua interface

Next try. I didn't expect to have to provide production code. This was supposed to be a quick way to test the scripts, which aren't production code either diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua index 5af1e73..9b0f07e 100644 --- a/share/lua/intf/cli.lua +++ b/share/lua/intf/cli....
by nokangaroo
27 Jan 2015 07:48
Forum: VLC media player for Linux and friends Troubleshooting
Topic: [Solved] DVD bookmarking using the shell and lua interface
Replies: 5
Views: 637

[Solved] DVD bookmarking using the shell and lua interface

Edit: The patch mixes spaces and tabs, but it works when applied locally.
by nokangaroo
27 Jan 2015 07:47
Forum: VLC media player for Linux and friends Troubleshooting
Topic: [Solved] DVD bookmarking using the shell and lua interface
Replies: 5
Views: 637

[Solved] DVD bookmarking using the shell and lua interface

Is that what you meant? diff -ruN /home/BUILD/cli.lua /home/BUILD/cli-mod.lua --- /home/BUILD/cli.lua 2014-10-04 18:00:36.819182000 +0200 +++ /home/BUILD/cli-mod.lua 2015-01-25 12:59:55.421282000 +0100 @@ -70,7 +70,7 @@ running = true --[[ Setup default environement ]] -env = { prompt = "> &quo...
by nokangaroo
26 Jan 2015 10:19
Forum: VLC media player for Linux and friends Troubleshooting
Topic: [Solved] DVD bookmarking using the shell and lua interface
Replies: 5
Views: 637

[Solved] DVD bookmarking using the shell and lua interface

This is an example of how to automate VLC using shell scripts on top of the lua interface. These scripts could also be modified to bookmark media files and bluray disks, so I hope they are of more general interest than DVD playback. Earlier versions of these scripts, and some general remarks, are po...
by nokangaroo
26 Jan 2015 10:14
Forum: VLC media player for Linux and friends Troubleshooting
Topic: [Solved] Patches to make lua dvd chapters work with 2.1.6
Replies: 2
Views: 370

[Solved] Patches to make lua dvd chapters work with 2.1.6

These patches are not my own code; they are just diffs with the corresponding files of vlc-2.2.0 (May be the first time in recorded history that this actually worked). Tested with vlc-2.1.6. dvdnav.c.diff: --- vlc-2.1.5/modules/access/dvdnav.c.orig 2013-06-24 20:00:38.000000000 +0200 +++ vlc-2.1.5/m...

Go to advanced search