Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente | ||
|
raspberry:camera [2019/03/09 13:30] stefano [motion] |
raspberry:camera [2023/04/17 14:25] (versione attuale) |
||
|---|---|---|---|
| Linea 46: | Linea 46: | ||
| Infine dobbiamo dire che per rendere attivo all' | Infine dobbiamo dire che per rendere attivo all' | ||
| e inserire all' | e inserire all' | ||
| + | |||
| + | ==== ffmpeg ffserver ==== | ||
| + | Questa soluzione prevede un server (ffserver) di streaming \\ | ||
| + | e un codificatore che attiva il flusso (ffmpeg) \\ | ||
| + | Bisogna preparare bene il file / | ||
| + | di default non funziona con la raspicam\\ | ||
| + | quindi ho rinominato l' | ||
| + | <file txt ffeserver.conf> | ||
| + | Port 8090 | ||
| + | # bind to all IPs aliased or not | ||
| + | BindAddress 0.0.0.0 | ||
| + | # max number of simultaneous clients | ||
| + | MaxClients 10 | ||
| + | # max bandwidth per-client (kb/s) | ||
| + | MaxBandwidth 1000 | ||
| + | # Suppress that if you want to launch ffserver as a daemon. | ||
| + | NoDaemon | ||
| + | |||
| + | <Feed feed1.ffm> | ||
| + | File / | ||
| + | FileMaxSize 10M | ||
| + | </ | ||
| + | |||
| + | <Stream test.mjpg> | ||
| + | Feed feed1.ffm | ||
| + | Format mpjpeg | ||
| + | VideoFrameRate 4 | ||
| + | VideoSize 600x480 | ||
| + | VideoBitRate 80 | ||
| + | # VideoQMin 1 | ||
| + | # VideoQMax 100 | ||
| + | VideoIntraOnly | ||
| + | NoAudio | ||
| + | Strict -1 | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | poi ho lanciato da root\\ | ||
| + | ffserver -f / | ||
| + | che però mi lascia la consolle aperta\\ | ||
| + | e poi\\ | ||
| + | ffmpeg -v verbose -r 5 -s 600x480 -f video4linux2 -i /dev/video0 http:// | ||
| + | |||
| + | e da browser http:// | ||
| + | poi lo stesso http:// | ||
| + | e funziona pure su zoneminder: | ||
| + | sorgente: ffmpeg\\ | ||
| + | percorso: http:// | ||
| + | metodo remoto: RTP/Unicast \\ | ||
| + | |||
| + | Il problema con queste prove è che la qualità fa schifo\\ | ||
| + | Ma dalle ultime prove sembra che una grossa differenza l' | ||
| + | quindi una buona soluzione non ancora ottimale sarebbe la seguente:\\ | ||
| + | <file txt ffserver.conf> | ||
| + | Port 8090 | ||
| + | # bind to all IPs aliased or not | ||
| + | BindAddress 0.0.0.0 | ||
| + | # max number of simultaneous clients | ||
| + | MaxClients 10 | ||
| + | # max bandwidth per-client (kb/s) | ||
| + | MaxBandwidth 1000 | ||
| + | # Suppress that if you want to launch ffserver as a daemon. | ||
| + | NoDaemon | ||
| + | |||
| + | <Feed feed1.ffm> | ||
| + | File / | ||
| + | FileMaxSize 10M | ||
| + | launch ffmpeg -f video4linux2 -i /dev/video0 | ||
| + | </ | ||
| + | |||
| + | #<Stream test.mjpg> | ||
| + | #Feed feed1.ffm | ||
| + | #Format mpjpeg | ||
| + | # | ||
| + | #VideoSize 600x480 | ||
| + | # | ||
| + | ## VideoQMin 1 | ||
| + | ## VideoQMax 100 | ||
| + | # | ||
| + | #NoAudio | ||
| + | #Strict -1 | ||
| + | #</ | ||
| + | |||
| + | <Stream live.flv> | ||
| + | Format flv | ||
| + | Feed feed1.ffm | ||
| + | VideoCodec flv | ||
| + | VideoFrameRate 4 | ||
| + | VideoBitRate 800 | ||
| + | VideoSize 800x600 | ||
| + | noaudio | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | aggiungere: | ||
| + | <Stream stat.html> | ||
| + | Format status | ||
| + | </ | ||
| + | |||
| + | per avere lo stato della situazione\\ | ||
| + | |||
| + | Però ho notato le seguenti diciture in seguito all' | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| ==== utilizzo risorse ==== | ==== utilizzo risorse ==== | ||
| Linea 132: | Linea 242: | ||
| ffmpeg_output_movies on | ffmpeg_output_movies on | ||
| + | ===== link utili ===== | ||
| + | |||
| + | https:// | ||