Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Would it be possible to implement a solution to automatically lower audio playback volume during Youtube advertisements, on PC/Mac/Linux, or on IOS/Android?
I don't mean necessarily the Youtube video volume, but maybe the overall system volume itself.

Could this be done through browser plugins/extensions, or would it need to be done at some system level? How (in)feasible would this be?

My motivation is to stop having to temporarily lower volume during ads whenever i'm watching videos.

share|improve this question
    
what about removing ads completely: webapps.stackexchange.com/questions/18453/… –  Theta30 Aug 6 '13 at 1:36
1  
interesting, well that's does everything i want except allow me to contribute ad revenue to the content owner by watching the ad all the way through. thanks for pointing that out though! –  Peter Hahn Aug 6 '13 at 1:42

1 Answer 1

up vote 2 down vote accepted

1)
If the advert is in the video stream the answer is no. The software that does this would have to decode the video stream and recognize is as an advertisement. That is not possible.

Decoding the video stream and matching it against other known videos is possible (that's exactly what Youtube does to detect copyright infringement) but it's still a big job. Against unknown videos it can not be done.

2)
If the advert is pre-pended to the video and coming from a specific URL, the answer is yes. After all, if AdBlock or similar addons can detect ads, it can also do other things like lowering the volume. (thanks gronostaj)

So what you could try is install AdBlock, check if the adverts are blocked (i.e. case 2 applies), then write your own add-on ;-) Not sure if you are allowed to re-use the AdBlock database, that would be easiest. Or do a feature request to the AdBlock authors.

share|improve this answer
    
Actually, it doesn't have to match videos. If AdBlock or similar addons can detect ads, then all we need is to change volume instead of blocking ad. –  gronostaj Aug 6 '13 at 8:30
    
Of course - updating my answer –  Jan Doggen Aug 6 '13 at 8:53
    
thanks i should have thought about that :) –  Peter Hahn Aug 6 '13 at 22:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.