Sample_multi_transcode requires an elementary video stream as input and you pass a WMV container obviously. That's the most likely reason of the error you see.
The output stream will be elementary video stream as well (pure H.264, not MP4). So you need to extract pure video out of your container stream. You may check out the Media Developers Guide document on how to handle elementary streams.