A couple should fulfil the following conditions to be able to file taxes under the Ehegattensplitting category.
1) You should have a legal and valid marriage certificate in Germany
2) You should have an unlimited tax liability in Germany
3) You should be living permanently in the same household