> I tried to encode one mpeg2 video to h.264, but the encoded video can’t be > played by vlc. My ffmpeg is 0.11.1. > > My code is as below: > > int CStreamReader::Read(std::string name, std::string destIP, int port) > > { . I might suggest re-posing your question to the libav-user group.