Skip to content

Video on Demand RTP Server Connection Failed #631

Description

@lukasHoel

Hi,
I tried to setup an RTP-server as described in test/manager/VodTest.java:

MediaPlayerFactory factory = new MediaPlayerFactory("--rtsp-host=127.0.0.1", "--rtsp-port=5004");
MediaManager manager = factory.newMediaManager();
manager.addVideoOnDemand("Movie1", "videos/Video 1.mp4", true, vodMux);
Thread.currentThread().join();

videos/Video 1.mp4 is the path where an example video can be found on my system.

Then I tried to show that video on a client as described in test/streaming/StreamRtp.java:

EmbeddedMediaPlayerComponent playerComp = new EmbeddedMediaPlayerComponent();
MediaPlayer player = playerComp.getMediaPlayer();
String media = "rtsp://@127.0.0.1:5004/Movie1";
String options = formatRtpStream("127.0.0.1", 5004);

player.playMedia(media, options,
":no-sout-rtp-sap",
":no-sout-standard-sap",
":sout-all",
":sout-keep");

public static String formatRtpStream(String serverAddress, int serverPort) {
StringBuilder sb = new StringBuilder(60);
sb.append(":sout=#rtp{dst=");
sb.append(serverAddress);
sb.append(",port=");
sb.append(serverPort);
sb.append(",mux=ts}");
return sb.toString();
}

The video stays black and when closing the player I get the error:

[000000005b2fd610] live555 demux error: Failed to connect with rtsp://127.0.0.1:5004/Movie1
[0000000000466870] satip stream error: Failed to setup RTSP session
[000000005b15f190] main input error: Your input can't be opened
[000000005b15f190] main input error: VLC is unable to open the MRL 'rtsp://@127.0.0.1:5004/Movie1'. Check the log for details.

Is this even the right way to setup an RTP-Server and RTP-Client?
Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions