As mentioned in Section X we have developed an algorithm to detect movie playing. Server starts using JPEG encoding for the detected region which increases the frame rate and also decreases bandwidth usage dramatically without any distinguishable loss by eye from the original. This technique can be improved by bypassing the rendering to frame buffer.   

\begin{figure}[htpb]
\centering
\includegraphics[width=0.5\textwidth]{movie_support2.png}
\caption{Better movie support}
\label{fig:movie_support}
\end{figure}

Figure~\ref{fig:movie_support} demonstrates the necessary steps for each of these techniques. In the regular approach user plays the movie in the server with any movie player and the frames are captured from frame buffer and compressed into JPEG images. In the transcoded case, the user selects the movie he want to share with participants and the frames are directly read from input file and transcoded on-the-fly into JPEG images in real-time. These JPEG images are transmitted into participants according to their bandwidths such that low bandwidth users get less fps compare to high bandwidth users. For on-the-fly transcoding we have used FFMPEG-Java which is a sub-project of Freedom for Media in Java, FMJ in short. FFMPEG-Java is a Java wrapper around FFMPEG, using JNA. The architecture of the implemented system is given in Figure~\ref{fig:transcoding}. The results with this technique is better than the regular one due to low overhead on the system. The detailed performance results can be found in the following section. 

\begin{figure}[htpb]
\centering
\includegraphics[width=0.47\textwidth]{transcoding.png}
\caption{Transcoding a movie into JPEGs}
\label{fig:transcoding}
\end{figure}