Giter VIP home page Giter VIP logo

Comments (6)

JeffyCN avatar JeffyCN commented on May 28, 2024

没有计划支持,理论上可行,有兴趣可以自行尝试移植和调试

from libv4l-rkmpp.

iyangsheng avatar iyangsheng commented on May 28, 2024

我用chromium_95.0.4638中的补丁编译了chromium_95.0.4638,通过查看chrome://gpu 显示已经开启视频硬件解码,但是不能播放视频,启动命令
chromium-browser --no-sandbox --gpu-sandbox-start-early --ignore-gpu-blacklist --ignore-gpu-blocklist --enable-accelerated-video-decode --enable-features=VaapiVideoDecoder
image
image

控制台有报错

image

from libv4l-rkmpp.

JeffyCN avatar JeffyCN commented on May 28, 2024

--use-gl=egl

from libv4l-rkmpp.

iyangsheng avatar iyangsheng commented on May 28, 2024

还是不能播放
完整日志
pi@SOM-RK3399v2:~$ chromium-browser --no-sandbox --gpu-sandbox-start-early --ignore-gpu-blacklist --ignore-gpu-blocklist --enable-accelerated-video-decode --enable-features=VaapiVideoDecoder --use-gl=egl [2164567:2164567:0224/102645.727058:ERROR:power_monitor_device_source_stub.cc(11)] Not implemented reached in virtual bool base::PowerMonitorDeviceSource::IsOnBatteryPower() [2164567:2164605:0224/102646.123501:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2164567:2164605:0224/102646.123581:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2164567:2164605:0224/102646.245727:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2164567:2164605:0224/102646.246008:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2164621:2164621:0224/102646.254802:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is egl, ANGLE is [2164567:2164599:0224/102646.386867:ERROR:login_database.cc(693)] Password store database is too new, kCurrentVersionNumber=31, GetCompatibleVersionNumber=33 [2164567:2164599:0224/102646.388114:ERROR:password_store_impl.cc(455)] Could not create/open login database. [2164567:2164601:0224/102646.400270:ERROR:login_database.cc(693)] Password store database is too new, kCurrentVersionNumber=31, GetCompatibleVersionNumber=33 [2164567:2164601:0224/102646.417919:ERROR:password_store_impl.cc(455)] Could not create/open login database. [2164567:2164605:0224/102646.551810:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2164567:2164605:0224/102646.552202:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2164567:2164601:0224/102646.942742:ERROR:top_sites_backend.cc(80)] Failed to initialize database. [2164567:2164664:0224/102653.212343:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends. [2164567:2164664:0224/102653.212812:ERROR:chrome_browser_main_extra_parts_metrics.cc(233)] crbug.com/1216328: Checking Bluetooth availability ended. [2164567:2164664:0224/102653.214793:ERROR:chrome_browser_main_extra_parts_metrics.cc(236)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends. [2164567:2164664:0224/102653.408014:ERROR:chrome_browser_main_extra_parts_metrics.cc(240)] crbug.com/1216328: Checking default browser status ended.

from libv4l-rkmpp.

JeffyCN avatar JeffyCN commented on May 28, 2024

此类功能依赖较多,请使用rockchip官方 buildroot/debian/yocto SDK

from libv4l-rkmpp.

JeffyCN avatar JeffyCN commented on May 28, 2024

基本流程是:
chromium检测/dev/video-dec0 /dev/video-enc0文件,然后调用libv4l-utils,触发里面的libv4l-rkmpp,然后走到rockchip mpp和mpp驱动去解码, 解码的图像通过egl导入纹理进行渲染
里面任何一个环节异常都会导致软解

总体流程比较复杂,如果不方便调试可以使用sdk调好的环境
创建虚拟设备节点:

                # Create dummy video node for V4L2 VDA/VEA with rkmpp plugin
                echo dec > /dev/video-dec0
                echo enc > /dev/video-enc0

from libv4l-rkmpp.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.