Traditionally the way is to add to the video, a sub-sonic (20 Hz) sinewave tone at the critical point and have an audio notch filter to filter that out, at the same time detecting the tone and tripping your indicator.
This enquiry appears to be another incidence of the "Arduino can do anything" meme. It requires some analog processing ICs. It has nothing whatsoever to do with Arduinox.
Have your Arduino start the video (send signal to the dedicated video player).
Keep track of how long the video plays, and whether the button press comes at the correct time.
This assumes you know the video beforehand, so you can simply tell the Arduino when the user is supposed to press that button and work with that. No need to have the Arduino watch/listen to the video.
How can I make the Arduino start the video? How can I send the signal?
One button have to send the signal to the Arduino to start the video.
-Then after 30s the video start, the Arduino have to turn the light for press the second button.
TheMemberFormerlyKnownAsAWOL:
We don't know, because you haven't told us what the source of the video is.
^ this.
Depending on the service you are using.. there could be a callback function() defined (or set) to be triggered at a specific time/event..
This could then in turn (somehow... not clear on your set-up) send a message to a database or server sside script that triggers the arduino to toggle the LED..
I was thinking of a solenoid attached to the Arduino, that then gets activated through a digital signal, and presses the play button on your video player.
But of course depending on the source of the video there may be less elegant solutions such as sending a command over the Internet as well.
I dont think he wants to 'play' the video from external (Arduino controlled) source/contact...
Edit: I see where that comes from now.. as a 'point of entry' (more or less)..
He wants the video, that is playing (in some browser I assume?) at some point to 'communicate' with the Arduino to turn on an LED.
IE: Some 'video' (he wont elaborate on) playing, at 2:26 seconds..wants to trigger an LED connected to an Arduino to run on)
I do see your point of if the Arduino 'mechanically' starts the video.. it can start and keep track of a timer...
it really depends on what the OP is really after here?
Example.. if the user is hosting this 'video' on Youtube.. they have an API that you can use to trigger certain things.. and use callbacks()..
Same approach... different means.
If the user wants to go down the road of making some sort of mechanical solution to 'start' the video (pressing a key on keyboard or whatever)..... needs extra hardware/code
If the user wants to use (potentially) code to trigger the same behavior.. he'll need extra hardware (ie: wi-fi or ethernet shield/esp..etc) and use the API callbacks to trigger start/stops and timers to do the work.
A simple START + timer is the easiest, but inelegant way if the video content is likely to change.
The hard way to do this ‘properly’ is fingerprinting the video stream, (or watermarking if you have control of the video content)...
Then the process is ‘watching’ the video, waiting for a recognisable scene to pass... but these are way beyond the capability of Arduino.
It may be easier to record ‘trigger cues’ on a spare audio track of the video content.