-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Support H.265 #11089
Comments
Hello @xieenming. Thank you for logging your enhancement request! It does help our team reprioritise tasks as we see users requesting features. Exoplayer does support H265 to a degree. H265 requires encoding information contained in the sprop-vps, sprop_pps, and sprop-pps parameters sets. The RTSP server you are trying to stream from is not providing these values in the SDP layer of the RTSP Describe Response. Exoplayer currently requires these parameters in the Describe Response and does not read them further down the pipeline when handling the stream. This is similar to the request to read sprop values from within the H264 bitstream. #10971 If you would like to test reading them from the stream, you can clone the repo and try the following changes.
If you are successful, you are more than welcome to make a contribution to Exoplayer with these changes. We consider high quality pull requests. These should merge into the dev-v2 branch. Before a pull request can be accepted you must submit a Contributor License Agreement. I'll leave this open as an enhancement but please feel free to comment back with questions. |
@microkatz Thanks a lot for your quick reply. I will test. |
@xieenming also working with a lot of hikvision camera's all with different parameters being sent, any luck on your side? |
Actually, what happens is that many devices do not have support for HEVC (except for 10bit) at the hardware level, so to play the videos, you need a player capable of transcoding at the software level, such as MPV, MX alternatives. Player..etc Exoplayer is something universal and used in many other projects, I don't know why it's hard for them to add support for software coding to exoplayer |
All android devices have been required to support HEVC since Android 5.0 (Lollipop, launched in November 2014): https://developer.android.com/guide/topics/media/media-formats#video-codecs This issue is specifically tracking supporting H.265 in RTSP, which requires changes in ExoPlayer to parse the video bitstream out of the RTSP packets - it's not related to device-level H.265 decoding support, nor related to software decoding with bundled video decoders, so I don't think your comment is particularly relevant. |
Either RTSP/RTMP or direct raw playback, without segments, Exoplayer is not able to play an h265 where the device does not support it by hardware |
yes you are saying correct. |
hello! |
If you wait for this feature, I don't think they have plans to fix this. So strongly, I don't know your project, the best thing I can recommend is to use mvp-android and it will solve at least 99% of your problems |
Does ExoPlayer support H.265 (a.k.a HEVC) ?
Currently, if I play a RTSP/RTMP H.264 stream, ExoPlayer has no problem.
But when I play a RTSP/RTMP H.265 stream, ExoPlayer reports an error:
missing sprop-vps parameter
The text was updated successfully, but these errors were encountered: