Qt 5.3.2: cannot play HTML5 in QWebKit (+ gstreamer 1.0) - qt

I am currently working on an i.MX6 SoC-based system... I've just built Qt 5.3.2 (through Yocto) configuring it for using gstreamer 1.0 as backend...
The compilation completes successfully, but unluckily I am not able to play HTML5 video from QWebKit...
Looking at the console output of my application (a simple QML-based application showing a WebView full-screen) I see the messages from gstreamer (so I think that the library is initialized and working)...
QML debugging is enabled. Only use this in a safe environment.
QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double
buffering and vsync.
If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_M
ULTI_BUFFER=1
[ 53.214914] PU: Power-off latency exceeded, new value 35000 ns
====== AIUR: 4.0.3 build on Feb 26 2016 12:18:25. ======
Core: MPEG4PARSER_06.09.10 build on Jan 8 2015 07:06:50
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2
------------------------
Track 00 [video_0] Enabled
Duration: 0:09:56.458304000
Language: und
Mime:
video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=
(string)avc, width=(int)853, height=(int)480, framerate=(fraction)24/1, codec_da
ta=(buffer)014d401effe10015274d401ea9181b07bcde00d4040406db0ad7bdf01001000428de0
9c8
------------------------
Track 01 [subtitle]: Disabled
Codec: 0, SubCodec: 0
------------------------
------------------------
Track 02 [audio_0] Enabled
Duration: 0:09:56.480000000
Language: und
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)6, rate=(int)48000, bitrat
e=(int)448000, stream-format=(string)raw, codec_data=(buffer)11b0
------------------------
====== BEEP: 4.0.3 build on Feb 26 2016 12:18:37. ======
Core: AAC decoder Wrapper build on Apr 22 2014 09:43:50
file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Jun 19 2014 18:30:
32.
As you can see, gstreamer also reports the correct duration (length) of the video resource, but then I am not able to start the playback... The "play" button shown on screen is "greyed" and the duration of the media is reported as "00:00"... Even clicking on the "track bar" does not produce any results...
A screenshot of what is appearing on screen here follows:
Any ideas?

Related

Google Cloud Vision API Oct 2021 Upgrade Error - Access Previous Version

The October2021/January2022 Vision API produces significant changes from the previous version running up to September2021.
The October2021/January 2022 version's return JSON has less information compared to the previous September2021 version. These JSON file statistic (file size KB, # JSON lines) show the differences. The same image PNG file was run:
September2021 (more data)
File 1 1,666 KB / 114,856 lines
File 2 675 KB / 45,687
Using Features parameter with and without: "model": "builtin/legacy" produces the same result.
October2021/January2022 (less data)
File 1 1.435 KB / 102.275 lines
File 2 584 KB / 41,778
Release notes link: https://cloud.google.com/vision/docs/release-notes
Google Vision is a core function of my application. The upgrade has "broken" my application.
# Python application calls Vision API
Python version: 3.8.5
google-api-core==1.22.4
google-api-python-client==1.12.3
google-auth==1.28.1
google-auth-httplib2==0.0.4
google-cloud-core==1.6.0
google-cloud-documentai==0.4.0
google-cloud-storage==1.37.1
google-cloud-vision==2.0.0
google-crc32c==1.1.2
google-resumable-media==1.2.0
googleapis-common-protos==1.52.0
How can I access the previous version?

Windows Subsytem for Linux - running applications that use openGL

I am able to run a number of GUI applications successfully on windows subsystem for linux (WSL), Ubuntu 14.04.4 LTS, using X-forwarding (via MobaXterm).
I recently tried to run an application that uses OpenGL. Although the GUI opens, there are a number of errors and some aspects of the GUI don't work properly. The errors are:
QT error: 1
QT error: <PyQt5.QtCore.QMessageLogContext object at 0x7f88e21d9ba8>
QT error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
libGL error: failed to load driver: swrast
I can get rid of the swrast error by setting export LIBGL_ALWAYS_INDIRECT=1 but the other errors remain:
QT error: 1
QT error: <PyQt5.QtCore.QMessageLogContext object at 0x7fed3689e828>
QT error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
A typical error when attempting to use part of the GUI is:
WARNING: QT error: 1 (Gui.qtMessageHandler:51)
WARNING: QT error: <PyQt5.QtCore.QMessageLogContext object at 0x7f9b35e7b6d8> (Gui.qtMessageHandler:51)
WARNING: QT error: QOpenGLWidget: Failed to make context current (Gui.qtMessageHandler:51)
I can run glxgears, but I realise this only checks a fraction of OpenGLs functions. If I run glmark2 I get the following:
glmark2
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
Error: Glmark2 needs OpenGL(ES) version >= 2.0 to run (but version string is: '1.4 (4.0.0 - Build 10.18.10.4358)')!
Error: main: Could not initialize canvas
If I run find /usr -iname "*libGL.so*" -exec ls -l -- {} + suggested on this link https://askubuntu.com/questions/541343/problems-with-libgl-fbconfigs-swrast-through-each-update I get the following output but I'm not sure if this indicates an error or not?
lrwxrwxrwx 1 root root 14 Jan 12 2016 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 -> libGL.so.1.2.0
-rw-r--r-- 1 root root 413968 Jan 12 2016 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
Running glxinfo seems to indicate the on-chip graphics card is used (there is a separate AMD graphics card but I don't think it's necessary to use that).
glxinfo | grep render
direct rendering: No (LIBGL_ALWAYS_INDIRECT set)
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
OpenGL renderer string: Intel(R) HD Graphics 4000
How can I successfully run OpenGL applications via WSL?

