Watching remote webcam over piping and SSH?
Hello,
I am trying to watch a remote/distant webcam from /dev/video1 over piping and ssh. I logged onto SSH to the distant pc and try to send it to my remote X11 machine. 2 debian boxes on local network. This is not working: mplayer -zoom -fs -tv device=/dev/video1 tv:// - | ssh -l username 192.168.1.120 -C mplayer - my local pc is : username192.168.1.120 dd if=/dev/video1 | ssh username192.168.1.120 -C mplayer tv:// - ok, lets try to ffmpeg stream: Code:
ffmpeg -r 5 -s 320x240 -f video4linux2 -i /dev/video1 -itsoffset -6 http://127.0.0.1:8090/feed1.ffm Code:
x821e800] Estimating duration from bitrate, this may be inaccurate Would you know the trick? Thank you |
i dont know specifically but would mounting the pc via sshfs allow you to work with /dev/video1 as if it is local.
maybe playing with netcat mite work (i stole this from someones signature): Code:
#!/bin/bash |
Quote:
I dont understand so much how it works if its on remote or distant. i know that with ssh, you can run cmd with -C and gzip/gunzip it to make it faster. cpu are good enough to compress and ssh/gzip it over rj45 cable. nc is installed on my pc. cool: so do you mean like this? on distant: Code:
dd if=/dev/video0 bs=1024 | nc -l -s 127.0.0.1 -p 8020 Code:
mplayer 192.168.1.10:8090 maybe ffplay and ffmpeg can pipe and stream |
All times are GMT -5. The time now is 03:36 PM. |