Search found 13 matches

Go to advanced search

by khuankhuan
24 Mar 2012 11:39
Forum: Scripting VLC in lua
Topic: Detecting buffer in VLC
Replies: 0
Views: 806

Detecting buffer in VLC

How can I detect the time/size of the current buffered video in VLC? I came across with this i_buffer, what it represents actually? Can it be linked to the time/size of buffer that VLC currently have? Please, I just need an explanation from anyone who knows about i_buffer, what it is and what it doe...
by khuankhuan
20 Mar 2012 15:15
Forum: Scripting VLC in lua
Topic: how to perform non-blocking net.listen_tcp
Replies: 6
Views: 3245

Re: how to perform non-blocking net.listen_tcp

Did you try to replace vlc.net.listen_tcp by vlc.net.connect_tcp with the poll method?
Or maybe the telnet or rc interface will do the trick.
Nope, it doesn't solve the problem, it has to do with the method returned by the vlc.net.listen_tcp. Guess all developers are just too busy...
by khuankhuan
17 Mar 2012 07:59
Forum: Scripting VLC in lua
Topic: how to perform non-blocking net.listen_tcp
Replies: 6
Views: 3245

Re: how to perform non-blocking net.listen_tcp

Thanks for the reply, but its not what I am looking for. I am looking for a non-blocking vlc.net.listen_tcp method, there are 2 methods available, which are accept and fds, as shown in the code in my first post. But the problem is that the accept method is blocking, meaning the lua will stop at the ...
by khuankhuan
13 Mar 2012 16:05
Forum: Scripting VLC in lua
Topic: how to perform non-blocking net.listen_tcp
Replies: 6
Views: 3245

how to perform non-blocking net.listen_tcp

How can I perform a non-blockin net.listen_tcp in lua? Currently from the readme I am using the following script: local l = vlc.net.listen_tcp( "localhost", 1234 ) while true do local fd = l:accept() if fd >= 0 do net.send( fd, "blabla" ) net.close( fd ) end end The readme said t...
by khuankhuan
06 Mar 2012 14:08
Forum: Scripting VLC in lua
Topic: Buffer Variable
Replies: 3
Views: 1375

Re: Buffer Variable

Ok, I tried checking this "cache" value from lua, it is the main input buffering value (expressed in percentage), however when I stop the stream from the server, and the client plays the remaining buffer until it stops, why the "cache" value is still 1? Help are much needed here ...
by khuankhuan
06 Mar 2012 13:32
Forum: Scripting VLC in lua
Topic: Buffer Variable
Replies: 3
Views: 1375

Re: Buffer Variable

I see that there is this "cache" (level of data cached [0 .. 1]) at the input variable TODO list, may I know has it been implemented? Are this the buffer used by VLC for the input stream?
by khuankhuan
06 Mar 2012 13:30
Forum: Scripting VLC in lua
Topic: Buffer Variable
Replies: 3
Views: 1375

Buffer Variable

Hi, I am trying to detect the buffer in VLC when receiving a rtp-ts stream from a server, is there a buffer variable in VLC that I can use to check the content of the buffer? Can I achieve this by using lua? Thanks
by khuankhuan
21 Feb 2012 06:38
Forum: Scripting VLC in lua
Topic: var_create() in lua
Replies: 1
Views: 923

Re: var_create() in lua

Is there any developer tutorial regarding variables and passing the values? (Most importantly between a lua extension and the avi.c)
Need help here thanks.
by khuankhuan
20 Feb 2012 19:18
Forum: Scripting VLC in lua
Topic: var_create() in lua
Replies: 1
Views: 923

var_create() in lua

I had been trying and searching but end up failing to create a variable using lua extension, and access the variable from the vlc source file (avi.c). I am trying to pass some value from lua extension to be used by some function in avi.c Any how I can achieve this or is there other better way? Examp...
by khuankhuan
20 Feb 2012 19:13
Forum: Scripting VLC in lua
Topic: var.add_callback usage
Replies: 2
Views: 2694

var.add_callback usage

I am currently trying to do a lua extension that can almost precisely pause the video at 0.04s before the next second (e.g: pause at 4.96s before entering 5s). My current method is keep on reading to the variable "time" and pause accordingly, but this is an iterative try method which requi...
by khuankhuan
15 Nov 2011 11:53
Forum: VLC stream-output (sout)
Topic: Dynamic Video Streaming using VLC?
Replies: 4
Views: 1940

Re: Dynamic Video Streaming using VLC?

Yes I am aware of DASH and HLS (although it is to be available in v1.2). However currently my project is to implement another method of delivering multi bitrate videos by having multiple video source files, for example, 5 video files encoded with different bit rate. Currently I am confused on where ...
by khuankhuan
15 Nov 2011 03:35
Forum: VLC stream-output (sout)
Topic: Dynamic Video Streaming using VLC?
Replies: 4
Views: 1940

Re: Dynamic Video Streaming using VLC?

No one could answer my question? Help is much needed over here. Just to give more information on what I intend to do: I wish to perform Adaptive bitrate streaming similar to what is shown here: http://www.iis.net/media/experiencesmoothstreaming The method that I am going to use is to have a several ...
by khuankhuan
02 Nov 2011 17:42
Forum: VLC stream-output (sout)
Topic: Dynamic Video Streaming using VLC?
Replies: 4
Views: 1940

Dynamic Video Streaming using VLC?

This is my first post so please don't flame me if I posted this question at the wrong place. I am a Uni student that are currently working on a "Dynamic Video Streaming Platform" project, vlc seems to fit this role well, however through searching, I notice that there were no topic related ...

Go to advanced search