As the increasing applications of streaming media, using the streaming media server to provide high-quality video service for people becomes a trend. Streaming media server for video format requirements has become the bottleneck of its development, In this paper, we give a kind of transcoding method, through compiling FFmpeg source code under the windows OS, adding the x264 video codec and FAAC audio library, we can get ffmpeg.exe which can run directly, and we use MFC to design the the operation interface, which used to convert other video formats into stream media server supported formats.