Too tough to diagnose. It could also be your pedal setup. I'm no expert, but if you are clipping in and setup incorrectly it will wreak havoc on your knees. As for one leg being shorter, I have that problem and until I made adjustments to my shoes, it was my hip that was killing me after long rides.
John