I'm trying to send and show a webcam stream from a linux server to an iPhone app. I don't know if it's the best solution, but I downloaded and installed FFMpeg on the linux server. I managed to send a video stream from the server (or, at least, that's what I think I did) calling
I know something arrived because on the Mac machine I have a simple UDP client that shows incoming messages. I'm not sure, but I guess the same messages would arrive on an iPhone app (the code is the same). For what I see on my client, I receive packets of 16 bytes.
Now, I need to analyze those packets and show the video stream. May anyone point me to the right direction? I'm a bit confused about the role of the segmenter program and how to use it.
Besides, as I said, I'm not sure FFMpeg is the best/simplest solution to this problem, so any suggestions would be appreciated, as using another streaming server or adopt a different approach.
Code:
ffmpeg -b 96k -r 20 -s 320x240 -f video4linux2 -i /dev/video0 -f mpegts -vcodec mpeg2video udp://192.168.1.34:1234
I know something arrived because on the Mac machine I have a simple UDP client that shows incoming messages. I'm not sure, but I guess the same messages would arrive on an iPhone app (the code is the same). For what I see on my client, I receive packets of 16 bytes.
Now, I need to analyze those packets and show the video stream. May anyone point me to the right direction? I'm a bit confused about the role of the segmenter program and how to use it.
Besides, as I said, I'm not sure FFMpeg is the best/simplest solution to this problem, so any suggestions would be appreciated, as using another streaming server or adopt a different approach.