doc/examples/transcoding: check encoder before using it