GO:0003997:   acyl-CoA oxidase activity
Catalysis of the reaction: acyl-CoA + O2 = trans-2,3-dehydroacyl-CoA + hydrogen peroxide.