main input error: open of '?rtsp://user:password@XXX.XXX.XXX.XXX/stream0' failed

This forum is about all development around libVLC.
tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

main input error: open of '?rtsp://user:password@XXX.XXX.XXX.XXX/stream0' failed

Postby tirolock » 04 Jun 2018 20:17

I downloaded this project https://sourceforge.net/projects/simplestlibvlcexample example from sourceForge.
I'm currently trying to modify the "simplest_libvlc_player" project so it can display a rtsp stream of mine...
Here's the .cpp code of the project:

Code: Select all

#include <Windows.h> #include "vlc/vlc.h" int main(int argc, char* argv[]) { libvlc_instance_t * inst; libvlc_media_player_t *mp; libvlc_media_t *m; libvlc_time_t length; int width; int height; int wait_time=5000; // Load the VLC engine inst = libvlc_new (0, NULL); m = libvlc_media_new_location(inst, "‪rtsp://user:password@XXX.XXX.XXX.XXX/stream0/"); //This is the line i changed // Create a media player playing environement mp = libvlc_media_player_new_from_media (m); // No need to keep the media now libvlc_media_release (m); // play the media_player libvlc_media_player_play (mp); // Let it play _sleep (length-wait_time); // Stop playing libvlc_media_player_stop (mp); // Free the media_player libvlc_media_player_release (mp); libvlc_release (inst); return 0; }
I would like to know what I'm doing wrong...
My rtsp link works when i open it in VlcMediaPlayer's Open Network Stream...

mfkl
Developer
Developer
Posts: 716
Joined: 13 Jun 2017 10:41

Re: main input error: open of '?rtsp://user:password@XXX.XXX.XXX.XXX/stream0' failed

Postby mfkl » 06 Jun 2018 09:38

Can you paste the logs?
https://mfkl.github.io

tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

Re: main input error: open of '?rtsp://user:password@XXX.XXX.XXX.XXX/stream0' failed

Postby tirolock » 06 Jun 2018 14:44

Code: Select all

simplest_libvlc_player.cpp c:\users\morneaulo\desktop\simplest_libvlc_example\simplest_libvlc_player\simplest_libvlc_player.cpp(85): warning C4566: character represented by universal-character-name '\u202A' cannot be represented in the current code page (1252) c:\users\morneaulo\desktop\simplest_libvlc_example\simplest_libvlc_player\simplest_libvlc_player.cpp(94): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details. c:\program files (x86)\windows kits\10\include\10.0.17134.0\ucrt\stdlib.h(1274): note: see declaration of '_sleep' simplest_libvlc_player.vcxproj -> C:\Users\morneaulo\Desktop\simplest_libvlc_example\Debug\simplest_libvlc_player.exe
Are those the logs you wanted to see?

Maybe the outputs from debug will help too!

Code: Select all

'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Users\morneaulo\Desktop\simplest_libvlc_example\Debug\simplest_libvlc_player.exe'. Symbols loaded. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Users\morneaulo\Desktop\simplest_libvlc_example\libvlc_bin\libvlc.dll'. Module was built without symbols. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Users\morneaulo\Desktop\simplest_libvlc_example\libvlc_bin\libvlccore.dll'. Module was built without symbols. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\windows.storage.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profapi.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\winmmbase.dll' 'simplest_libvlc_player.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\winmmbase.dll' 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Users\morneaulo\Desktop\simplest_libvlc_example\libvlc_bin\plugins\access\libdshow_plugin.dll'. Module was built without symbols. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Users\morneaulo\Desktop\simplest_libvlc_example\libvlc_bin\plugins\audio_output\libdirectsound_plugin.dll'. Module was built without symbols. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Users\morneaulo\Desktop\simplest_libvlc_example\libvlc_bin\plugins\audio_output\libwaveout_plugin.dll'. Module was built without symbols. 'simplest_libvlc_player.exe' (Win32): Loaded 'C:\Users\morneaulo\Desktop\simplest_libvlc_example\libvlc_bin\plugins\video_output\libdirectdraw_plugin.dll'. Module was built without symbols. main input error: open of `?rtsp://user:demotech!@71.244.57.190/stream1/' failed main input error: Your input can't be opened main input error: VLC is unable to open the MRL '?rtsp://user:password@XXX.XXX.XXX.XXX/stream1/'. Check the log for details. The thread 0x1b68 has exited with code 0 (0x0). The thread 0x1b00 has exited with code 0 (0x0). The thread 0x111c has exited with code 0 (0x0). The thread 0x18a0 has exited with code 0 (0x0). The thread 0x660 has exited with code 0 (0x0). The program '[6224] simplest_libvlc_player.exe' has exited with code 0 (0x0).
I don't see any other logs... And, before you ask, I did changed some infos in the log above to hide the IP/username/password.

tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

Re: main input error: open of '?rtsp://user:password@XXX.XXX.XXX.XXX/stream0' failed

Postby tirolock » 06 Jun 2018 17:02

I just changed sdk's version (downloaded 2.2.8 and replaced it) and it worked fine after.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 15 guests