<p dir="ltr"><br>
Le 3 juil. 2016 5:41 PM, "bazigg" <<a href="mailto:aparshina93@gmail.com">aparshina93@gmail.com</a>> a écrit :<br>
><br>
> Hello!<br>
><br>
> I created my gst rtsp server but I have some problem with connecting it with<br>
> particular client (axis camera station). i am using version 1.8.1<br>
><br>
> The client can work with ip camera. Here is the example of sdp in successful<br>
> session:<br>
><br>
> v=0<br>
> o=- 1466356337748047 1466356337748047 IN IP4 192.168.5.102<br>
> s=Media Presentation<br>
> e=NONE<br>
> c=IN IP4 0.0.0.0<br>
> b=AS:50000<br>
> t=0 0<br>
> a=control:rtsp://<a href="http://192.168.5.102/axis-media/media.amp?videocodec=h264&camera=1&resolution=640x480&fps=15">192.168.5.102/axis-media/media.amp?videocodec=h264&camera=1&resolution=640x480&fps=15</a><br>
> a=range:npt=0.000000-<br>
> m=video 0 RTP/AVP 96<br>
> b=AS:50000<br>
> a=framerate:15.0<br>
> a=transform:1,0,0;0,1,0;0,0,1<br>
> a=control:rtsp://<a href="http://192.168.5.102/axis-media/media.amp/trackID=1?videocodec=h264&camera=1&resolution=640x480&fps=15">192.168.5.102/axis-media/media.amp/trackID=1?videocodec=h264&camera=1&resolution=640x480&fps=15</a><br>
> a=rtpmap:96 H264/90000<br>
> a=fmtp:96 packetization-mode=1; profile-level-id=420029;<br>
> sprop-parameter-sets=Z0IAKeNQFAe2AtwEBAaQeJEV,aM48gA==<br>
> SETUP<br>
> rtsp://<a href="http://192.168.5.102/axis-media/media.amp/trackID=1?videocodec=h264&camera=1&resolution=640x480&fps=15">192.168.5.102/axis-media/media.amp/trackID=1?videocodec=h264&camera=1&resolution=640x480&fps=15</a><br>
> RTSP/1.0<br>
> User-Agent: AXIS Virtual Camera<br>
> Authorization: Basic cm9vdDprcmFzbm9kYXI=<br>
> Transport: RTP/AVP/TCP;unicast<br>
> CSeq: 6<br>
><br>
><br>
> I tried to duplicate this behavior but it doesn't works for me. The pipeline<br>
> that I use is:<br>
> pipeline = gst_parse_launch("( videotestsrc is-live=true !<br>
> video/x-raw,width=640,height=480,framerate=15/1 ! "<br>
> " x264enc bitrate=40000 bframes=0 cabac=false dct8x8=false<br>
> b-adapt=false speed-preset=1 tune=0x00000004 byte-stream=true<br>
> intra-refresh=true ! rtph264pay name=pay0 pt=96<br>
> sprop-parameter-sets=Z0IAKeNQFAe2AtwEBAaQeJEV\\,aM48gA\\=\\= )</p>
<p dir="ltr">You should set the profile, level and steam-format in the caps if a capsfilter. Then let x264 negotiate with the payloader, which should figure out the rest.</p>
<p dir="ltr">> &error);<br>
> Sdp of my server is:<br>
><br>
> v=0<br>
> o=- 1357203415215407603 1 IN IP4 192.168.5.117<br>
> s=Session streamed with GStreamer<br>
> i=rtsp-server<br>
> t=0 0<br>
> a=tool:GStreamer<br>
> a=type:broadcast<br>
> a=control:*<br>
> a=range:npt=0-<br>
> m=video 0 RTP/AVP 96<br>
> c=IN IP4 0.0.0.0<br>
> b=AS:2097<br>
> a=rtpmap:96 H264/90000<br>
> a=framerate:15<br>
> a=fmtp:96<br>
> packetization-mode=1;profile-level-id=42c016;sprop-parameter-sets=Z0LAFtkAoD2wEQAAAwABAAADAB6PFi5I,aMuMsg==<br>
> a=control:rtsp://<a href="http://192.168.5.117/axis-media/media.amp/trackID=0">192.168.5.117/axis-media/media.amp/trackID=0</a><br>
><br>
><br>
><br>
> Everuthing is OK until PLAY request<br>
><br>
> I wanted to adjust parameters of h264 to copy behaviour of camera. But<br>
> client crashes. Here is the message of error log of client:<br>
> 2016-07-03 13:31:14,096 DEBUG [(null)] [85_192.168.5.100/0] (null)((null)),<br>
> (null) (null) <(null)> - <0> Received response for: RtspRequest PLAY, CSeq:<br>
> 3, URI:<br>
> rtsp://<a href="http://192.168.5.100:8080/axis-media/media.amp?camera=1&videocodec=h264&fps=15&resolution=640x480&compression=30&audio=0">192.168.5.100:8080/axis-media/media.amp?camera=1&videocodec=h264&fps=15&resolution=640x480&compression=30&audio=0</a><br>
> 2016-07-03 13:31:14,102 DEBUG [(null)] [85_192.168.5.100/0] (null)((null)),<br>
> (null) (null) <(null)> - <0> Play response range: npt=now-<br>
> 2016-07-03 13:31:14,210 FATAL [(null)] [85_192.168.5.100/0] (null)((null)),<br>
> (null) (null) <(null)> - AppDomain.CurrentDomain.UnhandledException,<br>
> IsTerminating: False, System.InvalidOperationException: Unsupported<br>
> pic_order_cnt_type encountered<br>
><br>
> I think the problem is with pipeline. I tried to set profile-level-id to<br>
> rtph264pay but it doesn't have this parameter.<br>
><br>
> I appreciate any help!<br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context:<a href="http://gstreamer-devel.966125.n4.nabble.com/gstreamer-1-0-profile-level-id-and-pic-order-cnt-type-tp4678385.html"> http://gstreamer-devel.966125.n4.nabble.com/gstreamer-1-0-profile-level-id-and-pic-order-cnt-type-tp4678385.html</a><br>
> Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
><a href="mailto:gstreamer-devel@lists.freedesktop.org"> gstreamer-devel@lists.freedesktop.org</a><br>
><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</p>