Record a live stream to disk using VLC ActiveX

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
metalman1

Record a live stream to disk using VLC ActiveX

Postby metalman1 » 29 Mar 2006 20:19

Is it possible to record a live stream to disk using VLC ActiveX (while the activex display the video)

This is the HTML/Javascript code to display the video (assuming the embedded object id is "vlc")
var options = new Array(":input-repeat=0");
var mrl = 'udp://@' + '224.1.1.5' + ':' + '9101';
document.vlc.addTarget(mrl, options, 4+8, -666);

Is it possible to add a "Stream output MRL" (like on the GUI) ?
And also have the activex behave as if the "Play locally" field was checked.

I've tried to look at the setVariable() without success. I guess if it's possible it would be with setVariable().

Thanks a million if you come up with the answer

usbhell
Blank Cone
Blank Cone
Posts: 18
Joined: 13 Jan 2006 13:11

Postby usbhell » 30 Mar 2006 10:47

I think you just need something like this, but change the output string to your specific needs, its the dst=display that makes it play on the screen too

var options = new Array(":input-repeat=0",":sout=#duplicate{dst=display,dst=std{access=file,mux=ps,url=movie.mpg}}");

mustset
New Cone
New Cone
Posts: 4
Joined: 23 Mar 2007 12:07
Location: Antwerp - Belgium

Multiple comcurrent VLC instances for recording different ch

Postby mustset » 20 Apr 2007 15:16

Friends,

My objective is to record multiple channels (each from a different multicast IP/port pair) to the disk. From an external application I launch a VLC instance (vlc.exe process) for each channel. To launch VLC, I use the following command;

vlc udp:xxx.xxx.xxx.xxx:pppp --demux=dump --demuxdump-file=xxx.tmp

In most cases it works fine but in some cases (usually when I configure more than 30 channels) some of the vlc processes die just after it is created.

Do you know if there is a limit on the maximum number of concurrent instances? Or do I have to specify any other option?

Thanking in advance.

mustset
New Cone
New Cone
Posts: 4
Joined: 23 Mar 2007 12:07
Location: Antwerp - Belgium

Postby mustset » 22 Apr 2007 23:48

As additional information on the previously mentioned problem, below I paste some logs produced by VLC. A log file for the successfully launched instance and another log file for the crashed instance.

I would appreciate any advice.

Thanks.

OK...........................................
-- logger module started --
main debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE SSE2 FPU
main debug: looking for memcpy module: 4 candidates
main debug: using memcpy module "memcpymmxext"
main debug: waiting for thread completion
main debug: thread 3728 (playlist) created at priority 0 (playlist/playlist.c:184)
main debug: waiting for thread completion
main debug: thread 3744 (preparser) created at priority 0 (playlist/playlist.c:210)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: thread 3768 (interface) created at priority 0 (interface/interface.c:231)
main debug: looking for interface module: 1 candidate
logger: VLC media player - version 0.8.6a Janus - (c) 1996-2007 the VideoLAN team
logger:
Warning: if you can't access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc -I wx"

logger: using logger...
logger debug: opening logfile `C:\RecManLog\VLC\vlcENC8A.log'
main debug: using interface module "logger"
main debug: thread 3796 (interface) created at priority 0 (interface/interface.c:231)
main debug: adding playlist item `udp:@229.10.10.15:10000' ( udp:@229.10.10.15:10000 )
main debug: looking for interface module: 3 candidates
main debug: using interface module "wxwidgets"
main debug: thread 3832 (manager) created at priority 0 (interface/interface.c:216)
wxwidgets debug: Using last windows config '(-1,0,0,1152,864)(0,-4,-4,1160,844)(6,0,0,-1,150)'
wxwidgets debug: id=0 p=(-4,-4) s=(1160,844)
wxwidgets debug: id=6 p=(0,0) s=(-1,150)
wxwidgets debug: last windows config is invalid (ignored)
main debug: nothing requested, starting
main debug: creating new input thread
main debug: waiting for thread completion
main debug: creating statistics handler
main debug: thread 3948 (input) created at priority 1 (input/input.c:265)
main debug: `udp:@229.10.10.15:10000' gives access `udp' demux `' path `@229.10.10.15:10000'
main debug: enforced demux ` dump'
main debug: creating access 'udp' path='@229.10.10.15:10000'
main debug: looking for access2 module: 6 candidates
access_udp debug: opening server=:0 local=229.10.10.15:10000
main debug: net: connecting to '[]:0@[229.10.10.15]:10000'
main debug: looking for network module: 1 candidate
ipv6 debug: 229.10.10.15: Host or service not found
main debug: using network module "ipv6"
main debug: removing module "ipv6"
main debug: looking for network module: 1 candidate
ipv4 debug: resolving 229.10.10.15:10000...
ipv4 debug: resolving :0...
ipv4 debug: Winsock best interface is 65539
ipv4 debug: IP_ADD_MEMBERSHIP multicast request
main debug: using network module "ipv4"
main debug: removing module "ipv4"
main debug: using access2 module "access_udp"
main debug: pre buffering
access_udp debug: detected TS over raw UDP
main debug: creating demux: access='udp' demux='dump' path='@229.10.10.15:10000'
main debug: looking for demux2 module: 1 candidate
demuxdump: dumping raw stream to file `d:\Captured\07042121_ENC8A.TMP'
main debug: using demux2 module "demuxdump"
main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\
access_udp warning: unimplemented query in control
main debug: `udp:@229.10.10.15:10000' successfully opened
...........................................

NOT OK....................................................
-- logger module started --
main debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE SSE2 FPU
main debug: looking for memcpy module: 4 candidates
main debug: using memcpy module "memcpymmxext"
main debug: waiting for thread completion
main debug: thread 3728 (playlist) created at priority 0 (playlist/playlist.c:184)
main debug: waiting for thread completion
main debug: thread 3744 (preparser) created at priority 0 (playlist/playlist.c:210)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: thread 3768 (interface) created at priority 0 (interface/interface.c:231)
main debug: looking for interface module: 1 candidate
logger: VLC media player - version 0.8.6a Janus - (c) 1996-2007 the VideoLAN team
logger:
Warning: if you can't access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc -I wx"

logger: using logger...
logger debug: opening logfile `C:\RecManLog\VLC\vlcCH8A.log'
main debug: using interface module "logger"
main debug: thread 3796 (interface) created at priority 0 (interface/interface.c:231)
main debug: adding playlist item `udp:@229.10.10.24:10000' ( udp:@229.10.10.24:10000 )
main debug: looking for interface module: 3 candidates
main debug: using interface module "wxwidgets"
main debug: thread 3832 (manager) created at priority 0 (interface/interface.c:216)
main debug: removing all interfaces
main debug: thread times: real 0m0.062588s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 3832 joined (interface/interface.c:258)
main debug: removing module "wxwidgets"
main debug: thread times: real 0m0.140824s, kernel 0m0.015625s, user 0m0.000000s
main debug: thread 3796 joined (interface/interface.c:258)
-- logger module stopped --
-- logger module started --
main debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE SSE2 FPU
main debug: looking for memcpy module: 4 candidates
main debug: using memcpy module "memcpymmxext"
main debug: waiting for thread completion
main debug: thread 3728 (playlist) created at priority 0 (playlist/playlist.c:184)
main debug: waiting for thread completion
main debug: thread 3744 (preparser) created at priority 0 (playlist/playlist.c:210)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: thread 3768 (interface) created at priority 0 (interface/interface.c:231)
main debug: looking for interface module: 1 candidate
logger: VLC media player - version 0.8.6a Janus - (c) 1996-2007 the VideoLAN team
logger:
Warning: if you can't access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc -I wx"

logger: using logger...
logger debug: opening logfile `C:\RecManLog\VLC\vlcCH8A.log'
main debug: using interface module "logger"
main debug: thread 3796 (interface) created at priority 0 (interface/interface.c:231)
main debug: adding playlist item `udp:@229.10.10.24:10000' ( udp:@229.10.10.24:10000 )
main debug: looking for interface module: 3 candidates
main debug: using interface module "wxwidgets"
main debug: thread 3832 (manager) created at priority 0 (interface/interface.c:216)
main debug: removing all interfaces
main debug: thread times: real 0m0.031294s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 3832 joined (interface/interface.c:258)
main debug: removing module "wxwidgets"
main debug: thread times: real 0m0.062588s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 3796 joined (interface/interface.c:258)
-- logger module stopped --


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 13 guests