Introduction

FFmpeg Extension for Video Processing without any php extension Requirement For Windows.Using by this plugin you can do versatile operation such as you can convert video into other format,grab screen shot of specific second from video , convert video into single gif file, convert video in to audio , convert video into serialize images.

Developed By :

HARSH PATEL

Version :

1.0

Documentation

In this Folder you can find demo.php which contain some ffmpeg commands to convert video into different formate,Capture Image of specific seconds from video,Convert audio from video , etc.
You can here one "ffmpeg.exe" please do not delete it is require for execution.

2.input

This Folder contains sample avi video.

3.output

In this Folder you will get converted video as per path set in demo.php.

If you want to split a large video into multiple smaller clips without re-encoding, ffmpeg can help. This command will split the source video into 2 parts – one ending at 50s from the start and the other beginning at 50s and ending at the end of the input video.

Convert video from one format to another
===========================================

You can use the -vcodec parameter to specify the encoding format to be used for the output video. Encoding a video takes time but you can speed up the process by forcing a preset though it would degrade the quality of the output video.

If you have multiple audio or video files encoded with the same codecs, you can join them into a single file using FFmpeg. Create a input file with a list of all source files that you wish to concatenate and then run this command.

FFmpeg is an excellent tool for converting videos into animated GIFs and the quality isn’t bad either. Use the scale filter to specify the width of the GIF, the -t parameter specific the duration while -r specifies the frame rate (fps).

This command will extract the video frame at the 15s mark and saves it as a 800px wide JPEG image. You can also use the -s switch (like -s 400×300) to specify the exact dimensions of the image file though it will probably create a stretched image if the image size doesn’t follow the aspect ratio of the original video file.

You can change the speed of your video using the setpts (set presentation time stamp) filter of FFmpeg. This command will make the video 8x (1/8) faster or use setpts=4*PTS to make the video 4x slower.

=> ffmpeg -i input.mp4 -filter:v "setpts=0.125*PTS" output.mp4

Speed up or Slow down the audio
====================================

For changing the speed of audio, use the atempo audio filter. This command will double the speed of audio. You can use any value between 0.5 and 2.0 for audio.