Inelastic x-ray scattering spectra excited at the 1s(-1)π* resonance of gas phase O2 have been recorded with an overall energy resolution that allows for well-resolved vibrational progressions. The nuclear wave packet dynamics in the intermediate state is reflected in vibrational excitations of the electronic ground state, and by fine-tuning the excitation energy the dissociation dynamics in the predissociative B'(3)Πg final state is controlled.