This is a famous scene of Modern Times, a 1936 Charles Chaplin comedy film. The character Chaplin plays, a tramp, works on an assembly line and has problems to follow the rhythm of the machines. On this film Chaplin wanted to criticize the dehumanizing effects of machines in the Industrial Age and he also reflected the hard conditions many unemployed people had to face during the Great Depression era.
I strongly recommend you the whole film. This was the first time the audience could listen Charles Chaplin´s voice.
More information about the film: