視訊到手機網頁 技術整理

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

srs rtmp forward (push) out || pull in push out

master 192.168.105.20 srs.conf isten 1935; max_connections 1000; srs_log_tank console; #file; #console; srs_log_file ./objs/srs.log; daemon off; #on or delete this line http_api { enabled on; listen 1985; } http_server { enabled on; listen 8080; dir ./objs/nginx/html; } stats { network 0; disk sda sdb xvda xvdb; } vhost __defaultVhost__ { ingest livestream { enabled on; input { type stream; url rtmp://xxx.ooo.xxx.ooo/live/nna1 } ffmpeg ./objs/ffmpeg; #if no build, just install then link -s engine { enabled off; output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/nna2 #this push back this server ...

2017-09-22 · 2 min · 216 words · Me