fmp4mux: Refactor and clean up code
Split many longer functions into multiple functions and simplify various parts. Overall this is functionally still the same as before.
Split many longer functions into multiple functions and simplify various parts. Overall this is functionally still the same as before.