Initial transcoding support

Also fix resume when playing from HTTP