Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RaspberryNode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
簡碩辰
RaspberryNode
Commits
97fce3bb
Commit
97fce3bb
authored
Sep 27, 2019
by
簡碩辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
3600d495
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Dockerfile
dvr/ffmpeg/Dockerfile
+8
-2
No files found.
dvr/ffmpeg/Dockerfile
View file @
97fce3bb
...
@@ -5,16 +5,20 @@ RUN apt-get update
...
@@ -5,16 +5,20 @@ RUN apt-get update
RUN
apt-get
install
-y
git pkg-config build-essential make
RUN
apt-get
install
-y
git pkg-config build-essential make
# 下載 h264 套件
# 下載 h264 套件
RUN
git clone git://git.videolan.org/x264 /usr/src/x264
RUN
git clone git://git.videolan.org/x264 /usr/src/x264
# 移動至 ffmpeg 套件資料夾
WORKDIR
/usr/src/x264
# 設定 h264 編譯參數
# 設定 h264 編譯參數
RUN
/usr/src/x264
/configure
--host
=
arm-unknown-linux-gnueabi
--enable-static
--disable-opencl
RUN
.
/configure
--host
=
arm-unknown-linux-gnueabi
--enable-static
--disable-opencl
# 編譯 h264
# 編譯 h264
RUN
make
RUN
make
# 安裝 h264
# 安裝 h264
RUN
make
install
RUN
make
install
# 下載 ffmpeg 套件
# 下載 ffmpeg 套件
RUN
git clone git://source.ffmpeg.org/ffmpeg.git /usr/src/ffmpeg
RUN
git clone git://source.ffmpeg.org/ffmpeg.git /usr/src/ffmpeg
# 移動至 ffmpeg 套件資料夾
WORKDIR
/usr/src/ffmpeg
# 設定 ffmpeg 編譯參數
# 設定 ffmpeg 編譯參數
RUN
/usr/src/ffmpeg
/configure
--arch
=
armel
--target-os
=
linux
--enable-gpl
--enable-libx264
--enable-nonfree
RUN
.
/configure
--arch
=
armel
--target-os
=
linux
--enable-gpl
--enable-libx264
--enable-nonfree
# 編譯 ffmpeg
# 編譯 ffmpeg
RUN
make
RUN
make
# 安裝 ffmpeg
# 安裝 ffmpeg
...
@@ -27,6 +31,8 @@ RUN pip3 install --upgrade pip
...
@@ -27,6 +31,8 @@ RUN pip3 install --upgrade pip
RUN
pip3
install
paho-mqtt
RUN
pip3
install
paho-mqtt
# 移除系統套件清單
# 移除系統套件清單
RUN
rm
-r
/var/lib/apt/lists/
*
RUN
rm
-r
/var/lib/apt/lists/
*
# 移動至使用者資料夾
WORKDIR
~
# 複製拋轉程式
# 複製拋轉程式
COPY
run.py run.py
COPY
run.py run.py
# 執行拋轉程式
# 執行拋轉程式
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment