Playing RTSP stream fails in LIBVLC 2.2.0

This forum is about all development around libVLC.
avi_tal
Blank Cone
Blank Cone
Posts: 19
Joined: 10 Oct 2012 17:49

Playing RTSP stream fails in LIBVLC 2.2.0

Postby avi_tal » 14 Jul 2013 12:57

Dear friends,
Does anyone knows why I am unable to play RTSP streams in LIBVLC when DLLS are taken from version 2.2.0?
I have done this before many times with LIBVLC 2.0.5.
Was there any change to this command?
For example, I am trying to play the following link: rtsp://media-us-2.soundreach.net/slcn_sports.sdp. It plays well in VLC Media Player 2.2.0 but not with LIBVLC using the same DLLs.
I really like Version 2.2.0 since it supports PNG image format with transparency.
Your help is greatly appreciated.
Thanks,
Avi Tal.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Playing RTSP stream fails in LIBVLC 2.2.0

Postby Jean-Baptiste Kempf » 17 Jul 2013 19:06

Look at the logs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

avi_tal
Blank Cone
Blank Cone
Posts: 19
Joined: 10 Oct 2012 17:49

Re: Playing RTSP stream fails in LIBVLC 2.2.0

Postby avi_tal » 17 Jul 2013 23:32

Dear Jean-Baptiste Kempf,

Thanks allot for your reply.
Following your suggestion, I looked at the error messages using the --verbose switch, and saw that LIBVLC 2.2.0 thinks that the URL given by the command libvlc_media_new_path(libvlc, URL) is a file which is located at the current executing directory, so the error is like: "can't open file: C:\rtsp://media-us-2.soundreach.net/slcn_sports.sdp" .
LIBVLC 2.0.5 understands that this URL is actually a stream, and opens it correctly with no errors.

Any idea on what could be the reason for that? Was there any command change that relate to libvlc_media_new_path()?

I also tried to set the log file location via the --logfile switch but this didn't work.

Thanks,
Avi Tal.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Playing RTSP stream fails in LIBVLC 2.2.0

Postby Jean-Baptiste Kempf » 18 Jul 2013 00:34

The URL is not correct, sorry
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

avi_tal
Blank Cone
Blank Cone
Posts: 19
Joined: 10 Oct 2012 17:49

Re: Playing RTSP stream fails in LIBVLC 2.2.0

Postby avi_tal » 18 Jul 2013 07:26

Dear Jean-Baptiste Kempf,

Maybe I was misunderstood:

The URL given to libvlc_media_new_path() is "rtsp://media-us-2.soundreach.net/slcn_sports.sdp"
VLCLIB 2.2.0 appends the "C:\" to the URL only when showing the error.

Any idea?

Thanks,
Avi.

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: Playing RTSP stream fails in LIBVLC 2.2.0

Postby sherington » 18 Jul 2013 13:05

I think you're supposed to use libvlc_media_new_location() for URL's.

avi_tal
Blank Cone
Blank Cone
Posts: 19
Joined: 10 Oct 2012 17:49

Re: Playing RTSP stream fails in LIBVLC 2.2.0

Postby avi_tal » 18 Jul 2013 15:39

Dear Sherington,

Thanks allot for your reply.

You are right. URLs need libvlc_media_new_location().
The thing is that VLCLIB 2.0.5 is able to open URLs using libvlc_media_new_path() by examining the URL string, while VLCLIB 2.2.0 does not.
Do you happen to know how to understand what is the URL type (file or stream) using VLC functions?

Thanks,

Avi Tal.

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: Playing RTSP stream fails in LIBVLC 2.2.0

Postby sherington » 18 Jul 2013 17:12

Do you happen to know how to understand what is the URL type (file or stream) using VLC functions?
In my own libvlc bindings, I simply check if my input string "looks like" a URL or not (don't need a VLC function for that), and then call the appropriate VLC function to play it.

avi_tal
Blank Cone
Blank Cone
Posts: 19
Joined: 10 Oct 2012 17:49

Re: Playing RTSP stream fails in LIBVLC 2.2.0

Postby avi_tal » 18 Jul 2013 17:23

Thanks.
I am now doing that too.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 2 guests