Page 1 of 1

AVCodec.hwp crash when mp4 video doesn't have audio stream

Posted: Wed Dec 13, 2023 6:13 am
by AlexC
I found that the AVCodec (64bit) plugin crashes if the video doesn't have an audio stream.
Using the native decoder, on some formats the player freezes too.

This is on windows 8.1pro
Using Hollywood 9.1
Making the videos in Blender 3.6.2
The formats I've tested and the result for each decoder:

; OpenVideo(1, "V:Videos/Tree5.avi") ; avi/mjpeg, native freezes, avc crash
; OpenVideo(1, "V:Videos/Tree5.mpg") ; mpeg1/2 native ok, avc crash
; OpenVideo(1, "V:Videos/Tree5vp9.webm") ; webm/vp9, native ok; avc not recognized
; OpenVideo(1, "V:Videos/Tree5png.mp4") ; mp4/png not recognized by either
; OpenVideo(1, "V:Videos/Tree5divx.mp4") ; mp4/divx both crash
; OpenVideo(1, "V:Videos/Tree5h264.mp4" ; mp4/h264 both crash
; OpenVideo(1, "V:Videos/Tree5.ogv") ; ogg/theora native ok, avc not recognized, ogg plugin crash
; OpenVideo(1, "V:Videos/Tree5av1.mp4") ; mp4/av1 not recognized by either
; OpenVideo(1, "V:Videos/Tree5mp4.mkv") ; mkv/mp4, native ok, avc crash
; OpenVideo(1, "V:Videos/Tree5h264.mkv") ; mkv/h264, native plays but shrinks video, avc not recognized
; OpenVideo(1, "V:Videos/Tree5yuv.mkv") ; mkv/yuv, native ok, avc not recognized
; OpenVideo(1, "V:Videos/Tree5na.mp4") ; mp4/h264 (no audio), native freeze, avc crash
OpenVideo(1, "V:Videos/Tree5a.mp4") ; mp4/h264 (w/AAC audio), native ends with blank frame, avc ok

Re: AVCodec.hwp crash when mp4 video doesn't have audio stream

Posted: Fri Dec 15, 2023 10:32 pm
by airsoftsoftwair
Can you upload a sample video that crashes avcodec.hwp?

Re: AVCodec.hwp crash when mp4 video doesn't have audio stream

Posted: Thu Feb 01, 2024 9:28 am
by AlexC
Hi Andreas,
airsoftsoftwair wrote: Fri Dec 15, 2023 10:32 pm Can you upload a sample video that crashes avcodec.hwp?
Sorry for the delay.
I couldn't find a way to upload a file with the reply so here's a link to download it (415kb)

Re: AVCodec.hwp crash when mp4 video doesn't have audio stream

Posted: Sun Feb 04, 2024 10:05 pm
by airsoftsoftwair
Thanks, I can confirm the crash here. Will be fixed.

Re: AVCodec.hwp crash when mp4 video doesn't have audio stream

Posted: Sun Mar 15, 2026 11:40 am
by airsoftsoftwair

Code: Select all

- Fix [Windows]: Videos without an audio stream caused a crash on PlayVideo() when using the non-native video player
Btw, I've seen in the OP that you experienced a freeze with the native player with some videos. That also shouldn't happen. The native player should exit cleanly in case it can't play a video file. So if you have an example video that causes the native player to freeze, please provide it so I can fix the native player as well.