Trouble replicating a gst-launch pipeline in code

Pedro Côrte-Real pedro at pedrocr.net
Sat Dec 28 15:16:07 PST 2013


I'm trying to replicate this test pipeline in code:

gst-launch-1.0 rtspsrc location=rtsp://localhost:8554/test !
rtph264depay ! h264parse ! matroskamux ! filesink location="test.mkv"

I'm running this against gst-rtsp-server's video example all taken
from git master today. The pipeline runs fine and saves a file. My
code however doesn't work failing with:

basesrc gstbasesrc.c:2871:gst_base_src_loop:<udpsrc1> error: streaming
task paused, reason not-linked (-1)

My code is here:

https://github.com/pedrocr/camerasink/blob/master/bin/testsave.c

and the log-level 4 more detailed output around the error is here:

https://gist.github.com/pedrocr/8165293/raw/84c5714ed882a8f1885e58afc6d06aa5d280164e/gstlog.txt

it seems rtsp creates a pad and then can't link it to anything.

Any pointers would be welcome.

Pedro


More information about the gstreamer-devel mailing list