I tried to pipe streaming video from video4linux2 webcam connected to a Raspberry Pi through /dev/ttyAMA0 to a computer using an Arduino as a intermediary. First of all, is it possible? Because I was thinking about with the max baud base from ttyAMA0 (115200bps)
I tried to make a fifo using mkfifo inside tty and does not works, I tried to use avconv documentation to learn how to make properly the pipe inside the encoding line like:
avconv -f video4linux2 -i /dev/video0 -somestuff -f mpeg2video pipe:1 | cat > serial:/dev/ttyAMA0:115200/webcam.mpg
Also doesn't works. *ttyAMA0 is made executable whith chmod and I have the permisions commenting the /etc/inittab corresponding line.
Another option was:
avconv -i in ${encoding options} -f mkv /dev/serial
And so on. In than case the output was "'mkv' is not a suitable output format". I had defined the serial before the command line.
It has to be with the UART pins because i can only use the USB to connect the Arduino to the computer and I cannot use an usbnet. Anyone could help me? It doesn't matter if the answer is extremely simple and it could offend me. I need some help.