A Framework for Semantic Video Transcoding