score:-2
The flight from Frankfurt to Vienna is within the Schengen Zone and is considered a domestic flight. You'll need to pass through Customs and Immigration at Frankfurt and reclaim your baggage before checking in and boarding your onward flight.
Since you're an Iranian citizen entering the Schengen area you will need a Schengen 'C' visa which you should apply for at the nearest German consulate to you. Source