Why do these two Gstreamer pipelines work fine separately, but fail when tee'd from the source?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Why do these two Gstreamer pipelines work fine separately, but fail when tee'd from the source?

PeterT
The below pipeline works fine if I either send it to UDP, or if I sent to a file. When I connect them with a tee, the pipeline does nothing (no data sent to file or UDP port). No errors are printed, however, when I hit CTRL-C the pipeline waits for EOL shutdown and I have to CTRL-C again.
gst-launch-1.0 -e \
  rtspsrc location='rtsp://userid:pwd@10.0.0.1:554' latency=100 ! \
  tee name=t ! \
    queue ! \
    rtph264depay ! \
    h264parse ! \
    mp4mux ! \
    filesink location=tee.mp4 \
  t. ! \
    queue ! \
    udpsink host=192.168.1.140 port=5000
This works fine:
gst-launch-1.0 -e \
  rtspsrc location='rtsp://userid:pwd@10.0.0.1:554' latency=100 ! \
  rtph264depay ! \
  h264parse ! \
  mp4mux ! \
  filesink location=tee.mp4
...and this works fine:
gst-launch-1.0 -e \
  rtspsrc location='rtsp://userid:pwd@10.0.0.1:554' latency=100 ! \
  udpsink host=192.168.1.140 port=5000
Thoughts?

Sent from the GStreamer-devel mailing list archive at Nabble.com.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Why do these two Gstreamer pipelines work fine separately, but fail when tee'd from the source?

gotsring
Can anyone else comment?

At least for me (Gst 1.18.2 on Windows 10 using local IP camera) the
pipelines fail to start because mp4mux can't negotiate caps successfully, I
suspect because of the codec_data cap. The warnings for this were displayed
running when running with gst-debug=3.

I don't know enough about codec_data on whether this is required or if it
can be stripped by another element. This is the pipeline that worked for me,
though not ideal:
gst-launch-1.0 rtspsrc location='rtsp://10.42.0.59/1' latency=100 !
rtph264depay ! h264parse ! nvh264dec ! videoconvert ! nvh264enc ! mp4mux !
filesink location=test.mp4



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel