Help with video playback using activex

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
kerplunkwhoops
New Cone
New Cone
Posts: 1
Joined: 09 Oct 2008 13:41

Help with video playback using activex

Postby kerplunkwhoops » 09 Oct 2008 13:57

Hello

I'm having difficulty playing video using the activex component (v0.9.4) embedded in either a vb6 or .net 2005 app.

I can play the video successfully in the vlc.exe main program, but cannot get it to play in the activex viewer.

I am using an Axis network camera which offers several urls to access the video stream. I have tried some of the available urls - all work in vlc.exe, but none work in the activex component.

Here are the debug logs when trying to play the different streams from the activex component:

Code: Select all

3 main / libvlc CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU 3 main / libvlc looking for memcpy module: 3 candidates 3 main / libvlc using memcpy module "memcpymmxext" 3 main / interaction thread 4920 (Interaction control) created at priority 0 (interface/interaction.c:382) 3 main / interaction thread started 3 main / preparser waiting for thread initialization 3 main / preparser thread started 3 main / preparser thread 5112 (preparser) created at priority 0 (playlist/thread.c:79) 3 main / fetcher waiting for thread initialization 3 main / fetcher thread started 3 main / fetcher thread 4980 (fetcher) created at priority 0 (playlist/thread.c:108) 3 main / playlist waiting for thread initialization 3 main / playlist thread started 3 main / playlist rebuilding array of current - root Playlist 3 main / playlist rebuild done - 0 items, index -1 3 main / playlist thread 4860 (playlist) created at priority 0 (playlist/thread.c:117) 3 main / interface looking for interface module: 1 candidate 3 main / interface using interface module "hotkeys" 3 main / interface thread 868 (interface) created at priority 0 (interface/interface.c:168) 3 main / interface thread started 3 main / playlist adding item `test' ( http://192.168.11.46/mjpg/video.mjpg ) 3 main / playlist starting new item 3 main / playlist processing request item test node Playlist skip 0 3 main / playlist rebuilding array of current - root Playlist 3 main / playlist rebuild done - 1 items, index 0 3 main / playlist creating new input thread 3 main / input Creating an input for 'test' 3 main / input waiting for thread initialization 3 main / input thread started 3 main / input `http://192.168.11.46/mjpg/video.mjpg' gives access `http' demux `' path `192.168.11.46/mjpg/video.mjpg' 3 main / input creating demux: access='http' demux='' path='192.168.11.46/mjpg/video.mjpg' 3 main / demux looking for access_demux module: 0 candidates 2 main / demux no access_demux module matched "http" 3 main / input creating access 'http' path='192.168.11.46/mjpg/video.mjpg' 3 main / access looking for access module: 1 candidate 1 main / access option http-proxy does not exist 3 main / access net: connecting to 192.168.11.46 port 80 3 main / access connection: Resource temporarily unavailable 3 main / input thread 1304 (input) created at priority 1 (input/input.c:370) 3 main / access connection succeeded (socket = 5444) 3 access_mms / access HTTP reply 'HTTP/1.0 200 OK' 1 access_mms / access invalid chunk FATAL (0x2d2d) 3 access_mms / access complete header size=0 1 access_mms / access header size == 0 2 main / access no access module matching "http" could be loaded 3 main / access waitpipe: object killed 1 main / input open of `http://192.168.11.46/mjpg/video.mjpg' failed: could not create access 3 main / playlist finished input 3 main / playlist dying input 3 main / playlist dying input 3 main / input thread ended 3 main / playlist dead input 3 main / input thread times: real 0m0.203000s, kernel 0m0.015600s, user 0m0.000000s 3 main / input thread 1304 joined (playlist/engine.c:244) 3 main / playlist starting new item 3 main / playlist changing item without a request (current 0/1) 3 main / playlist nothing to play

Code: Select all

3 main / libvlc CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU 3 main / libvlc looking for memcpy module: 3 candidates 3 main / libvlc using memcpy module "memcpymmxext" 3 main / interaction thread 4780 (Interaction control) created at priority 0 (interface/interaction.c:382) 3 main / interaction thread started 3 main / preparser waiting for thread initialization 3 main / preparser thread started 3 main / preparser thread 4788 (preparser) created at priority 0 (playlist/thread.c:79) 3 main / fetcher waiting for thread initialization 3 main / fetcher thread started 3 main / fetcher thread 5568 (fetcher) created at priority 0 (playlist/thread.c:108) 3 main / playlist waiting for thread initialization 3 main / playlist thread started 3 main / playlist rebuilding array of current - root Playlist 3 main / playlist rebuild done - 0 items, index -1 3 main / playlist thread 4676 (playlist) created at priority 0 (playlist/thread.c:117) 3 main / interface looking for interface module: 1 candidate 3 main / interface using interface module "hotkeys" 3 main / interface thread 4736 (interface) created at priority 0 (interface/interface.c:168) 3 main / playlist adding item `test' ( rtsp://192.168.11.46/mpeg4/media.amp ) 3 main / playlist starting new item 3 main / playlist processing request item test node Playlist skip 0 3 main / playlist rebuilding array of current - root Playlist 3 main / playlist rebuild done - 1 items, index 0 3 main / playlist creating new input thread 3 main / input Creating an input for 'test' 3 main / interface thread started 3 main / input waiting for thread initialization 3 main / input thread started 3 main / input thread 4820 (input) created at priority 1 (input/input.c:370) 3 main / input `rtsp://192.168.11.46/mpeg4/media.amp' gives access `rtsp' demux `' path `192.168.11.46/mpeg4/media.amp' 3 main / input creating demux: access='rtsp' demux='' path='192.168.11.46/mpeg4/media.amp' 3 main / demux looking for access_demux module: 1 candidate 3 live555 / demux RTP subsession 'video/MP4V-ES' 3 main / input selecting program id=0 3 live555 / demux setup start: 0 stop:0 3 live555 / demux We have a timeout of 60 seconds 3 main / generic waiting for thread initialization 3 main / generic thread started 3 main / generic thread 5600 (liveMedia-timeout) created at priority 0 (live555.cpp:1054) 3 live555 / demux spawned timeout thread 3 live555 / demux play start: 0 stop:0 3 main / demux using access_demux module "live555" 3 main / input looking for a subtitle file in C:\Program Files\Microsoft Visual Studio\VB98\ 3 main / decoder looking for decoder module: 31 candidates 3 kate / decoder kate: OpenDecoder 1 main / decoder no suitable decoder module for fourcc `mp4v'. VLC probably does not support this sound or video format. 3 main / decoder killing decoder fourcc `mp4v', 0 PES in FIFO 3 main / input `rtsp://192.168.11.46/mpeg4/media.amp' successfully opened 3 main / input control type=1
I have also tried a video file aswell - again this works in vlc.exe but not activex:

Code: Select all

3 main / libvlc CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU 3 main / libvlc looking for memcpy module: 3 candidates 3 main / libvlc using memcpy module "memcpymmxext" 3 main / interaction thread 4904 (Interaction control) created at priority 0 (interface/interaction.c:382) 3 main / interaction thread started 3 main / preparser waiting for thread initialization 3 main / preparser thread started 3 main / preparser thread 1332 (preparser) created at priority 0 (playlist/thread.c:79) 3 main / fetcher waiting for thread initialization 3 main / fetcher thread started 3 main / fetcher thread 4636 (fetcher) created at priority 0 (playlist/thread.c:108) 3 main / playlist waiting for thread initialization 3 main / playlist thread started 3 main / playlist thread 5460 (playlist) created at priority 0 (playlist/thread.c:117) 3 main / interface looking for interface module: 1 candidate 3 main / interface using interface module "hotkeys" 3 main / playlist rebuilding array of current - root Playlist 3 main / playlist rebuild done - 0 items, index -1 3 main / interface thread 5368 (interface) created at priority 0 (interface/interface.c:168) 3 main / interface thread started 3 main / playlist adding item `test' ( http://code.revolunet.com/VLCcontrols/bunny.mp4 ) 3 main / playlist starting new item 3 main / playlist processing request item test node Playlist skip 0 3 main / playlist rebuilding array of current - root Playlist 3 main / playlist rebuild done - 1 items, index 0 3 main / playlist creating new input thread 3 main / input Creating an input for 'test' 3 main / input waiting for thread initialization 3 main / input thread started 3 main / input thread 5180 (input) created at priority 1 (input/input.c:370) 3 main / input `http://code.revolunet.com/VLCcontrols/bunny.mp4' gives access `http' demux `' path `code.revolunet.com/VLCcontrols/bunny.mp4' 3 main / input creating demux: access='http' demux='' path='code.revolunet.com/VLCcontrols/bunny.mp4' 3 main / demux looking for access_demux module: 0 candidates 2 main / demux no access_demux module matched "http" 3 main / input creating access 'http' path='code.revolunet.com/VLCcontrols/bunny.mp4' 3 main / access looking for access module: 1 candidate 1 main / access option http-proxy does not exist 3 main / access net: connecting to code.revolunet.com port 80 3 main / access connection: Resource temporarily unavailable 3 main / access connection succeeded (socket = 4772) 3 access_mms / access HTTP reply 'HTTP/1.1 200 OK' 1 access_mms / access invalid chunk FATAL (0x0) 3 access_mms / access complete header size=0 1 access_mms / access header size == 0 2 main / access no access module matching "http" could be loaded 3 main / access waitpipe: object killed 1 main / input open of `http://code.revolunet.com/VLCcontrols/bunny.mp4' failed: could not create access 3 main / playlist finished input 3 main / playlist dying input 3 main / playlist dying input 3 main / playlist dying input 3 main / input thread ended 3 main / playlist dead input 3 main / input thread times: real 0m0.252000s, kernel 0m0.015600s, user 0m0.015600s 3 main / input thread 5180 joined (playlist/engine.c:244) 3 main / playlist starting new item 3 main / playlist changing item without a request (current 0/1) 3 main / playlist nothing to play
My code is very simple:

Code: Select all

Private Sub Form_Load() Dim lngItem As Long Me.VLCPluginV2.Log.verbosity = 3 lngItem = Me.VLCPluginV2.playlist.Add("http://code.revolunet.com/VLCcontrols/bunny.mp4", "test") Me.VLCPluginV2.playlist.playItem lngItem End Sub
Can anyone help me with this?

Are there any in depth examples of how to use the activex component? The info on the wiki is very minimal.

Many thanks

Paul

shivashankarp
New Cone
New Cone
Posts: 1
Joined: 30 Oct 2008 07:40

Re: Help with video playback using activex

Postby shivashankarp » 30 Oct 2008 07:47

I faced this issue in Vista. I'm sure it would have reproduced in any windows version. The problem was that the ActiveX control was trying to load plugin DLLs from C:\Program Files\VideoLAN\VLC\plugins folder. Those DLLs were inturn dependent on certain DLLs in C:\Program Files\VideoLAN\VLC folder. Since the C:\Program Files\VideoLAN\VLC folder was not in path, IE was not able to resolve those DLLs and hence the plugin DLL load failed. I added the C:\Program Files\VideoLAN\VLC folder to PATH (environment variable) after which the plugin DLLs loaded properly and video started showing up.

I would call this a bug in VLC ActiveX. These dependencies should have been taken care of during the installation but unfortunately not so.

slycharlie
Blank Cone
Blank Cone
Posts: 16
Joined: 22 Oct 2008 17:09
VLC version: 0.9.4
Operating System: Windows xp sp3
Location: Africa
Contact:

Re: Help with video playback using activex

Postby slycharlie » 30 Oct 2008 08:53

I faced this issue in Vista. I'm sure it would have reproduced in any windows version. The problem was that the ActiveX control was trying to load plugin DLLs from C:\Program Files\VideoLAN\VLC\plugins folder. Those DLLs were inturn dependent on certain DLLs in C:\Program Files\VideoLAN\VLC folder. Since the C:\Program Files\VideoLAN\VLC folder was not in path, IE was not able to resolve those DLLs and hence the plugin DLL load failed. I added the C:\Program Files\VideoLAN\VLC folder to PATH (environment variable) after which the plugin DLLs loaded properly and video started showing up.

I would call this a bug in VLC ActiveX. These dependencies should have been taken care of during the installation but unfortunately not so.
facing the same prob with 0.9.4 within the browser plugin i only get audio no video via RTSP i thought it was something to do with avi files but apparently its not the case. would you know of any 0.9 builds that may not have this problem? because i really like 0.9's pause and resume capabilities as compared to 0.8.6(good with seeking forward and back not pause and resume) when it comes to VOD


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests