Problem with encrypted onvif backchannel

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Problem with encrypted onvif backchannel

I'm using gstreamer 1.14.

I need to run tls encrypted  backchannel audio.  I can get working encrypted video stream from server to client , but no backchannel audio stream.

I get next warnings

0:00:12.664311692  5542       0xc6bcf0 WARN                 srtpdec gstsrtpdec.c:770:request_key_with_signal:<srtpdec0> Could not get caps for stream with SSRC 1356955624
0:00:12.664363445  5542       0xc6bcf0 WARN                 srtpdec gstsrtpdec.c:1212:gst_srtp_dec_chain:<srtpdec0> Invalid buffer, dropping

I've used code from test-onvif-backchannel, test-onvif, test-auth-record examples.

My pipelines:
Server backchannel pipeline - 

capsfilter caps=\"application/x-rtp, media=audio, payload=0, clock-rate=8000, encoding-name=PCMU\" name=depay_backchannel ! rtppcmudepay ! "
        "  tee name=t ! queue ! pulsesink async=false  

Server main pipeline -  

videotestsrc is-live=true ! x264enc ! rtph264pay name=pay0 pt=96 

Client main pipeline

rtspsrc location=rtsps://user:password@ tls-validation-flags=generic-error name=rtsp_source backchannel=onvif   " //protocols=0x1+0x20
    " ! capsfilter caps=application/x-rtp,media=video ! queue !  decodebin ! queue ! xvimagesink async=false

Client backchannel audio - 

"audiotestsrc is-live=true wave=red-noise ! mulawenc ! rtppcmupay  ! "
            " \'application/x-rtp, payload=(int)8, ssrc=(uint)1356955624\' ! srtpenc key=\"012345678901234567890123456789012345678901234567890123456789\" ! "
            " appsink name=out"

The problem, I can see it's improper caps in server backchannel pipeline, but I don't know how to fix it.

Could You please give any advice to get working solution?

Best Regards,  

gstreamer-devel mailing list
[hidden email]