Fast video transcoding and graphics hardware acceleration