Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add H265 support - Part I: Fake + V4L2 #252

Merged

Conversation

joaoantoniocardoso
Copy link
Collaborator

@joaoantoniocardoso joaoantoniocardoso commented Aug 3, 2023

What to test:

  • Create fakesrc h265 UDP and receive via GStreamer
  • Create fakesrc h265 RTSP and receive via GStreamer
  • Create fakesrc h265 UDP and receive via QGC
  • Create fakesrc h265 RTSP and receive via QGC
  • Create fakesrc h265 UDP or RTSP and receive via WebRTC¹
  • Create USB camera h265 UDP or RTSP and receive via WebRTC¹

¹: It works on Safari 18, but for 17.6, the H265 feature flag needs to be enabled.


To receive from UDP:

gst-launch-1.0 -vc \
    udpsrc address=127.0.0.1 port=5600 close-socket=false auto-multicast=true \
    ! application/x-rtp, payload=96 \
    ! rtph265depay \
    ! avdec_h265 std-compliance=normal \
    ! videoconvert \
    ! autovideosink sync=false

To receive from RTSP:

gst-launch-1.0 -vc \
    rtspsrc location=rtsp://0.0.0.0:8554/0 latency=0 \
    ! application/x-rtp, payload=96 \
    ! rtph265depay \
    ! avdec_h265 std-compliance=normal \
    ! videoconvert \
    ! autovideosink sync=false

Useful to check if the system supports H265 decoding (which doesn't mean it supports it via WebRTC):

  1. open video_demo_hevc
  2. open chrome://media-internals

@joaoantoniocardoso joaoantoniocardoso mentioned this pull request Aug 3, 2023
1 task
@patrickelectric
Copy link
Member

Fix #256

@joaoantoniocardoso joaoantoniocardoso linked an issue Aug 4, 2023 that may be closed by this pull request
@joaoantoniocardoso joaoantoniocardoso force-pushed the add_h265_support branch 2 times, most recently from b32c57d to dff78b2 Compare July 22, 2024 20:00
@joaoantoniocardoso joaoantoniocardoso force-pushed the add_h265_support branch 3 times, most recently from 4e46eb6 to edc8909 Compare October 31, 2024 14:24
@joaoantoniocardoso joaoantoniocardoso changed the title Add H265 support Add H265 support I: Fake + V4L2 Nov 2, 2024
@joaoantoniocardoso joaoantoniocardoso changed the title Add H265 support I: Fake + V4L2 Add H265 support - Part I: Fake + V4L2 Nov 2, 2024
@joaoantoniocardoso joaoantoniocardoso marked this pull request as ready for review November 2, 2024 21:52
@joaoantoniocardoso
Copy link
Collaborator Author

Further improvements will be made in a second PR, since some changes are required on the Onvif side.

@joaoantoniocardoso joaoantoniocardoso merged commit f02c491 into mavlink:master Nov 3, 2024
7 checks passed
@joaoantoniocardoso joaoantoniocardoso deleted the add_h265_support branch November 3, 2024 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to h265 video
2 participants