2017年5月22日 星期一

清除windows 的dns快取

Ref : https://blog.longwin.com.tw/2013/08/firefox-chrome-clean-cache-2013/






Firefox、Chrome 手動清除 DNS Cache 的方式

Chrome、Chromium 手動清除 DNS Cache 的方法

Chrome、Chromium 手動清除 DNS Cache 的步驟如下述:
  1. 瀏覽列輸入: chrome://net-internals/#dns # 下面會列出有哪些 DNS Cache
  2. Host resolver cache: Clear host cache # 點擊 "Clear host cache" 即完成清除

Firefox 手動清除 DNS Cache 的方法




Windows 如何清除暫存的 DNS Cache

只要是查詢過的 DNS, 都會暫存一段時間, 於 Windows 要清掉 DNS Cache, 要如何清除?

於 Windows 要清掉 DNS Cache

方法1
  1. 執行 cmd
  2. ipconfig /flushdns
    看到此行字即完成: successfully flushed the dns resolver cache
方法2
  1. 控制台 -> 管理工具 -> 服務
  2. 重新啟動 DNS Client 和 DHCP Client 服務即可.

2017年5月12日 星期五

video streaming

Ref : http://www.sortedset.com/live-video-stream-rtmp-nginx-ffmpeg-avconv-raspberry-pi/


我是裝 1.9.5版

這行指令網頁上有錯...

./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master



開機後執行

sudo /usr/local/nginx/sbin/nginx


avconv -f video4linux2 -r 25 -i /dev/video0 -f flv rtmp://localhost/live/



========================================================

Stream from a webcam

   vlc -I dummy -v --noaudio --ttl 12 v4l:/dev/video0:size=320x240 \
   --sout '#std{access=mmsh,dst=:8080}' -V X11 
   vlc -I dummy -v --noaudio --ttl 12 v4l:/dev/video0:size=320x240 \
   --sout '#transcode{vcodec=mp4v,vb=128}:std{access=mmsh,dst=:8080}'
Receive:
   vlc mmsh://123.45.678.9:8080


------------------------------------------------------------------

gstreaming

gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! 'video/x-raw,format=I420,width=640,height=480,framerate=30/1' ! omxh264enc target-bitrate=6500000 control-rate=variable !  h264parse ! flvmux  ! rtmpsink location='rtmp://localhost/live'