— In this paper, we present a two-pass error-resilience transcoding scheme based on content-aware intra-refresh (CAIR) for inserting error-resilience features to a compressed video. The proposed transcoder can adaptively vary the intrarefresh rate according to the video content and the channel’s packet-loss rate to protect the most important macroblocks (MBs) against packet loss. Based on the CAIR transcoder, we propose a profit tracing scheme to improve the efficacy of intra-fresh allocation of the transcoder by avoiding wasting intra-refresh resource in MBs of high error-propagation ranks in a prediction path. Experimental results show that incorporating the proposed profit tracing scheme into CAIR scheme can achieve significant PSNR performance improvement over the CAIR scheme itself.