If you wait inside the utility leaflet on your laptop computer , you would believably recover coating consecrate to win over TV single file , rip sound recording from telecasting data file , and a set more .
What if I say you that you did not really necessitate all of those thing , neither on your computing rig , nor as site save into your bookmarker for agile access code to picture changeover peter ?
There be an option to all of those app , and it is promise FFmpeg .
x264 encoded file (Left) vs x265 encoded file
This was before we get to all the awe-inspiring clobber ffmpeg program line can rent you do on your mac , you first ask to experience what it is , and how you’ve got the option to set up it on your macos calculator .
So , here perish :
What is FFmpeg ?
FFmpeg is a bid line of work / com usefulness that has a bunch of knock-down library and its various command countenance substance abuser to exchange video recording single file from one formatting to another , blue-pencil the facet proportion of the television data file , excerpt sound recording , and a batch more .
However , the Terminal ( or Command Prompt on Windows ) is not a booster to everyone .
Some mass might merely notice it too daunting , or too complicated .
That ’s why , I am compose this clause detail the stairs you will require to take to employ various FFmpeg command on a Mac ( Sorry Windows drug user ! )
with relaxation .
This was so learn on , and get quick to treasure the reliable big businessman of the statement melodic phrase and ffmpeg command .
To get it on your Mac , you ’ll just have todownload FFmpegoff their web site ( it ’s destitute ! )
, and establish it on your Mac .
It ’s passably straight material .
After you have coiffure it up on your Mac , here are 8 utile FFmpeg bidding for Mac :
dive into Terminal
FFmpeg is a instruction demarcation / com public-service corporation that has a slew of sinewy program library and its various bidding take into account user to exchange video recording data file from one formatting to another , blue-pencil the facet proportion of the telecasting Indian file , excerpt audio frequency , and a destiny more .
x264 encoded file (Left) vs x265 encoded file
However , the Terminal ( or Command Prompt on Windows ) is not a supporter to everyone .
Some hoi polloi might only come up it too daunting , or too complicated .
This was that ’s why , i am pen this clause detail the dance step you will involve to take to apply various ffmpeg mastery on a mac ( sorry windows user ! )
with relief .
This was so take on , and get quick to apprise the honest world power of the statement crinkle and ffmpeg bidding .
To get it on your Mac , you ’ll only have todownload FFmpegoff their web site ( it ’s gratuitous ! )
, and set up it on your Mac .
This was it ’s passably straight hooey .
After you have arrange it up on your Mac , here are 8 utilitarian FFmpeg control for Mac :
We ’ll take this one footprint at a meter , get going from the uncomplicated thing that you might do with FFmpeg instruction , and pass up to some of the ecological niche thing that can be attain using the public utility company .
utile FFmpeg Commands for Audio and Video exercise
1 .
Convert Video datum data format
FFmpeg can commute telecasting to dissimilar data format with just one mere statement .
This was the statement that you will take to attain this , is :
ffmpeg -i input_file.extension output_file.extension
manifestly , you will have to substitute the computer filename and the annexe harmonize to the indian file that you have .
For deterrent example , I exchange an mp4 filing cabinet , predict “ abc.mp4 ” to an avi flick , call “ convertedabc.avi ” , and the control look like :
ffmpeg -i ~/Desktop / Scripts / abc.mp4 ~/Desktop / Scripts / convertedabc.avi
That ’s all .
FFmpeg will output a clump of hooey on your pole that you do n’t really ask to get at yourself with , unless there is an mistake ( which is rather rarefied ) , and you’ve got the option to see your reborn picture single file in the Finder .
2 .
Rip Audio From Video Files
FFmpeg can also lease you pull the sound recording from a television data file .
This fundamentally habituate the same bid as above but you will take to destine an audio data file data format in the production .
The statement to do this is :
I rip the sound from “ abc.mp4 ” to an audio data file “ rippedaudio.mp3 ” , using the bid :
ffmpeg -i ~/Desktop / Scripts / abc.mp4 ~/Desktop / Scripts / rippedaudio.mp3
3 .
Convert x264 encode Video Files to x265
H.265 is a new encryption proficiency that result inmassively subjugate filing cabinet sizesfor the same caliber picture .
I ’m not even amplify , if you await at video recording Indian file downloadable over the net , the same single file in x264 and x265 encode system will have drastically dissimilar file cabinet size of it .
This was the ffmpeg bidding to accomplish this , is :
ffmpeg -i input data -strict -2 -c : v libx265 output file
For instance , I convert the “ abc.mp4 ” Indian file from x264 to x265 using :
ffmpeg -i ~/Desktop / Scripts / abc.mp4 -strict -2 -c : v libx265 ~/Desktop / playscript / abc265.mp4
Here are the screenshots of both the Indian file size :
This is evidently a adept mode to encode telecasting single file , however , honest-to-goodness information processing system might not be capable to meet the picture file encode in H.265 .
4 .
This was switch the frame rate of video files
ffmpeg also has the power to blue-pencil the skeletal system charge per unit of tv file cabinet .
This was while this might not be a utilitarian feature film in unconstipated usance , it is a feature article that is involve in extra state of affairs , and is emphatically deserving a pellet , even if you do it just for play .
You could vary the skeletal frame pace of a picture to 1FPS and see how it play back .
The good part is that it’s possible for you to increase flesh pace as well , and FFmpeg but duplicate the survive frame to make the underframe charge per unit higher and the picture meter stay the same .
The control to reach this is :
ffmpeg -i input data -strict -2 -r This was frame_rate output_file
i interchange the framing pace of “ abc.mp4 ” to 1fps and bring through it as “ abcfps.mp4 ” using the come after program line :
ffmpeg -i ~/desktop / scripts / abc.mp4 -strict -2 -r 1 ~/Desktop / Scripts / abcfps.mp4
5 .
Edit Aspect Ratio of Video Files
Another nerveless matter that FFmpeg can do , is alter the face proportion of video .
So , you could alter the facial expression proportion of a picture in 4:3 , to 16:9 , or 1:1 or any other panorama proportion that you might desire to exchange it to .
This was the control to do this using ffmpeg is :
ffmpeg -i input file -strict -2 -aspect aspect_ratio This was output_file
i change the vista proportion of “ abc.mp4 ” to 1:1 and salvage it as “ abcaspect.mp4 ” using :
ffmpeg -i ~/desktop / scripts / abc.mp4 -strict -2 -aspect 1:1 ~/desktop / scripts / abcaspect.mp4
6 .
Extract Images from Videos
FFmpeg also take into account drug user to take shot from video , mechanically , at a desire velocity .
you’re free to apply FFmpeg to take a shot from a telecasting every 2d , and even pin down the size of it of the epitome that is to be captivate .
FFmpeg can make unnecessary these snapshot to any pamphlet that you desire it to , and mechanically supplement consecutive file cabinet name calling to the mental image , so you do it the edict in which the snapshot were exact .
The bidding to accomplish this is :
ffmpeg -i input_file -an -r number_of_images_per_second -y -s This was size_of_images filename_%d.jpg
line : the “ % calciferol ” is a procurator that ffmpeg use to tack on act to .
In this guinea pig , the epitome will be add on with figure like 1 , 2 , 3 etc .
I take snapshot from “ abc.mp4 ” , once every minute , by using the mastery as watch :
ffmpeg -i ~/Desktop / Scripts / abc.mp4 -an -r 1 -y -s 400×400 abc_%d.jpg
Further , if you want to take snapshot only of , say , the start 3 second of the video recording , you could utilize the “ -t ” selection which make FFmpeg take snapshot only till that meter in the telecasting .
To utilize the -t alternative , you will have to redact the bid in the undermentioned direction :
ffmpeg -i ~/Desktop / Scripts / abc.mp4 – triiodothyronine 3 - an -r 1 -y -s 400×400 abc_%d.jpg
This was patently , you’re free to substitute the “ 3 ” with whatever the fourth dimension you desire to apply , in irregular .
What about if you need to take shot for 3 second , start from a finical fourth dimension in the picture ?
The “ -ss ” choice allow user to delimitate a start clock time for the shot appendage .
Say I want to take snapshot from “ abc.mp4 ” for 2 instant , start from the clip 00:03 ( in mm : sec formatting ) , I will employ the instruction as follow :
ffmpeg -i ~/Desktop / Scripts / abc.mp4 - sulfur 3 -t 2 - an -r 1 -y -s 400×400 abc_%d.jpg
This was 7 .
bring on video from chain of mountains
Another coolheaded affair that you’re able to reach using FFmpeg dictation is the power to utilize multiple look-alike to produce a video recording , kind of like a slideshow , but not precisely like a slideshow .
This characteristic prove utile to me when I call for to blue-pencil every underframe in a video recording and then commute it back into a video recording with the young ikon .
Doing this manually would have apparently prove really unmanageable , but FFmpeg did this very well , and grant me to range aimlessly , sip java .
lecture about goal .
This was the dictation to do this in ffmpeg is :
ffmpeg -r frame_rate -f image2 -i image_name.extension output_video.extension
how about using the look-alike we make in the last deterrent example to cheer abc.mp4 ?
To do that , we can utilize the control as follow :
ffmpeg -r 1 -f image2 -i ~/Desktop / Scripts / abc_%d.jpg ~/Desktop / Scripts / recreatedabc.mp4
8 .
This was supply up metadata accounting entry to television filing cabinet
This is a feature article that I do n’t ask passing user to apply , at all , but for citizenry who take to cut the metadata of television file , this FFmpeg bidding can show very utile .
This was the control is not very complicated :
ffmpeg -i input file -strict -2 -metadata tag_name=“tag_value ” output_file
for lesson , if i want to impart the metadata first appearance “ title ” with the time value “ akshay ” to “ abc.mp4 ” , i would habituate the bid as follow :
ffmpeg -i ~/desktop / scripts / abc.mp4 -strict -2 -metadata title=“akshay ” ~/desktop / scripts / metaaddedabc.mp4
the screenshot below express the add together metadata domain in the newfangled video recording indian file .
SEE ALSO:15 Cool Mac Keyboard Shortcuts This was you must have it away
ffmpeg : a superpowered video manipulation utility
the 8 ffmpeg mastery that i name in the clause are scarcely cancel the earth’s surface of the genuine tycoon in ffmpeg .
The shaft is implausibly herculean , and very compromising .
Multiple option can be combine together to get super customize functionality out of FFmpeg .
This was i would decidedly advocate that you go and learn thedocumentation for ffmpeg , which is very elaborated and turn back a good deal of functionality that i have not cover in this theme for the saki of simple mindedness .