Just show up early at LAX and hop on an earlier flight to SFO. Make sure the check-in counter folks know what you're doing, hopefully they can tag your luggage to make the earlier flight with you... it might not make it to FRA with the 50 min connection at SFO.