Closed gnulux closed 1 year ago
The pipeline dump shows that avdec_h264
is used for decoding, that's not hw-accelerated. Can you dump pipelines for gst-play too and check which decoder is used?
which version of wpewebkit is this btw?
i'd advise to try 2.42, which enables a new video sink by default. Leveraging dmabufs. I don't think it's been tested much on iMX though...
Hi, wpewebkit version is 2.34.6-r0 (available for Yocto hardknott build) here are gst-play dump with GST_DEBUG=4 gst-play.log
avdec_h264
also used by gst-play it seems...
This is weird because i see the difference on my proc when playing the video from cog, wpeWebProcess consumes 120% which is not the case with gst-play . here i provide more logs from gst-play : gst-play_5.log.gz
Ok , surely something with the linux user account. The video play well on cog with root account any idea ? perhaps root reserved memory zone or something else?
Yeah maybe the iMX device driver requires root...
At the end root account use V4L2DEC
Track 00 [audio_0] Enabled
Duration: 0:01:00.139682000
Language: eng
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)22050, bitrate=(int)64000, stream-format=(string)raw, codec_data=(buffer)1390
Track 01 [video_0] Enabled
Duration: 0:01:00.095000000
Language: eng
Mime:
video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)640, height=(int)360, framerate=(fraction)24/1, codec_data=(buffer)0142e01eff0100152742e01ea9181405ff2e00d418041adb0ad7bdf01001000428de09c8
Track 02 [subtitle]: Disabled
Codec: 0, SubCodec: 0
Track 03 [subtitle]: Disabled
Codec: 0, SubCodec: 0
====== V4L2DEC: 1.18.0 build on Jun 3 2021 08:59:40. ======`
Is perf with v4l2dec in wpewebkit ok or not?
Still ok with root but not with normal account.
Le ven. 27 oct. 2023, 21:21, Philippe Normand @.***> a écrit :
Is perf with v4l2dec in wpewebkit ok or not?
— Reply to this email directly, view it on GitHub https://github.com/Igalia/cog/issues/631#issuecomment-1783396131, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDWDF5DB4ICB3WNGW65IDYBQCSDAVCNFSM6AAAAAA6RQDYTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTGM4TMMJTGE . You are receiving this because you authored the thread.Message ID: @.***>
I don't think we can do much about that. Maybe ask on NXP/Freescale forums :)
Yes understand, Thks again
Le ven. 27 oct. 2023, 22:17, Philippe Normand @.***> a écrit :
I don't think we can do much about that. Maybe ask on NXP/Freescale forums :)
— Reply to this email directly, view it on GitHub https://github.com/Igalia/cog/issues/631#issuecomment-1783458022, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDWDHCNCQAUCF6KL2TMUTYBQJHDAVCNFSM6AAAAAA6RQDYTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTGQ2TQMBSGI . You are receiving this because you authored the thread.Message ID: @.***>
Hi,
I'm trying to play a mp4 file from cog which plays slow whereas it runs well with gst-play . I'm wondering if cog uses the VPU as expected. I'm running on IMX8, on Yocto with Webkit compiled with gst_gl . I tried with --media-content-types-requiring-hardware-support but nothing better
GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE=/tmp/gst.log GST_DEBUG_DUMP_DOT_DIR=/tmp/gst cog -P wl --media-content-types-requiring-hardware-support='video/webm; codecs="vp":video/mp4; codecs="avc":video/* codecs="av1*"' https://people.igalia.com/clopez/wkbug/video/big_buck_bunny.mp4
debug.zipWhat did i missed ?