Author: adeel

  • Splitting a video file in sections using ffmpeg at cli

    Consider a file named ‘x.mp4′. Let’s suppose the video file is wrapped in a MPEG-4 container coded with H.264 and AAC audio. To split the file and keep the file in the most commonly used MPEG-4 container, we could use the following command: The above command has a starting point at the fourth minute in…

  • What’s uasort function in php?

    by

    in

    Consider an array: Lets suppose we need to sort the 1st dimension based on the position key. What we can do is use the php’s uasort built-in method which will optimize the execution time of the script, we can do it like so: Replacing the values in the above uasort method: or if your above…

  • Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!