Specifications
Figure 28 illustrates the record client (PCM-7130) and a record server
(Linux) using the TCP/IP protocol stack. The client and server each interact
with a protocol in the socket layer of the stack.
The procedure of the client images saving to record server when auto
recode is issued.
1. The client process logins on the record server
The client first connects to record server program using socket interface,
the server subsequently identifies the client rights that responses the ‘Login’
and ‘Password’ command to the client, if the username and password are
correct whose the client sent then the server identify is okay or the server
would break down the connection.
2. YUV convert to JPEG in client
The first image type is YUV cause of the M318B camera, and the file
size is too bigger for YUV image to send. The YUV image files therefore
need to reduce size with compressed, hence the compressed image has many
file type, ex. avi, mpg, jpg … etc, and the jpg encoder is wonder for the
others as the compressive performance of PCM-7130. PCM-7130 applied
jpeg encoder with JPEG Group’s ‘jpeglib’ which is ISO JPEG standard and
more convenient to use.
3. The client process sends the jpeg stream to the record server
The client process would send the jpeg stream to record server after the
jpeg image file is ready, if the client process wants to finish the streaming,
then it can sent ‘Quit’ command or break down connection by directly.
4. The server stores the jpeg stream
The server process gets the jpeg stream from the client via internet, the
server then save the jpeg files in a directory and make a sequent name with
its.
5. JPEG convert to 3gp (third generation video) format video file to FTP
directory using FFmpeg
The server would back to listen mode for waiting the connection with
client when the connection is broke, in the same time the server invokes the
FFmpeg program in background to encode the jpeg stream (which obtained
by step 4) to a video file for the users watching it. FFmpeg is a very fast
video and audio converter, and it supports many video and audio codec. The
49