1

내가 크로스 컴파일 라즈베리 PI2 (raspbian-제시)에 qt5.7의 qtwebengine을하고 qtwebengine/예제를 사용하려고/webenginewidgets/demobrowser에 https://wiki.qt.io/RaspberryPi2EGLFS에 따라 라즈베리 파이에 소리와 랙이이 없습니다 및 simplebrowser가HTML5 비디오는 2

html5 video tag 그러나, 두 가지 주요 문제가있는 재생 :

첫째, 비디오 소리가 없다, 당신은 비슷한 질문 qtwebengine no sound in embedded linux 비디오가 재생 있지만 사운드 출력을 볼 수 있습니다.

/simplebrowser 
ble to query physical screen size, defaulting to 100 dpi. 
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters). 
[0803/134150:ERROR:browser_main_loop.cc(217)] Running without the SUID sandbox! See ttps://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the sandbox on. 
[0803/134150:ERROR:surface_factory_qt.cpp(68)] Failed to load /opt/vc/lib/libGLESv2.so.2: /opt/vc/lib/libGLESv2.so.2: cannot open shared object file: No such file or directory 
[0803/134150:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134150:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134150:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134150:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134150:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134150:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134150:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134150:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134150:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134150:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134150:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134150:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134150:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134150:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134150:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134150:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134153:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134153:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134153:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134153:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134153:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134153:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134153:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134153:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134153:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134153:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
[0803/134153:ERROR:gl_surface_qt.cpp(414)] Trying to create surface with invalid display. 
[0803/134153:ERROR:command_buffer_proxy_impl.cc(201)] Failed to initialize command buffer service. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(210)] CommandBufferProxy::Initialize failed. 
[0803/134153:ERROR:webgraphicscontext3d_command_buffer_impl.cc(229)] Failed to initialize command buffer. 
js: Refused to set unsafe header "User-Agent" 
js: Refused to set unsafe header "User-Agent" 
js: Refused to set unsafe header "User-Agent" 

나는 libGLESv2.so.2을로드하지 못했습니다 생각 :

둘째, 비디오 나는 하드웨어 나 프로그램을 실행하면 때문에, 그것은 다음과 같은 메시지가 출력 가속되지 않는 것으로, 랙이있다 하드웨어 가속이 꺼집니다.

누구나 이것에 대해 어떤 생각이나 경험이 있습니까?

대단히 감사합니다.

답변

0

오디오에 대해서는, 내가 말한 링크로 대답했습니다 (QtWebEngine Quicknano has no Sound in Embedded Linux).

비디오 정보, 속성 코덱 지원을 활성화합니까? 나는 그것이 어떻게 broadcome cpu와 작동하는지 모르지만 속성 코덱과 크롬을위한 하나의 패치가있는 프리 스케일 보드에서 나는 오디오와 비디오를 부드럽게 처리한다.

참고 : , X11 제외, 오디오는 eglfs 및 alsa와 함께 사용하십시오.

+0

친애하는 Wojciech Koprowski : 비디오 부분에 대해서는 WEBENGINE_CONFIG + = use_proprietary_codecs를 사용하여 h264 비디오를 지원할 수 있습니다. 위에서 언급 한 크롬에 대한 패치를 나눠 줄 수 있습니까? 감사. – user2717600

+0

죄송합니다.이 패치는 Qt 상용 버전의 일부이므로 공유 할 수 없습니다. 그러나이 패치는 texture_rg 지원이 부족하기 때문에 Vivante GPU 용으로 만 설계되었습니다. 그래서 Raspberry Pi의 문제는 아닙니다. 모든 하드웨어 멀티미디어 지원을 Linux 빌드에 추가해야합니다 (OpenGL 라이브러리가없는 경우). –