-
Notifications
You must be signed in to change notification settings - Fork 136
H265 Video Support #800
-
I saw RoboVM has H264 video support: https://github.com/search?q=repo%3AMobiVM%2Frobovm%20H264&type=code
But I could not find references to H265: https://github.com/search?q=repo%3AMobiVM%2Frobovm+H265&type=code
Does RoboVM support H265? Or could I open a feature request for it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
hey, RoboVM just exposes API that is available in Apple iOS API.
as for codecs you can check it there at Apple site.
for H265 i would look into AVVideoCodecTypeHEVC that is another name for it.
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks dkimitsa!
I'm trying to play a H265 MP4 with gdx-video and I'm getting the following error:
java.lang.IllegalArgumentException: No constant with value 1751479857 found in org.robovm.apple.coremedia.CMVideoCodecType
at org.robovm.apple.coremedia.CMVideoCodecType.valueOf(CMVideoCodecType.java:141)
at com.badlogic.gdx.video.VideoPlayerIos.onVideoTrackLoaded(VideoPlayerIos.java:103)
at com.badlogic.gdx.video.VideoPlayerIos3ドル.invoke(VideoPlayerIos.java:167)
at com.badlogic.gdx.video.VideoPlayerIos3ドル.invoke(VideoPlayerIos.java:162)
at org.robovm.apple.avfoundation.AVAsset$$BlockMarshaler0.invoked(Unknown Source)
If I comment the line in gdx-video code that throws the exception (that line is just used to print debug information), the video still doesn't play.
Note: The video I'm using was H264 and I converted it to H265 using ffmpeg by running ffmpeg -y -loglevel "error" -i input.mp4 -c:v libx265 -preset veryslow -crf 23 -c:a copy output.mp4.
Beta Was this translation helpful? Give feedback.