Difference between the terms OpenMPI and MPI API from output of mpi_info

when I type ompi_info on my terminal, I get a huge output on my terminal buffer, a part of which looks like :
Package: Open MPI buildd#lgw01-57 Distribution
Open MPI: 1.10.2
Open MPI repo revision: v1.10.1-145-g799148f
Open MPI release date: Jan 21, 2016
Open RTE: 1.10.2
Open RTE repo revision: v1.10.1-145-g799148f
Open RTE release date: Jan 21, 2016
OPAL: 1.10.2
OPAL repo revision: v1.10.1-145-g799148f
OPAL release date: Jan 21, 2016
MPI API: 3.0.0
Ident string: 1.10.2
Prefix: /usr
Configured architecture: x86_64-pc-linux-gnu
Configure host: lgw01-57
Configured by: buildd
Ignoring the info on release dates, I am curious specifically about the meaning of second line: Open MPI : 1.10.2 and line number twelve: MPI API : 3.0.0 . Does it mean the new functions from Open MPI version 3.0.0 available on the MPI version 1.10.2 ?
Open MPI is an implementation (e.g. code) of the MPI Standard (e.g. pdf document).
These are two distinct things that have their own and independent versions.
Answering my own question, it seems yes, the stable version of OpenMPI 1.10 supports most of the new features introduced in MPI 3 . This page of OpenMPI-1.10.1 shows the list of all MPI API's available which includes the API for one sided communication, which was introduced in MPI version 2.0, and features of MPI 3.0 like non-blocking collective operations like MPI_Ibcast and matching probes like MPI_Mprobe and MPI_Mrecv.
Although this list also doesn't contain the MPI_T tool interface and many other features which is available in the current stable release of openMPI-3.0 .

aparapi OpenCLDevice.best() returned null

i am trying to play with aparapi but i haven't even started. Tried to go from https://vasanthexperiments.wordpress.com/2011/11/20/aparapi-java-matrix-multiplication-example/#comments this code, but right after execution i get:"
feb 02, 2016 8:12:30 PM com.amd.aparapi.KernelRunner warnFallBackAndExecute
WARNING: Reverting to Java Thread Pool (JTP) for class AparapiMatMul: GPU request can't be honored OpenCLDevice.best() returned null
What are the troubleshooting steps, had really no luck googling. I have newest catalyst and amd sdk installed, my cars is radeon hd 6950.
Just an idea:
There is a sample in the aparapi examples project that lists all devices in your environment:
https://github.com/Syncleus/aparapi-examples/tree/master/src/main/java/com/aparapi/examples/info

R studio source code build in QT Creator

We have referred the steps provided in the following link to build the r studio source code
click here
We have build the source code using QT Creator, while running the r studio project we got the
Output like below screen shot. How to get the entire output
And also we have face some error while running the projects. Please find the error information below
Project Name: consoleio
Starting C:\rstudio-master\src\qtcreator-build\session\consoleio\consoleio.exe...
Error: Not enough arguments
Usage: consoleio.exe <program> [program-arguments]
C:\rstudio-master\src\qtcreator-build\session\consoleio\consoleio.exe exited with code 1
Project Name :diagnostic
Starting C:\rstudio-master\src\qtcreator-build\diagnostics\diagnostics.exe...
Log file: rdesktop.log
--------------------------------------------------
04 Aug 2014 08:29:43 [rdesktop] ERROR system error 2 (The system cannot find the file specified); OCCURRED AT: virtual void core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:\Users\Administrator\rstudio\src\cpp\core\include/core/http/NamedPipeAsyncClient.hpp:83; LOGGED FROM: void desktop::NetworkReply::onError(const core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:279
07 Aug 2014 11:21:10 [rdesktop] ERROR system error 231 (All pipe instances are busy); OCCURRED AT: virtual void core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:\Users\Administrator\rstudio\src\cpp\core\include/core/http/NamedPipeAsyncClient.hpp:83; LOGGED FROM: void desktop::NetworkReply::onError(const core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:279
07 Aug 2014 11:21:11 [rdesktop] ERROR system error 231 (All pipe instances are busy); OCCURRED AT: virtual void core::http::NamedPipeAsyncClient::connectAndWriteRequest() C:\Users\Administrator\rstudio\src\cpp\core\include/core/http/NamedPipeAsyncClient.hpp:83; LOGGED FROM: void desktop::NetworkReply::onError(const core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:279…………..
ProjectName: rsession
ProjectName :urlopener
Starting C:\rstudio-master\src\qtcreator-build\desktop\urlopener\urlopener.exe...
SHIMVIEW: ShimInfo(Complete)
Error: Not enough arguments
C:\rstudio-master\src\qtcreator-build\desktop\urlopener\urlopener.exe exited with code 1
How to resolve this error and debug the r studio source in QT creator
It looks like you're trying to run against the 64 bit version of R. Here's how to switch to 32 bit:
Open a new command prompt in your qtcreator-build directory
Run desktop\rstudio.exe
Immediately after pressing Enter, hold down Ctrl (or just use Ctrl+Enter to run the command), and keep it held down while RStudio launches
When the "Choose R Version" dialog pops up, select a 32 bit version of R.
See this page for more details (scroll to the bottom for Windows-specific build help).

Resources