Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gstreamer gstreamer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 670
    • Issues 670
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 350
    • Merge requests 350
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gstreamergstreamer
  • Issues
  • #924

Closed
Open
Created Dec 14, 2021 by nabil rise@nabilrise

Problem with an RTSP feed from hik vision camera

I have a hikvision camera providing RTSP feed for which my pipeline fails to work

 gst_rtsp_media_factory_set_launch (factory1, "("
  " rtspsrc onvif-mode=true location=\"rtsp://admin:devPassw0rd@172.16.1.49:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1\" latency=500 name=stream1 buffer-mode=auto "
  " protocols=tcp tcp-timeout=100000000 retry=20 ! queue flush-on-eos=TRUE ! "
  " rtph265depay ! h265parse config-interval=-1 ! vaapidecodebin ! "
  " queue ! videorate ! video/x-raw,format=I420,framerate=5/1 ! "
  " textoverlay text=\"DEMO\" font-desc=\"Sans, 30\" name=textsrc ! videorate ! "
  " video/x-raw,framerate=15/1 !  "
  " vaapih264enc ! rtph264pay name=pay0 pt=96 perfect-rtptime=true"
  ")");

here is the response when I analyse it with gst-discoverer-1.0

Analyzing rtsp://admin:devPassw0rd@172.16.1.49:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
Done discovering rtsp://admin:devPassw0rd@172.16.1.49:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1

Topology:
  unknown: application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H265, sprop-vps=(string)"QAEMAf//AWAAAAMAgAAAAwAAAwCWrAk\=", sprop-sps=(string)QgEBAWAAAAMAgAAAAwAAAwCWoAHgIAIcf42u7U3dyXWAtwEBAQQAAA+gAAE4gch3uUQA/yAAR8EAH+QACPgi, sprop-pps=(string)"RAHBcrCcCgFGJA\=\=", a-recvonly=(string)"", x-dimensions=(string)"3840\,2160", a-Media_header=(string)"MEDIAINFO\=494D4B48010300000400050000000000000000000000000000000000000000000000000000000000\;", a-appversion=(string)1.0, ssrc=(uint)1038865780, clock-base=(uint)3255309010, seqnum-base=(uint)61150, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
    video: video/x-h265, stream-format=(string)hvc1, alignment=(string)au, codec_data=(buffer)01016000000080000000000096f000fcfdf8f800000f03200001001740010c01ffff016000000300800000030000030096ac09210001003f420101016000000300800000030000030096a001e020021c7f8daeed4dddc97580b70101010400000fa000013881c877b94400ff200047c1001fe40008f822220001000a4401c172b09c0a014624, width=(int)3840, height=(int)2160, framerate=(fraction)20/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, profile=(string)main, tier=(string)main, level=(string)5
      Tags:
        video codec: H.265 (Main Profile)
      
      Codec:
        video/x-h265, stream-format=(string)hvc1, alignment=(string)au, codec_data=(buffer)01016000000080000000000096f000fcfdf8f800000f03200001001740010c01ffff016000000300800000030000030096ac09210001003f420101016000000300800000030000030096a001e020021c7f8daeed4dddc97580b70101010400000fa000013881c877b94400ff200047c1001fe40008f822220001000a4401c172b09c0a014624, width=(int)3840, height=(int)2160, framerate=(fraction)20/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, profile=(string)main, tier=(string)main, level=(string)5
      Additional info:
        None
      Stream ID: b9049c323800fa1dbf0c9c2f5d6dcf0e63b50fc2c5030d1c14e44a893d14e333/video:0:0:RTP:AVP:96
      Width: 3840
      Height: 2160
      Depth: 24
      Frame rate: 20/1
      Pixel aspect ratio: 1/1
      Interlaced: false
      Bitrate: 0
      Max bitrate: 0

Properties:
  Duration: 99:99:99.999999999
  Seekable: no
  Live: yes
  Tags: 
      video codec: H.265 (Main Profile)

What I've tried so far:

  • I checked the rtsp url directly with vlc and I found that it is working.
  • Tried the pipeline I'm using with other h265 video feeds and I found it to be working. errors.log I'll attach the error output I get with GST_DEBUG="*:6" and wireshark log when I try to connect to it (ip of the board running the code is 172.16.1.26) rtsp_49_connection_attempt.pcapng

Any ideas on how I can fix the issue?

Assignee
Assign to
Time tracking