-
Notifications
You must be signed in to change notification settings - Fork 324
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
GallerySaver.saveVideo() fails when the video is encoded with x.265 on IOS #190
Comments
+1 |
+1 This is not the problem of the third-party library ( GallerySaver ) we use, but a fact that iOS does not support hev1 codec tagged MP4. H.265 and HEVC (High Efficiency Video Coding) is the same thing. When using ffmpeg to mux H.265/HEVC to MP4, we can use codec tag hvc1 or hev1 (or others), default when codec tag not set, it will use hev1. hev1 and hvc1 are two codec tags, indicating different packaging methods of the HEVC stream in the MP4 container. Quicktime Player and iOS do not support hev1 tagged mp4.
Reference: So if a video is muxed from HEVC to MP4 with codec tag not being hvc1, when GallerySaver calls Swift code error code 3302 means invalidResource : If you use the command mentioned in https://stackoverflow.com/questions/32152090/encode-h265-to-hvc1-codec |
GallerySaver.saveVideo() silently fails when the video is encoded with x.265 on IOS. No errors in the log, but the call returns false. The same video encoded with x.264 works fine IOS and both 265 and 264 work fine in Android. Anyone run into this?
The text was updated successfully, but these errors were encountered: