Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Record rtsp stream QMediaplayer
Forum Updated to NodeBB v4.3 + New Features

Record rtsp stream QMediaplayer

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 399 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    J. Samwel
    wrote on last edited by J. Samwel
    #1

    Hello,

    I have an rtsp camera stream that i can display using QMediaplayer and I want to record parts of the videostream using QMediarecorder. Can I connect the object QMediaplayer to either a QMediarecorder or a QMediaCaptureSession?

    I can display the rtsp stream using the following code and I want to add the recording of the video to this. This is made using PyQt6 and works on windows and debian linux

    video_widget = QtMultimediaWidgets.QVideoWidget()
    rtsp_source = QtCore.QUrl(<url to rtsp stream>)
    media_player = QtMultimedia.QMediaPlayer()
    media_player.setSource(rtsp_source)
    media_player.setVideoOutput(video_widget )

    video_widget.show()
    media_player.play()

    Thanks in advance for any help

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved