ios icon indicating copy to clipboard operation
ios copied to clipboard

Video codec H265 support

Open HeyWatchOutDude opened this issue 5 years ago • 14 comments

Hi,

currently it's not possible to play videos with codec H265. (Buffering issues, black screen on web ui etc.)

After changing in the camera settings the format to "maximal compatibility" instead of "high efficiency" the playback works fine.

When will be the codec "H265" supported?

HeyWatchOutDude avatar Nov 05 '20 07:11 HeyWatchOutDude

For now don't exists nothing news, sorry.

marinofaggiana avatar Nov 05 '20 10:11 marinofaggiana

Ok :(

HeyWatchOutDude avatar Nov 05 '20 11:11 HeyWatchOutDude

Any update on this? (Is it on the "roadmap"?)

HeyWatchOutDude avatar Dec 08 '20 01:12 HeyWatchOutDude

No. Sorry

marinofaggiana avatar Dec 08 '20 09:12 marinofaggiana

The black screen on the web UI will never be fixed as it is not a Nextcloud issue. No web browser (bar Safari on MacOS/iOS) supports H265 as it was too expensive to license, and they will not support it in the future since they are now working towards the AV1 codec.

eibex avatar Dec 22 '20 09:12 eibex

I need that codec support for the nextcloud iOS app.

Because I mainly use nextcloud on my iPhone/iPad.

HeyWatchOutDude avatar Dec 22 '20 10:12 HeyWatchOutDude

Any update on this?

HeyWatchOutDude avatar Jun 05 '21 13:06 HeyWatchOutDude

Any update on this?

HeyWatchOutDude avatar Nov 22 '21 22:11 HeyWatchOutDude

Any update on this?

HeyWatchOutDude avatar Apr 12 '22 14:04 HeyWatchOutDude

Still not on the roadmap?

HeyWatchOutDude avatar Dec 26 '22 16:12 HeyWatchOutDude

I was able to produce an HEVC/h265 file that plays on Nextcloud for iOS (v4.7.0.23, HW has Apple A12 processor/SoC) with the following command:

ffmpeg -i input.mp4 -c:v libx265 -crf 23 -preset veryfast -c:a aac -b:a 128k -pix_fmt yuv420p -color_primaries 1 -color_trc 1 -colorspace 1 -movflags +faststart -tag:v hvc1 -t 00:01:00 output.mp4

The key part is -tag:v hvc1 and is explained in https://aaron.cc/ffmpeg-hevc-apple-devices/. -t 00:01:00 will do a test encoding run for 1 minute, remove it to convert fully. -pix_fmt yuv420p ensures a 10-bit HEVC video is downcoded to a regular 8-bit HEVC w/o HDR.

berezovskyi avatar Mar 27 '23 18:03 berezovskyi

The codec "H265" seems like still not supported even with the new "VLC-library Media viewer".

HeyWatchOutDude avatar Jun 14 '23 00:06 HeyWatchOutDude

Any update on this? I can't be the only person who is facing that kind of issue.

.mp4 files are playback is working fine. .mov files are playback is laggy.

HeyWatchOutDude avatar Oct 13 '24 21:10 HeyWatchOutDude

@HeyWatchOutDude I switched to Android so can't help any further than that ffmpeg command (it produced mp4 H265 files that played without a problem on iPhone XR/Apple A12) and some general hand-waving below.

But as a general advice, you should put as much info to describe a problem and the context (file info, phone info) as you reasonably can. If a developer looks at your problem description and does not know how to go further to test your issue, they will likely look at another issue (as you see, this repo has 800+ open issues). At the root, the problem is that the player fails to get your processor to decode the video using hardware acceleration and falls back to decoding in software. That is slow and consumes more power.

Would help if you provide the model of your phone/tablet, ideally with the processor model like I did. Also, you would need to provide some info about the video files (use this, for example: https://mediaarea.net/en/MediaInfo) or better yet, the video files themselves. The reason for this is that if Marino (who wrote iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift from what I see) wants to reproduce your issue and to report it to the VLC folks, he would need to provide them with the kind of information this ticket does: https://code.videolan.org/videolan/VLCKit/-/issues/286 (just an example, not saying this is your issue).

berezovskyi avatar Oct 13 '24 21:10 berezovskyi