Closed ilongshan closed 2 years ago
Hi, thanks for submitting issues. Is it for any videos or one? Could you please share? Or check sample ones, which reproduces. you could also check if it is rendering issue, by QVideoFrame f = videoFrame; f.toImage().save("frame.jpg") and see if it is valid frame.
+[MTLIOAccelDevice registerDevices]: Zero Metal services found
this is also suspicious
Hi, thanks for submitting issues. Is it for any videos or one? Could you please share? Or check sample ones, which reproduces. you could also check if it is rendering issue, by QVideoFrame f = videoFrame; f.toImage().save("frame.jpg") and see if it is valid frame.
I tried the default video and two my own videos, and none of the videos can be played.
I tried to save the video to images with variable videoFrame or variable f, and all of them are valid frame.
+[MTLIOAccelDevice registerDevices]: Zero Metal services found
this is also suspicious
Yes, may be it related to Mac M1. But I have no clue to debug it. Any suggestions?
suggestion to test this file in QML Video/MediaPlayer from QtMultimedia and make sure that it works there.
I also have an M1 Mac that suffers from the same issue. Is there anything I can do or any information I can provide that would help?
This is the output I see in my terminal:
stateChanged PlayingState NoMedia
h264 : supported hardware device contexts:
videotoolbox
Found hardware device context: videotoolbox
durationChanged 60095
mediaStatusChanged LoadedMedia PlayingState
Video streams: 1
[ 1 ] QMap(("creation_time", "2010-02-09T01:55:39.000000Z")("handler_name", "Apple Video Media Handler")("language", "eng")("vendor_id", "[0][0][0][0]")) ---current
Audio streams: 1
[ 0 ] QMap(("creation_time", "2010-02-09T01:55:39.000000Z")("handler_name", "Apple Sound Media Handler")("language", "eng")("vendor_id", "[0][0][0][0]")) ---current
Subtitle streams: 0
Available pixel formats:
yuv420p : AVPixelFormat( 0 )
videotoolbox_vld : AVPixelFormat( 158 )
Using hardware decoding in videotoolbox_vld
stateChanged StoppedState LoadedMedia
mediaStatusChanged EndOfMedia StoppedState
mediaStatusChanged NoMedia StoppedState
durationChanged 0
first I would suggest to try QtMultimedia examples to make sure that it works inside Qt.
first I would suggest to try QtMultimedia examples to make sure that it works inside Qt.
QtMultimedia examples provided by Qt team works fine. I am looking into the issue, but it's somewhat difficult and I have been busy these days. I'll try to solve it in July (If this issue still exist at that time
https://github.com/valbok/QtAVPlayer/issues/254 https://github.com/valbok/QtAVPlayer/issues/252
Found at least 2 issues, like wrong textures used, and need to figure out why MTLTexture is not enough for RHI. Also why RGB32 frames are not rendered properly. In this case it should be possible to convert to proper format.
Still software rendering does not work
The qml_video demo cannot play video, when running on MacOS M1. With debug mode, the play just flicks and shows pink image as attched, also ouputs the following message. I builds the project with cmake and QT_AVPLAYER_NO_HWDEVICE=1.