ARJhe / django_rtsp_ipc

ip camera
3 stars 0 forks source link

Stratup #1

Open ARJhe opened 4 years ago

ARJhe commented 4 years ago

Initial Env Settings

git

# initialize repo
git init 
# create ignore file
echo > .gitignore
# to buffer zone
git commit -m "add ignore" .gitignore
# create new project on github
# indicate remote stock
git remote add origin https://github.com/ARJhe/django_rtsp_ipc.git
# push to remote
git push -u origin master

env setting

Django

django-admin startproject ipc_server django-admin startapp streaming

stream_path = "http://127.0.0.1:8000/static/live/stream/mystream.m3u8"

def home(request): return render(request, 'streaming/index.html', {'stream_path': stream_path})


- set streaming home url (create urls.py under streaming)
`[streaming] > urls.py`
```py
from django.urls import path
from . import views
urlpatterns = [
    path('', views.home, name='streaming_home'),
]
ARJhe commented 4 years ago

Ubuntu Settings

FFMPEG

https://docs.google.com/document/d/1R33BIMTD8pe0UXWRTzOcZkvgQLHPP-QHZ_kupLWczVQ/edit?usp=sharing