VLC ActiveX stream resolution/version issue?

This forum is about all development around libVLC.
JosefRune
New Cone
New Cone
Posts: 3
Joined: 16 Dec 2014 12:17

VLC ActiveX stream resolution/version issue?

Postby JosefRune » 16 Dec 2014 12:40

Hello, I need help with the VLC ActiveX to show a Axis IP Camera stream, which can be open like:
AxVLCPlugin21.playlist.add(rtsp://user:pass@IP:port/axis-media/media.amp?videocodec=h264&resolution=160x120")
AxVLCPlugin21.playlist.play()

The problem is, that when I open and watch the stream with the resolution above (160x120-very small program window in the corner of my screen), when I want to look closely on the camera (and open the 800x600 stream) I cannot. When I want to watch the stream in full screen, I need rather open the higher resolution. But this does not work:
AxVLCPlugin21.playlist.stop()
AxVLCPlugin21.playlist.clear()
AxVLCPlugin21.playlist.add(rtsp://user:pass@IP:port/axis-media/media.amp?videocodec=h264&resolution=800x600")
AxVLCPlugin21.playlist.play()

The stream shown after this is again 160x120 only. Whatever I do or the paramters change is, the stream is shown only in the resolution chosen at the program load.

Other issue that I am facing is that first showing of the stream takes 15 seconds after the program starts. I am in the LAN and there is no network issue (watching the stream using SDK from Axis takes less than 1 second to load).
I also fought the adding of VLC to VB.NET so there might be a bug/problem?
vlc-1.1.11-win32.exe - the COM component VideoLAN ActiveX Plugin v2 can be added to VB.NET, but there is a 15 seconds lag for the stream to show (even when loading the rtsp from VLC mediaplayer/Open network stream...)
vlc-2.1.5-win32.exe - the COM component VideoLAN ActiveX Plugin v2 CANNOT (error) be added to VB.NET, but the stream is shown immediately (using VLC mediaplayer/Open network stream...)

So at the moment I use the VLC v1.1.11 because that is the highest version that can be added to VB.NET (Windows XP 32bit)

Any suggestions how to be able to reopen the stream with another resolution and how to get rid of the 15 seconds lag when loading the stream?

REMARK: when opening the MJPEG (axis-cgi/mjpg/video.cgi) there is no startup lag at all. So there is a H264 issue I think.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC ActiveX stream resolution/version issue?

Postby Rémi Denis-Courmont » 16 Dec 2014 13:51

The syntax of the URL is up to Axis, not VLC. Please refer to Axis or their documentation.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

JosefRune
New Cone
New Cone
Posts: 3
Joined: 16 Dec 2014 12:17

Re: VLC ActiveX stream resolution/version issue?

Postby JosefRune » 16 Dec 2014 18:15

The URL syntax is OK and working. I found a workaround for switching the streams as follows:
AxVLCPlugin21.playlist.add(rtsp://user:pass@IP:port/axis-media/med ... on=160x120")
AxVLCPlugin21.playlist.add(rtsp://user:pass@IP:port/axis-media/med ... on=800x600")

And then I choose the desired resolution regarding the item index:
AxVLCPlugin21.playlist.playItem(1)

However the problem with 15 seconds lag before showing the H264 stream persists in v1.1.11. Any version above shows the screen immediately but the axvlc.dll cannot be added to .NET.

JosefRune
New Cone
New Cone
Posts: 3
Joined: 16 Dec 2014 12:17

Re: VLC ActiveX stream resolution/version issue?

Postby JosefRune » 19 Dec 2014 10:45

Opening a MJPG stream takes 1 seconds while opening a H264 from the same camera takes 15 seconds. Why?


Return to “Development around libVLC”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 17 guests