● 얼굴인식 성공 dsm7.1.1 ds3622xs+ 서버전환 트랜스코딩설정및 얼굴인식
♨ 카랜더 일정 :
본문
● 얼굴인식 성공 dsm7.1.1 ds3622xs+ 서버전환 트랜스코딩설정및 얼굴인식
▶ 조건
1) 빌드 사용 dsm sn 은
tinycore redpill bootloader 에서 sn mac 생성 사용 조건
tc@box:~$ ./rploader.sh serialgen DS3622xs+
Serial Number for Model : 2030SQRA6MG4T
Mac Address for Model DS3622xs+ : 00:11:32:84:02:AE
Should i update the user_config.json with these values ? [Yy/Nn]
tc@box:~$ cat user_config.json_DS3622xs+
{
"extra_cmdline": {
"mac2": "00113220456A",
"netif_num": "2",
"pid": "0x0001",
"vid": "0x46f4",
"sn": "2150SQRKZTSBQ",
"mac1":"001132D34517",
"SataPortMap": "88",
"DiskIdxMap": "0000"
},
"synoinfo": {
"internalportcfg" : "0xffff",
"maxdisks" : "16"
},
"ramdisk_copy": { }
}
tc@box:~$
2) 트랜스코딩 activation 간단 patch 적용 사용 설정 법
wget https://raw.githubusercontent.com/dmc31a42/synocodectool-patch/master/patch.sh
chmod +x patch.sh
./patch.sh -h
patch.sh 에 dsm7.1.1버전 적용 진행
"7.1 42661-1" 을 160라인정도 마지막 추가
을 추가하면 정상적으로 patch 적용 됩니다
<활성화 확인>
more /usr/syno/etc/codec/activation.conf
또는
cat /usr/syno/etc/codec/activation.conf
{"success":true,"activated_codec":["hevc_dec","ac3_dec","h264_dec","h264_enc","aac_dec","aac_enc","mpeg4part2_dec","vc1_dec","vc1_enc"],"token":"123456789987654abc"}
================
< 참조 작업 내용>
root@https11qkr:/volume1/homes/shimss# cat transcoding_patch.sh
./patch.sh -l
echo "
=======================================
https://11q.kr/www/bbs/write.php?w=u&bo_table=s11&wr_id=11351&page=
트랜스코딩 활성화하는 script 다운로드 설치
시스템 조건 : x86-64 기반 > SSH/터미널 액세스 > sudo/루트(sudo -i)
이제 스크립트를 다운로드 받고 실행권한을 주겠습니다.
wget https://raw.githubusercontent.com/dmc31a42/synocodectool-patch/master/patch.sh
chmod +x patch.sh
사용법은 아래와 같습니다.
./patch.sh -h
작업)ds3622xs+ dsm 7.1.1 성공 추가내용
버전은 160 라인 이동
nano patch.sh
"7.1 42661-1"
을 추가합니다
./patch.sh -h
./patch.sh -l
./patch.sh -p
후에 1
Detected DSM version: 7.1 42661-1
Patch for DSM Version (7.1 42661-1) AVAILABLE!
Available binaries to patch/restore:
1) /usr/syno/bin/synocodectool
2) /volume1/@appstore/VideoStation/bin/synocodectool
3) /volume1/@appstore/MediaServer/bin/synocodectool
4) /volume1/@appstore/CodecPack/bin/synocodectool
5) /volume1/@appstore/AudioStation/bin/synocodectool
6) Quit
Please choose which binary you want to patch/restore:
1~5
활성화 확인>
more /usr/syno/etc/codec/activation.conf
또는
cat /usr/syno/etc/codec/activation.conf
{"success":true,"activated_codec":["hevc_dec","ac3_dec","h264_dec","h264_enc","aac_dec","aac_enc","mpeg4part2_dec","vc1_dec","vc1_enc"],"token":"123456789987654abc"}
원상복구방법은 -r 옵션을 주시면됩니다.
활성화 원복>
./patch.sh -r
이제 트랜스코딩을 잘 활용해주시면됩니다!
이번에 dsm7버전부터
추가된 얼굴인식도 트랜스코딩이 활성화 되어야 사용 가능 합니다.
주) 사용 설정 내용은 스샷 확인 바랍니다.
===============
● 비디오 스테이션, 트랜스코딩이 되지 않는 경우 - 비디오 형식 지원 안함시 ffmpeg 커뮤니티용 연결 작업
#시놀로지 ffmpeg 로 이동
cd /usr/bin
#버전확인
ffmpeg
#이름변경보관
mv ffmpeg ffmpeg_4.1.8
# 커뮤니티용 ffmpeg 버전확인
/volume1/@appstore/ffmpeg/bin/ffmpeg
# 커뮤니티의ffmpeg로 마운트 변경
ln -sf /volume1/@appstore/ffmpeg/bin/ffmpeg ./ffmpeg
=================== 2줄 작업 =============
mv /usr/bin/ffmpeg /usr/bin/ffmpeg418
cp /volume1/@appstore/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg
or
mv /usr/bin/ffmpeg /usr/bin/ffmpeg418
ln -sf /volume1/@appstore/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg
============================
========================================
"
#./patch.sh -l
./patch.sh -h
echo ============= setting ========================
./patch.sh -p
more /usr/syno/etc/codec/activation.conf
ls -lrt /usr/syno/etc/codec/
ffmpeg
/usr/bin/ffmpeg
/volume1/@appstore/ffmpeg/bin/ffmpeg
echo "
========
change processor
mv /usr/bin/ffmpeg /usr/bin/ffmpeg418
ln -sf /volume1/@appstore/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg
=================
"
root@https11qkr:/volume1/homes/shimss#
===============
또다른 트랜스코딩 방법 분석 ...예외 )
https://github.com/jinlife/Synology_Photos_Face_Patch
에서
https://github.com/jinlife/Synology_Photos_Face_Patch/raw/main/libsynophoto-plugin-model.so
다운로드 합니다
아래 자신의 homes/??에 저장후
/volume1/homes/??/libsynophoto-plugin-model.so
/var/packages/SynologyPhotos/target/usr/lib/
,,,에 복사 합니다
명령어cp /volume1/homes/jinlife/libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/
------------------- 폴더 분석 ---------------------
폴더 이동하여
wget으로 다운로드 하고
wget https://github.com/jinlife/Synology_Photos_Face_Patch/raw/main/libsynophoto-plugin-model.so
다운로드 하면
libsynophoto-plugin-model.so.2
복사 되고
폴더 ls -l libsynophoto-plugin-model.so*
하니
libsynophoto-plugin-model.so.1.0 로 연결 되어
libsynophoto-plugin-model.so.1.0 에 복사 필요함
cp libsynophoto-plugin-model.so.2 libsynophoto-plugin-model.so.1.0
---------------------------------
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib# ls libsynophoto-plugin-model.so -l
lrwxrwxrwx 1 SynologyPhotos SynologyPhotos 30 Mar 30 18:24 libsynophoto-plugin-model.so -> libsynophoto-plugin-model.so.1
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib# cp libsynohbkp-app.so libsynohbkp-app.so.back
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib# wget https://github.com/jinlife/Synology_Photos_Face_Patch/raw/main/libsynophoto-plugin-model.so
--2022-05-13 23:38:04-- https://github.com/jinlife/Synology_Photos_Face_Patch/raw/main/libsynophoto-plugin-model.so
Resolving github.com... 52.78.231.108
Connecting to github.com|52.78.231.108|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/jinlife/Synology_Photos_Face_Patch/main/libsynophoto-plugin-model.so [following]
--2022-05-13 23:38:05-- https://raw.githubusercontent.com/jinlife/Synology_Photos_Face_Patch/main/libsynophoto-plugin-model.so
Resolving raw.githubusercontent.com... 185.199.110.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 223075 (218K) [application/octet-stream]
Saving to: 'libsynophoto-plugin-model.so.2'
libsynophoto-plugin-model.so.2 100%[=================================================================================================================================================>] 217.85K --.-KB/s in 0.1s
2022-05-13 23:38:05 (2.09 MB/s) - 'libsynophoto-plugin-model.so.2' saved [223075/223075]
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib# ls libsynophoto-plugin-model.so* -l
lrwxrwxrwx 1 SynologyPhotos SynologyPhotos 30 Mar 30 18:24 libsynophoto-plugin-model.so -> libsynophoto-plugin-model.so.1
lrwxrwxrwx 1 SynologyPhotos SynologyPhotos 32 Mar 30 18:24 libsynophoto-plugin-model.so.1 -> libsynophoto-plugin-model.so.1.0
-rwxr-xr-x 1 SynologyPhotos SynologyPhotos 223075 Mar 30 18:24 libsynophoto-plugin-model.so.1.0
-rw------- 1 root root 223075 May 13 23:38 libsynophoto-plugin-model.so.2
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib# ls libsynophoto-plugin-model.so*.* -l
lrwxrwxrwx 1 SynologyPhotos SynologyPhotos 32 Mar 30 18:24 libsynophoto-plugin-model.so.1 -> libsynophoto-plugin-model.so.1.0
-rwxr-xr-x 1 SynologyPhotos SynologyPhotos 223075 Mar 30 18:24 libsynophoto-plugin-model.so.1.0
-rw------- 1 root root 223075 May 13 23:38 libsynophoto-plugin-model.so.2
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib# ls libsynophoto-plugin-model.so.* -l
lrwxrwxrwx 1 SynologyPhotos SynologyPhotos 32 Mar 30 18:24 libsynophoto-plugin-model.so.1 -> libsynophoto-plugin-model.so.1.0
-rwxr-xr-x 1 SynologyPhotos SynologyPhotos 223075 Mar 30 18:24 libsynophoto-plugin-model.so.1.0
-rw------- 1 root root 223075 May 13 23:38 libsynophoto-plugin-model.so.2
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib# cp libsynophoto-plugin-model.so.1.0 libsynophoto-plugin-model.so.1.0.back
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib# ls libsynophoto-plugin-model.so.* -l
lrwxrwxrwx 1 SynologyPhotos SynologyPhotos 32 Mar 30 18:24 libsynophoto-plugin-model.so.1 -> libsynophoto-plugin-model.so.1.0
-rwxr-xr-x 1 SynologyPhotos SynologyPhotos 223075 Mar 30 18:24 libsynophoto-plugin-model.so.1.0
-rwx------ 1 root root 223075 May 13 23:42 libsynophoto-plugin-model.so.1.0.back
-rw------- 1 root root 223075 May 13 23:38 libsynophoto-plugin-model.so.2
root@https11qkr:/var/packages/SynologyPhotos/target/usr/lib#
참조 합니다.
☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠
뷰PDF 1,2
office view
관련자료
-
링크
-
이전
-
다음
댓글목록
등록된 댓글이 없습니다.