forked from rockchip-linux/mpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/OpenHD/mpp into develop
- Loading branch information
Showing
7 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,49 @@ | ||
#!/bin/bash | ||
# This file is the install instruction for the CHROOT build | ||
# We're using cloudsmith-cli to upload the file in CHROOT | ||
|
||
sudo apt install -y python3-pip | ||
sudo pip3 install --upgrade cloudsmith-cli | ||
ls -a | ||
sudo apt install -y git ruby-dev make cmake gcc g++ wget libdrm-dev | ||
curl -1sLf 'https://dl.cloudsmith.io/public/openhd/release/setup.deb.sh'| sudo -E bash | ||
apt update | ||
sudo apt install -y git ruby-dev curl make cmake gcc g++ wget libdrm-dev mlocate openhd qopenhd-rk3566 apt-transport-https apt-utils open-hd-web-ui | ||
gem install fpm | ||
cd build/linux/aarch64 | ||
./make-Makefiles.bash | ||
make -j$(nproc) | ||
make DESTDIR=mpp-package -j4 install | ||
echo "Current directory: $(pwd)" | ||
cd mpp-package/usr/local | ||
mv lib ../ | ||
cd ../ | ||
mkdir -p aarch64-linux-gnu | ||
cd lib | ||
mv * ../aarch64-linux-gnu/ | ||
mv ../aarch64-linux-gnu ../lib/aarch64-linux-gnu | ||
mkdir -p /opt/additionalFiles/build/linux/aarch64/mpp-package/etc/systemd/system/ | ||
mv /opt/additionalFiles/h264_decode.service /opt/additionalFiles/build/linux/aarch64/mpp-package/etc/systemd/system/ | ||
mkdir -p /opt/additionalFiles/build/linux/aarch64/mpp-package/usr/local/bin | ||
mv /opt/additionalFiles/Header.h264 /opt/additionalFiles/build/linux/aarch64/mpp-package/usr/local/bin/ | ||
mv /opt/additionalFiles/build/linux/aarch64/mpp-package/usr/local/bin/openhd_vid_test /opt/additionalFiles/build/linux/aarch64/mpp-package/usr/local/bin/openhd_vid | ||
chmod +x /opt/additionalFiles/build/linux/aarch64/mpp-package/usr/local/bin/openhd_vid | ||
cd ../../../ | ||
fpm -a arm64 -s dir -t deb -n mpp -v 1.0 -C mpp-package -p mpp_VERSION_ARCH.deb | ||
echo "copied deb file" | ||
VERSION="1.1-$(date +'%m/%d/%Y')" | ||
VERSION=$(echo "$VERSION" | sed 's/\//-/g') | ||
fpm -a arm64 -s dir -t deb -n mpp-rk3566 -v "$VERSION" -C mpp-package -p mpp-rk3566_VERSION_ARCH.deb | ||
echo "push to cloudsmith" | ||
git describe --exact-match HEAD >/dev/null 2>&1 | ||
echo "Pushing the package to OpenHD 2.3 repository" | ||
ls -a | ||
ls -a ../../../ | ||
API_KEY=$(cat ../../../cloudsmith_api_key.txt) | ||
DISTRO=$(cat ../../../distro.txt) | ||
FLAVOR=$(cat ../../../flavor.txt) | ||
BOARD=$(cat ../../../board.txt) | ||
API_KEY=$(cat /opt/additionalFiles/cloudsmith_api_key.txt) | ||
DISTRO=$(cat /opt/additionalFiles/distro.txt) | ||
FLAVOR=$(cat /opt/additionalFiles/flavor.txt) | ||
BOARD=$(cat /opt/additionalFiles/board.txt) | ||
|
||
if [ "$BOARD" = "rk3566" ]; then | ||
if [ "$BOARD" = "rk3588" ]; then | ||
for file in *.deb; do | ||
mv "$file" "${file%.deb}-rk3566.deb" | ||
mv "$file" "${file%.deb}-rk3588.deb" | ||
done | ||
cloudsmith push deb --api-key "$API_KEY" openhd/dev-release/${DISTRO}/${FLAVOR} *.deb || exit 1 | ||
else | ||
for file in *.deb; do | ||
mv "$file" "${file%.deb}-rk3588.deb" | ||
mv "$file" "${file%.deb}-rk3566.deb" | ||
done | ||
cloudsmith push deb --api-key "$API_KEY" openhd/dev-release/${DISTRO}/${FLAVOR} *.deb || exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=rock_h264_decode | ||
|
||
[Service] | ||
User=root | ||
|
||
# Video decode via mpp, started by QOpenHD if needed (and stopped if needed) | ||
#ExecStart=/bin/sh -c "gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, payload=(int)96, clock-rate=(int)90000, media=(string)video, encoding-name=(string)H264' ! rtph264depay ! h264parse ! mppvideodec format=23 fast-mode=true ! queue ! kmssink plane-id=54 force-modesetting=false" | ||
ExecStart=/bin/sh -c "gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, payload=(int)96, clock-rate=(int)90000, media=(string)video, encoding-name=(string)H264' ! rtph264depay ! h264parse config-interval=1 ! video/x-h264,stream-format=byte-stream,alignment=au ! fdsink fd=1 | openhd_vid >/dev/tty1" | ||
Restart=always | ||
RestartSec=2 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters