Monday, 2023-05-22

T42<adampigg> https://irc.thaodan.de/.imgstore/501487b6/file_4985.jpg07:15
ViGeWhat's that device?07:16
T42<adampigg> Volla x2307:16
T42<adampigg> Rugged, easily replacable battery07:16
T42<b100dian> Hi, I'm trying to debug video playback in gallery, to my surprise browser seems more capable (or I've encountered different codecs).21:58
T42<b100dian> I have the jolla-provided video and it stops updating video after around 10 seconds, while sounds continues to play21:58
T42<b100dian> this is sfos 4.5 based on linege 18.121:58
T42<b100dian> logcat: https://pastebin.ubuntu.com/p/kxPVRTZ2P8/ and journal https://pastebin.ubuntu.com/p/wPrjRMzN9b/ (3hrs timezone difference)21:59
T42<b100dian> If anyone has an idea where to look first, I would appreciate22:01
malyou can see some errors from droidmedia in that log, not sure why those happen though22:19
malthose "DroidMediaBufferQueue: Client wasn't able to handle a received frame"22:20
T42<b100dian> Yes, and before that "DroidMediaCodec: Format changed from codec", with CCodecConfig only mentioning a new property "int32_t color-format = 2130708361" which was not before22:25
T42<b100dian> There's also `qdgralloc: Falling back to default YUV format` somewhere there, and "ion" complaining about "ioctl c0044901 failed with code -1: Inappropriate ioctl for device"..22:27
malyeah, difficult to say which ones are critical errors22:27
mal@b100dian maybe try dont-use-droid-convert quirk?22:30
malalthough not sure if that can cause the issue you have22:31
mal@b100dian have you tried different video formats like vp822:31
T42<b100dian> Let me try dont-use-droid-convert.. also, I do not know the actual codec of the jolla-provided movie, but I do get the same effect on own recorded camera videos. I'll look up a command to see the actual codec22:33
T42<elros34> isn't that for borwser only22:36
malI think h.264 is used in camera and both camera and the sample video22:39
mal@elros34 yeah, could be, can't remember anymore22:40
T42<b100dian> Indeed, no impact on gallery playback, gst cache removed and even reboot. I'll keep it to see if browser is less crashy on video sites though22:41
T42<b100dian> Re: codec, camera records with `Video: h264 (Baseline) (avc1 / 0x31637661), yuvj420p(pc, bt470bg/bt470bg/smpte170m, progressive), 1920x1440`22:44
T42<b100dian> SFOS 3.0 mp4 is `Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1280x544 ` says ffprobe22:45
T42<elros34> I wonder if dont-use-droid-convert works at all with gmp-droid or whatever is used now because IIRC it was dropped?22:45
T42<b100dian> gecko-camera-droid-plugin :)22:45
T42<elros34> silly:)22:46
T42<b100dian> curiously, browser is not _that_ picky about videos, but that may be luck on my side. Gallery + default Sailfish video -> a bug to track22:46
T42<elros34> with quick search nothing except gst-droid support dont-use-droid-convert22:47
malusually gallery is easier than browser22:48
T42<b100dian> I've added in `/etc/gst-droid/gstdroidcodec.conf` so it makes sense. gst is probably used in gallery too22:48
T42<b100dian> Is that video hosted somewhere so I can test it with the browser ;)22:49
T42<elros34> file:///path/tovideo22:49
T42<b100dian> wow, it actually generates directory listings o_O22:50
T42<b100dian> So, the video plays through in the browser22:51
T42<b100dian> thanks for pointing the file:/// @elros3422:51
malinteresting, both go through droidmedia so that end should be ok22:51
T42<b100dian> So I have: camera video recording :check: browser video playback :check: and local video playback problem. Upside down :)22:52
malhave you tried the other quirks, not sure if those can help either22:52
malhttps://github.com/vknecht/droid-config-idol3/blob/master/sparse/etc/gst-droid/gstdroidcodec.conf those height and width ones22:52
T42<b100dian> In waydroid I get the same, recorded video is not played back correctly, so it _is_ something on my side22:53
T42<elros34> but isn't these quirks same only for borwser?22:53
T42<elros34> time to write gecko based video player:)22:53
malor not :)22:53
T42<elros34> I may be wrong, it was so long time ago I tried them22:54
T42<b100dian> alcatel idol3:) how time flies22:55
T42<b100dian> mal: from the ffprobe output above, shouldn't avc match? I already had `use-codec-supplied-height;use-codec-supplied-width` and added the dont-use-droid-convert; before that. Then done it for video/mp4v too22:57
T42<b100dian> In that sample file there's video/mp4v-es and video/x-vnd.on2.vp822:58
T42<b100dian> what I have locally and is not in that file is [decoders] video/hevc=122:58
T42<b100dian> tried _removing_ those quirks too, no difference23:08
T42<b100dian> speaking of quirks, is gstdroidcamsrcquirks having anything for sharpening (disable it)?23:14
malI think no but can't remember everything23:16
T42<b100dian> no worries. nothing like that in the gst-droid repo23:27
T42<b100dian> This is logcat of browser video playback https://pastebin.ubuntu.com/p/kgTWKcp6rj/23:34
T42<b100dian> " [avcD_27]  YV12 is not a supported pixel format!" in browser vs "[avcD_14]  ? is not a supported pixel format!" in Gallery23:37
T42<b100dian> this is coming from QC2V4l2Codec which ps says is `mediacod {vendor.qti.medi} media.hwcodec /vendor.qti.media.c2@1.0-service`23:43
malwhch device is that?23:54
T42<b100dian> Asus Zenfone 823:55
T42<b100dian> Lineage 18.123:55
T42<b100dian> Btw, strace of that "mediacod" service PID in browser vs gallery is not that different, except the last "not supported pixel format" part, ? vs YV12 https://pastebin.ubuntu.com/p/TWn75y3gNC/ (2-in-1 paste)23:56
T42<b100dian> So I think listing the supported formats is the same, but the input (?) or YV12 is different..23:57

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!