As a discipline that combines artistry and education, the teacher competencies of music education majors have a significant impact on students’ educational opportunities. This paper examines the impact of teacher competence on students’ educational opportunities in music education majors and investigates the mediating role of learning inputs in this context. The study used Structural Equation Modeling (SEM) to analyze the data, based on a questionnaire survey of teachers and students majoring in music education in a university, and 411 valid questionnaires were collected. It was found that teacher competence had a significant positive effect on students’ educational opportunities (path coefficient = 0.163, p<0.001) and that teacher competence also had a more significant effect on students' learning input (path coefficient = 0.184, p<0.01). Further analysis showed that learning input played a partial mediating role between teacher competence and educational opportunities and the mediating effect was 58.8%. In particular, all dimensions of learning inputs (behavioral inputs, cognitive inputs, affective inputs, and social interaction inputs) significantly affected educational opportunities, and the mediating effect of affective inputs was the least. The results suggest that improving teacher competence and student learning input can effectively improve the educational opportunities of music education majors, thus providing some practical basis for the improvement of educational quality.