H.265x format won't play

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Lotesdelere
Cone Master
Cone Master
Posts: 10194
Joined: 08 Sep 2006 04:39
Location: Europe

Re: H.265x format won't play

Postby Lotesdelere » 14 May 2022 09:46

Please open Tools -> Messages (set Verbosity to 2) before you start the playback, and then paste the full resulting log here or on Pastebin.com if it's too long.

And upload a short sample of your original problematic file to Zippyshare.com or to WeTransfer.com and then post the link to the file here.
https://www.zippyshare.com
https://wetransfer.com

If needed cut it with DGsplit and read here about how to do it:
https://forum.videolan.org/viewtopic.ph ... 35#p193335
200 MB max should be enough.

Lotesdelere
Cone Master
Cone Master
Posts: 10194
Joined: 08 Sep 2006 04:39
Location: Europe

Re: H.265x format won't play

Postby Lotesdelere » 14 May 2022 14:37

This is a raw HEVC (aka H.265) file that VLC can't play. You need to mux it into an MP4 container for being able to play it.
For instance, you can use FFmpeg for this purpose. First, remove the x at the end of the extension (rename it to whateveryouwant.h265). Secondly, this stream has a wrong display aspect ratio (2.40:1 instead of 16:9) so we need to correct that when muxing. Then you can use this command line:

Code: Select all

ffmpeg -i YourFile.h265 -aspect 3840:2160 -c copy output.mp4

And the resulting MP4 file is playable with the correct display aspect ratio.

Lotesdelere
Cone Master
Cone Master
Posts: 10194
Joined: 08 Sep 2006 04:39
Location: Europe

Re: H.265x format won't play

Postby Lotesdelere » 15 May 2022 08:00

It works for me with your sample file even though it throws some errors when muxing:

Code: Select all

[hevc @ 000000f1ed77c980] Format hevc detected only with low score of 1, misdetection possible! [hevc @ 000000f1ed77e880] Invalid NAL unit 0, skipping. Last message repeated 1 times [extract_extradata @ 000000f1eda40d40] Invalid NAL unit 0, skipping. Last message repeated 1 times [hevc @ 000000f1ed77e880] Invalid NAL unit 0, skipping. Last message repeated 338 times Input #0, hevc, from 'test.h265': Duration: N/A, bitrate: N/A Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 4:3 DAR 64:27], 14 fps, 14 tbr, 1200k tbn, 14 tbc Overriding aspect ratio with stream copy may produce invalid files Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf58.76.100 Stream #0:0: Video: hevc (Main) (hev1 / 0x31766568), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 14 fps, 14 tbr, 1200k tbn, 1200k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mp4 @ 000000f1ed98e8c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly frame= 1 fps=0.0 q=-1.0 size= 512kB time=00:00:00.00 bitrate=4194656000.0 [NULL @ 000000f1ed77e880] Invalid NAL unit 0, skipping. Last message repeated 475 times frame= 178 fps=0.0 q=-1.0 size= 3840kB time=00:00:12.64 bitrate=2488.2kbits/ [NULL @ 000000f1ed77e880] Invalid NAL unit 0, skipping. Last message repeated 382 times frame= 262 fps=0.0 q=-1.0 Lsize= 4929kB time=00:00:18.64 bitrate=2166.0kbits/s speed=20.6x video:4924kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.107969%

But the resulting file is playing fine, you can download it here:
https://we.tl/t-tvAv1ndghg

But it looks like your cam is creating incorrect HEVC streams.

Lotesdelere
Cone Master
Cone Master
Posts: 10194
Joined: 08 Sep 2006 04:39
Location: Europe

Re: H.265x format won't play

Postby Lotesdelere » 16 May 2022 17:07

It should work with any Windows version from 7 to 11. And yes, you must run it from a command prompt window.
Just put all of the files in the same folder (FFmpeg.exe, your.h265 file). But maybe some of your .h265 files are not correct enough for FFmpeg.

We can see the pink motion triangles in the sample you have uploaded and the MP4 file I have made with it.

Lotesdelere
Cone Master
Cone Master
Posts: 10194
Joined: 08 Sep 2006 04:39
Location: Europe

Re: H.265x format won't play

Postby Lotesdelere » 15 Jul 2022 11:45

Well, it works for me with the sample file you have posted. So if you're using the same sample file then you are doing something wrong.
If you are using anothjer file then you might be in this case:
https://forum.doom9.org/showthread.php?t=184211

But TBH I'm not sure VLC has to deal with any fancy format around.

Lotesdelere
Cone Master
Cone Master
Posts: 10194
Joined: 08 Sep 2006 04:39
Location: Europe

Re: H.265x format won't play

Postby Lotesdelere » 17 Jul 2022 22:28

Same as before, this is an HEVC raw stream which can be muxed to MP4 using FFmpeg:

Code: Select all

ffmpeg -i YourFile.h265 -aspect 3840:2160 -c copy output.mp4

The resulting file is here:
https://we.tl/t-xLlRQnRlAL

You need to learn how to use FFmpeg because this has nothing to do with VLC.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 45 guests