Port Forwarding Gateway via iptables on Linux

1、 http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html#NATSG 1.1、Create instance form ami :ami-vpc-nat-hvm choese best new ***NAT AMI*** 1.2、 Check.IPv4 forwarding is enabled and ICMP redirects are disabled in /etc/sysctl.d/10-nat-settings.conf IPv4 forwarding =1 Run.A script located at /usr/sbin/configure-pat.sh runs at startup and configures iptables IP masquerading. Here have problem, so must delete POSTROUTING sudo iptables -t nat -D POSTROUTING 1 2、 https://holtstrom.com/michael/blog/post/400/Port-Forwarding-Gateway-via-iptables-on-Linux.html eth0 10.0.0.219 52.78.165.129 eth1 10.0.1.149 web server 10.0.1.249 iptables -vxnL –line-numbers iptables -t nat -vxnL –line-numbers ...

2017-11-01 · 2 min · 235 words · Me

視訊到手機網頁 技術整理

2017-10-23 · 0 min · 0 words · Me

rtmp to rtsp to h5 MotionJPEG

https://github.com/agsh/rtsp-ffmpeg this is ok

2017-10-17 · 1 min · 4 words · Me

html5 rtmp stream

https://blog.gmem.cc/research-on-html5-video-surveillance

2017-10-05 · 1 min · word · Me

JSMpeg – MPEG1 Video & MP2 Audio Decoder in JavaScript for ios stream

First try this demo can play on ios http://jsmpeg.com/ Second https://github.com/phoboslab/jsmpeg#encoding-videoaudio-for-jsmpeg view-stream.html (nodejs localhost:8080 maybe can see) websocket-relay.js this is use node.js then get ws server Import !! ffmpeg -re -i rtmp://xxx.xxx.xxx.xxx/live/ooo -f mpegts -codec:v mpeg1video -bf 0 -codec:a mp2 -s 640x360 -r 30 -q 4 -muxdelay 0.001 http://localhost:8081/password -re 參數表示以視頻實際播放速率解碼,不加這個參數一般會導致直播速率變得飛快 -re一定要加,代表按照帧率发送,否则ffmpeg会一股脑地按最高的效率发送数据。 -muxdelay 0.001 reduce lag (maybe no use) -q 4 Need test You’re setting -q 1, which is the best possible quality. Try setting it to 4 or 8 instead. ...

2017-10-05 · 1 min · 148 words · Me