gstreamer-1.0 profile-level-id and pic_order_cnt_type

nicolas.dufresne at gmail.com nicolas.dufresne at gmail.com
Sun Jul 3 22:28:34 UTC 2016


Le 3 juil. 2016 5:41 PM, "bazigg" <aparshina93 at gmail.com> a écrit :
>
> Hello!
>
> I created my gst rtsp server but I have some problem with connecting it
with
> particular client (axis camera station). i am using version 1.8.1
>
> The client can work with ip camera. Here is the example of sdp in
successful
> session:
>
> v=0
> o=- 1466356337748047 1466356337748047 IN IP4 192.168.5.102
> s=Media Presentation
> e=NONE
> c=IN IP4 0.0.0.0
> b=AS:50000
> t=0 0
> a=control:rtsp://
192.168.5.102/axis-media/media.amp?videocodec=h264&camera=1&resolution=640x480&fps=15
> a=range:npt=0.000000-
> m=video 0 RTP/AVP 96
> b=AS:50000
> a=framerate:15.0
> a=transform:1,0,0;0,1,0;0,0,1
> a=control:rtsp://
192.168.5.102/axis-media/media.amp/trackID=1?videocodec=h264&camera=1&resolution=640x480&fps=15
> a=rtpmap:96 H264/90000
> a=fmtp:96 packetization-mode=1; profile-level-id=420029;
> sprop-parameter-sets=Z0IAKeNQFAe2AtwEBAaQeJEV,aM48gA==
> SETUP
> rtsp://
192.168.5.102/axis-media/media.amp/trackID=1?videocodec=h264&camera=1&resolution=640x480&fps=15
> RTSP/1.0
> User-Agent: AXIS Virtual Camera
> Authorization: Basic cm9vdDprcmFzbm9kYXI=
> Transport: RTP/AVP/TCP;unicast
> CSeq: 6
>
>
> I tried to duplicate this behavior but it doesn't works for me. The
pipeline
> that I use is:
>   pipeline = gst_parse_launch("( videotestsrc is-live=true !
> video/x-raw,width=640,height=480,framerate=15/1 ! "
>                               " x264enc bitrate=40000 bframes=0
cabac=false dct8x8=false
> b-adapt=false speed-preset=1 tune=0x00000004 byte-stream=true
> intra-refresh=true ! rtph264pay name=pay0 pt=96
> sprop-parameter-sets=Z0IAKeNQFAe2AtwEBAaQeJEV\\,aM48gA\\=\\= )

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.

>                               &error);
> Sdp of my server is:
>
> v=0
> o=- 1357203415215407603 1 IN IP4 192.168.5.117
> s=Session streamed with GStreamer
> i=rtsp-server
> t=0 0
> a=tool:GStreamer
> a=type:broadcast
> a=control:*
> a=range:npt=0-
> m=video 0 RTP/AVP 96
> c=IN IP4 0.0.0.0
> b=AS:2097
> a=rtpmap:96 H264/90000
> a=framerate:15
> a=fmtp:96
>
packetization-mode=1;profile-level-id=42c016;sprop-parameter-sets=Z0LAFtkAoD2wEQAAAwABAAADAB6PFi5I,aMuMsg==
> a=control:rtsp://192.168.5.117/axis-media/media.amp/trackID=0
>
>
>
> Everuthing is OK until PLAY request
>
> I wanted to adjust parameters of h264 to copy behaviour of camera. But
> client crashes. Here is the message of error log of client:
> 2016-07-03 13:31:14,096  DEBUG [(null)] [85_192.168.5.100/0]
(null)((null)),
> (null) (null) <(null)> - <0> Received response for: RtspRequest PLAY,
CSeq:
> 3, URI:
> rtsp://
192.168.5.100:8080/axis-media/media.amp?camera=1&videocodec=h264&fps=15&resolution=640x480&compression=30&audio=0
> 2016-07-03 13:31:14,102  DEBUG [(null)] [85_192.168.5.100/0]
(null)((null)),
> (null) (null) <(null)> - <0> Play response range: npt=now-
> 2016-07-03 13:31:14,210  FATAL [(null)] [85_192.168.5.100/0]
(null)((null)),
> (null) (null) <(null)> - AppDomain.CurrentDomain.UnhandledException,
> IsTerminating: False, System.InvalidOperationException: Unsupported
> pic_order_cnt_type encountered⁠⁠⁠⁠
>
> I think the problem is with pipeline. I tried to set profile-level-id to
> rtph264pay but it doesn't have this parameter.
>
> I appreciate any help!
>
>
>
>
> --
> View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/gstreamer-1-0-profile-level-id-and-pic-order-cnt-type-tp4678385.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160703/3d7b8ca4/attachment.html>


More information about the gstreamer-devel mailing list