Hello, I’m developing a program on OpenFrameworks on Windows 8 to capture and play an RTSP remote video stream.
I have no access to the actual stream yet, so I’m testing the program by streaming an H.264 video with VLC. I’ve opened another VLC instance on a remote computer and the VLC stream works fine, so the issue must be on the OF program.
Since the program isn’t working, I’ve tried both RTSP and HTTP. The respective addresses are:
streamRtspUrl = "rtsp://localhost:8554/video_address"; streamHttpUrl = "http://localhost:8080/video_address";
First I tried by loading an ofVideoPlayer with “vidPlayer.loadMovie ()” with either address.
With RTSP, the OF program prints that the vidPlayer has loaded, but then it freezes (white window, loading cursor, no exceptions).
With HTTP, the OF program returns an error:
"createMovieFromURL(): couldn't load url "http://localhost:8080/video_address": eOSERR -2048"
, and shows nothing (grey screen, arrow cursor).
Therefore, my second try was to install the Arturo’s ofGstVideoPlayer. So before loading the video stream I added:
vidPlayer.setPlayer (ofPtr <ofGstVideoPlayer> (new ofGstVideoPlayer));
With HTTP, the OF program prints that the vidPlayer has loaded and plays the video. If I reload the program, it plays the video again.
But if I restart the stream and reload the program, it prints that the vidPlayer has loaded, but then it shows nothing (grey screen, arrow cursor), and after a few secons it throws an exception at some GStreamer hidden funcion called “feeefeee()”.
With RTSP, the OF program prints that the vidPlayer has loaded and plays the video. But if I reload the program, it prints that the vidPlayer has loaded, then prints several errors:
"GStream-CRITICAL **: gst_segment_clip: assertion 'segment -> format == format' failed"
, and shows nothing (grey screen, arrow cursor). Also, if I reload the stream, the same issue happens. The program only starts playing again when I recompile it.
So I’m baffled that there’s so many different use cases with this ofVideoPlayer. Any idea of what is happening? Is it an issue with my program or with the addons? Thanks!