Tuesday, December 6, 2022

Video Editor

FFMPEG

1. Video का fomat change करने के लिए command  हैं 

ffmpeg -i "C:\ffmpeg\bin\mp4file.mp4" "C:\ffmpeg\bin\mp4filee.mkv"

2. ffmpeg -ss 00:00:10 -i "C:\ffmpeg\bin\mp4file.mp4" -c copy -t 00:00:12 "C:\ffmpeg\bin\mp4fileclip.mp4" 

Create a video clip. SS is the start point, so this is (HH:MM:SS) 56 minutes and 34 seconds into the video. The clip will be 22 seconds long thanks to -t and the -c is to tell FFMPEG to make a copy rather than overwrite.

3. Make a clip and with added text

ffmpeg -ss 00:00:15 -t 5 -i "C:\ffmpeg\bin\mp4file.mp4" -vf drawtext="fontfile=C\\:/Windows/Fonts/arial.ttf: fontsize=200: fontcolor=white: box=1: boxcolor=black@0.8: x=(w-text_w)/2: y=(h-text_h)/2: text='Ravi'" "C:\ffmpeg\bin\tempfff.mp4"

4. Adding subtitles to a video (Link)

Before running the any command on ffmpeg reach to the folder where your files are located e.g. your files are located in C:\ffmpeg\bin so first reach there and then run this commans

 ffmpeg -i mp4file.mp4 -vf subtitles=subtitle.srt mp4filevvSRTv.mp4