5.Licheepi投屏

Licheepi-投屏

内核:linux-zero-5.2.y

buildroot:buildroot-2020.02.1(版本尽量和我一样,我之前使用buildroot2017.08.1的时候,没有配置项gst1-plugins-bayer2rgb-neon)

1.CedarX

我在配置的时候出过两个问题:

1.开机后,目录/dev没有cedar_dev和ion。原因就是修改完设备树之后,结点cedarx和ion的status要改为okay就可以了。

2.make menuconfig菜单里面没有Media staging drivers,原因是根据要求修改完后,要make clean一下。

其它就没有什么问题了。

参考:https://github.com/aodzip/cedar/

2.Libcedarc

这个没什么好说的跟着配置就可以了。

参考:https://github.com/aodzip/libcedarc

3.gstremer

关于这个我是花了最多时间的,一个是它需要很多包,并且有些又要科.学.上.网。

根据大佬更改函数gst_omx_video_get_format_from_omx的时候,有时候把标记删了也不管用,要重新make clean一下,才能编译过去,否则会出现OMX_COLOR_FormatYVU420Planar未定义错误。

接下来就是执行gst-launch-1.0 filesrc location=test.mp4 ! qtdemux ! h264parse ! omxh264dec ! autovideoconvert ! fbdevsink

如果出现:

debug  : omx_vdec <__AwOmxVdecSetCallbacks:1812>:===== vdec set callbacks
Pipeline is PREROLLING ...
debug  : omx_vdec <AwOmxVdecPortSetDefinitioin:190>:port:<<<<<<<<in,nBufferCountActual = 2, mBufferCntActual = 2
debug  : omx_vdec <AwOmxVdecPortSetDefinitioin:190>:port:<<<<<<<<in,nBufferCountActual = 2, mBufferCntActual = 2
error  : omx_vdec <AwOmxVdecPortGetFormat:288>:erro: pParamData->nIndex > m_sPortFormatType.nIndex

那就是颜色空间没有被添加进去,重新make clean就可以了。

参考:https://whycan.com/t_5398.html

4.添加gmrender-resurrect和再次修改gstreamer1.0

这个没有遇到什么奇奇怪怪的问题,你要确保上一步能播放视频并且没有ERROR出现。

参考:https://whycan.com/t_5462.html

5.上电

首先加载wifi驱动:

insmod r8723bs.ko

启动wifi:

ifconfig wlan0 up

搜索wifi,搜索的前提是在/etv/wpa_supplicant.conf已经配置好了wifi的信息

wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf

自动分配ip:

udhcpc -i wlan0

声音开启:

amixer -c 0 sset 'Headphone',0 100% unmute

启动gmediarender:

gmediarender -f "R1CHIE" --gstout-videosink=fbdevsink --gstout-audiosink=alsasink

视频链接:https://www.bilibili.com/video/BV1yK4y1W7HY

posted @ 2021-02-19 21:37  R1chie  阅读(200)  评论(0编辑  收藏  举报