tag:blogger.com,1999:blog-3944174827064012298.post7883869227980036249..comments2023-12-19T16:55:37.721+01:00Comments on The Bugfree Blog ;-): Updates on Hardware Accelerated Qt Multimedia Backend on Raspberry Pi (01.05.2015)Luca Carlonhttp://www.blogger.com/profile/05071568155815750619noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-3944174827064012298.post-22886319838217016632018-03-06T11:47:05.980+01:002018-03-06T11:47:05.980+01:00I was able to loop the playlist as in your piomxte...I was able to loop the playlist as in your piomxtextures_pocplayer/qml/main_loop.qml. At the moment, it's enough for me.Anonymoushttps://www.blogger.com/profile/13157447500837925963noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-65153682971497990342018-03-04T11:18:35.015+01:002018-03-04T11:18:35.015+01:00Luca thanks for the answer!
Minimal sample: https:...Luca thanks for the answer!<br />Minimal sample: https://pastebin.com/ksifMv6v<br />Log: https://pastebin.com/s0BG38wU<br />Anonymoushttps://www.blogger.com/profile/13157447500837925963noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-57975183778066565082018-03-04T01:52:35.227+01:002018-03-04T01:52:35.227+01:00Can you provide a minimal sample showing the probl...Can you provide a minimal sample showing the problem?Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-3532698013411328082018-03-04T00:49:30.299+01:002018-03-04T00:49:30.299+01:00Hi Nicolás and Luca! I know that this is an old to...Hi Nicolás and Luca! I know that this is an old topic, but I can not loop the playlist. After the first video playlist goes to the next video without playing the video and so on.<br />How can I fix this?<br /><br />Thank you in advance.Anonymoushttps://www.blogger.com/profile/13157447500837925963noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-18234000647973972022015-03-15T03:07:25.790+01:002015-03-15T03:07:25.790+01:00"but then you get a lag of about 5 seconds be..."but then you get a lag of about 5 seconds between loops (I think it is due to the data interchange between CPU and GPU)"<br /><br />There was a wrong sequence in the setup of the omx graph when opening a video. The time to start is now a little lower. I'll push this change shortly.Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-4798400423064650962015-03-05T15:28:28.743+01:002015-03-05T15:28:28.743+01:00Hi Atron! That's kind of the solution I have r...Hi Atron! That's kind of the solution I have right now, but maybe it's not a good control as the one I can have trough mediaPlayer... maybe I'm doing it wrong...<br />Can you share your project or some part of it?<br /><br />Right now I'm trying to solve the memory leak problem, but I'm slow at that because I have little experience... I'm Nightmare204 at https://github.com/carlonluca/pi/issues/13Anonymoushttps://www.blogger.com/profile/13610360146355426786noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-54512808069926776512015-03-05T15:28:03.920+01:002015-03-05T15:28:03.920+01:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/13610360146355426786noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-5332421187043470052015-03-02T21:23:38.701+01:002015-03-02T21:23:38.701+01:00Hi Nicolás! If you are in a hurry, this summer I m...Hi Nicolás! If you are in a hurry, this summer I made a similar project. You could try to control Omxplayer from qt through QProcess and using "transparent" as background color in your app . It worked well to me.<br /><br />It would be awesome if people fork the project and upload their improvements.Atronhttps://www.blogger.com/profile/06982521310339664871noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-17440102082576392472015-03-02T14:43:32.635+01:002015-03-02T14:43:32.635+01:00Yes, probably the same here: https://github.com/ca...Yes, probably the same here: https://github.com/carlonluca/pi/issues/13. You can maybe ask if someone fixed it.Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-3567357095167354392015-03-02T14:38:23.300+01:002015-03-02T14:38:23.300+01:00Those macros are very useful!
I'm trying to m...Those macros are very useful!<br /><br />I'm trying to make a video banner like application. That's why I need the loop property.<br />However I manage to overcome this using two mediaplayer components that switch one into the other, with fading effect using the opacity property. The switch is activated 3 seconds before the ending of the video being played in order to overcome the lag I told you before.<br /><br />Now I'm testing the performance to assure a 24/7 working duty of the banner.... and I found a bug... It seems that the GPU doesn't dispose the textures correctly, and as I change the video being played it starts to fill the memory. It doesn't matter if the video is long (20min) or short (20 sec) it can only achieve an specific amount of loops.<br />If I use only one mediaplayer component it's about 93 video changes, but as I'm using two the number decreases to about 52 video changes (128Mbts memory split to GPU).<br /><br />I'm getting into your code to find a way to assure the GPU frees the memory resources... any help would be appreciated...<br /><br />These are some of the reports I got using the command sudo vcdbg reloc<br />- Just after reboot: http://pastebin.com/BEW0gcfC<br />- After 1 play of Big Buck Bunny : http://pastebin.com/jrTsQuAJ<br />- When GPU memory gets filled up: http://pastebin.com/TQgfr4Um<br /><br />Anonymoushttps://www.blogger.com/profile/13610360146355426786noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-11078841574755809932015-02-23T22:46:35.680+01:002015-02-23T22:46:35.680+01:00It is possible that the loop feature does not work...It is possible that the loop feature does not work. I never bothered to implement that. You can probably fix that and patch easily.<br />All the logs are made up using https://github.com/carlonluca/LightLogger. Have a look in the header and you'll see that there are macros (BUILD_LOG_LEVEL_*) to switch on and off logs efficiently.Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-83458318043474465782015-02-23T21:13:36.894+01:002015-02-23T21:13:36.894+01:00Thanks Luca, I didn't have a monitor with audi...Thanks Luca, I didn't have a monitor with audio output from the HDMI, but I tried in another one and I got audio... this means that audio through HDMI is forced by the Openmaxil backend.<br /><br />I have other 2 observations:<br />- The MediaPlayer component doesn't follows the loops property if I use the Openmaxil Backend. In order to get a loop I can use the onPlaybackStateChanged, but then you get a lag of about 5 seconds between loops (I think it is due to the data interchange between CPU and GPU)<br />- Is there any way to avoid the console logs that the Openmaxil Backends deliver?<br />Anonymoushttps://www.blogger.com/profile/13610360146355426786noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-49202677510640881982015-02-21T00:13:09.605+01:002015-02-21T00:13:09.605+01:00I'm sorry. Can'the help you with that. I n...I'm sorry. Can'the help you with that. I never used that audio output.Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-19682741277084157372015-02-20T20:31:33.713+01:002015-02-20T20:31:33.713+01:00I'm sorry. Can'the help you with that. I n...I'm sorry. Can'the help you with that. I never used that audio output.Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-3250504145845470212015-02-20T19:02:32.999+01:002015-02-20T19:02:32.999+01:00I tried again with the video suggested and with th...I tried again with the video suggested and with the POCPlayer... there's no audio output via the 3.5mm jack. (I even forced the audio output via raspi-config)...<br />I used your binaries from 12/2014, and also compiled Qt 5.3.2 from Git and added the OpenMaxil Backend as you described in your posts...<br />I'm working on a Raspberry Pi 2, I don't know if there's something related to the kernel version that could make the difference to get the audio.<br />If I place again the libgstmediaplayer.so in order to make Qt use the gstreamer plugin I got normal audio, but obviously not Hardware Accelerated Video...<br /><br />Any Ideas?Anonymoushttps://www.blogger.com/profile/13610360146355426786noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-61288753056937170892015-02-20T01:04:12.965+01:002015-02-20T01:04:12.965+01:00Did you try the standard big buck bunny mov format...Did you try the standard big buck bunny mov format from the official Web site with POCPlayer (sources in the same repo)?Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-91270164310011176022015-02-20T00:57:31.499+01:002015-02-20T00:57:31.499+01:00No video... I know its really weird...
To Discard ...No video... I know its really weird...<br />To Discard other possibilities I tried using OmxPlayer, aplay. etc.... I get audio via the 3.5mm jack with all of them, just can't get audio with QT...Anonymoushttps://www.blogger.com/profile/13610360146355426786noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-63147021049546729132015-02-20T00:25:09.012+01:002015-02-20T00:25:09.012+01:00No video or just a specific video? There is no par...No video or just a specific video? There is no particular action you should take to play audio.Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-83703444099618406822015-02-19T23:19:26.938+01:002015-02-19T23:19:26.938+01:00Hi Again Luca
It's really awesome what you ha...Hi Again Luca<br /><br />It's really awesome what you have achieved with the raspberry pi.<br /><br />Thanks again for helping me to make work the PiOmxTextures plugin. But I have an issue again, I don't get audio when reproducing a video with Qt using the PiOmxTextures Plugin...<br /><br />Is there some extra configuration needed?Anonymoushttps://www.blogger.com/profile/13610360146355426786noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-24695056444357917452015-02-01T16:19:15.401+01:002015-02-01T16:19:15.401+01:00This is awesome.This is awesome.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-32604544930215779452015-01-07T15:56:56.824+01:002015-01-07T15:56:56.824+01:00Unfortunately this is just a demo of the performan...Unfortunately this is just a demo of the performance/result. The changes broke many other "features" so it makes no sense to provide bins. It can't be used without working on it.Luca Carlonhttps://www.blogger.com/profile/05071568155815750619noreply@blogger.comtag:blogger.com,1999:blog-3944174827064012298.post-17057923304818874982015-01-07T15:50:49.452+01:002015-01-07T15:50:49.452+01:00Great work once again! Will you be providing binar...Great work once again! Will you be providing binary files for this fix? Your previously provided binaries work beautifully but I do have the tearing issue.<br /><br />Thanks.Anonymousnoreply@blogger.com