Cannot run RTSP server example
cargo build from
$ROOT_DIR seemed to work fine - no errors or warnings. However, running the server was problematic. I first tried
cargo run "videotestsrc is-live=1 ! videoconvert ! x264enc ! rtph264pay name=pay0" and used
gst-launch-1.0 rtspsrc location="rtsp://localhost:8554/test" ! rtph264depay ! autovideosink as a client. The client seemed froze after reaching "Progress: (request) Sent PLAY request`. Nothing printed on either end.
I tried again, adding
GST_DEBUG=3 to the server side. After the client started to connect, it would print the following:
0:00:01.591758707 32593 0x7f489c007630 FIXME default gstutils.c:3981:gst_pad_create_stream_id_internal:<videotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id 0:00:01.600852056 32593 0x55a068cfc720 FIXME rtspmedia rtsp-media.c:3835:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing 0:00:01.602130496 32593 0x55a068cfc720 FIXME rtspmedia rtsp-media.c:3835:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing 0:00:01.602145477 32593 0x55a068cfc720 WARN rtspmedia rtsp-media.c:3861:gst_rtsp_media_suspend: media 0x7f48a403b270 was not prepared 0:00:01.605462678 32593 0x55a068cfc720 FIXME rtspclient rtsp-client.c:1646:handle_play_request:<GstRTSPClient@0x55a068deb130> Add support for seek style (null)
I also tried running
target/debug/binary_file_name directly and had the same results.