There is a task, a task to which the answer is I don't wanna know. But I want to find out ways and methods of solutions, and all sorts of manuals PWHT.
What do we need:
There is a folder with the movie. It is necessary to log in to read what it is (obviously there is only video), and write the readings to a file.
Go to the folder, to do listing, write a list to a file (so that the name of the movie was with extension and relative path "~/home/movie/" ). Go to the file and call the file from the list for processing ffmpeg'ohms for veterania the length of the video.
PS: why not use ffmpeg -i ./movie.flv | grep lenght? Because the interest is to make a mini wrapper ffmpeg'and
The answer is I don't want to know I want to come to him. However, I want to naputstvie or some examples. Let's enter the folder, the parsing folder, the entry in the listing file.