Uyiguqula njani iaudiyo iye kwezinye iifom ukusuka kwisiphelo sendlela kunye neFFmpeg

Guqula ngeFFmpegAbasebenzisi abaninzi bakhetha ukusebenzisa usetyenziso olunonxibelelwano lomsebenzisi ukwenza imisebenzi yethu. Kodwa kwiLinux (kunye neMacOS) kukho into ebizwa ngokuba sisiphelo sendlela (ngaba iyavakala njengawe?), Esinokwenza kuyo yonke into ngaphandle kokufaka isoftware eyongezelelweyo, ukuba nje sikhumbula imiyalelo eyimfuneko. Kule nqaku siza kukubonisa Uguqula njani iaudiyo kwezinye iifomathi usebenzisa i-terminal kunye ne-FFmpeg, Into efakwe ngokungagqibekanga kuninzi losasazo lweLinux.

Into elungileyo malunga nokusebenzisa iFFmpeg ngqo kwi-terminal kukuba, ngokunganyanzelekanga ukuba uhambise i-GUI okanye ujongano lomsebenzisi, ukusebenza kunye nokuthembeka kuya kuba phezulu. Iya kukhawuleza kuba awuchithi gwenxa kwezixhobo "kwiifrills". Ukongeza, i-FFmpeg sisakhelo esinamandla kwaye esihambelanayo, esiqinisekisa ukuba sinokuguqula nayiphi na ifayile yeaudiyo nakweyiphi na ifomathi. Apha sichaza indlela yokwenza.

I-FFmpeg iyahambelana neefomathi ezaziwayo

Into yokuqala esiza kuyenza kukuqinisekisa ukuba sine-FFmpeg efakwe kwikhompyuter yethu. Singayenza ngeendlela ezimbini, enye yazo sisemthethweni kwaye enye iyindlela emfutshane. Indlela esemthethweni kukubhala, ngaphandle kwezicatshulwa, "ffmpeg -version" kwisiphelo sendlela, esiya kuthi sibonise ingxelo yenkqubo-sikhokelo esiyifakileyo kunye nezinto ezikhoyo onokukhetha kuzo. Indlela emfutshane ilula kakhulu: sichwetheza nje igama lesakhelo, Oko kukuthi, "Ffmpeg" ngaphandle kwezicatshulwa. Siza kubona into efana nale ilandelayo:

ffmpeg kwisiphelo sendlelaUkuba asiyiboni into enje apha ngasentla, sifaka iFFmpeg ngalo myalelo ulandelayo:

sudo apt install ffmpeg

Nje ukuba ifakwe kwaye ukuba ufuna ukuchukumiseka, ungachwetheza "ffmpeg -help" ukubona ukuba inokwenza ntoni. Kukho iindlela ezininzi, kodwa eli nqaku liza kugxila kwinto elula. Kwaye ngoku ewe, siqhubeka nokuguqula iaudiyo kwezinye iifomathi.

Guqula i-MP3 iye kwi-WAV ngeFFmpeg

Ukuguqula iifayile zomsindo kwezinye iifom kunye neFFmpeg kunokuba lula. Ukuba konke oku sifuna, umyalelo uya kuba njengoku kulandelayo:

ffmpeg -i archivodeentrada.mp3 archivodesalida.wav

Njengoko ubona, ekuphela kwento ekufuneka uyikhumbule yile yongeza "-i" ngaphambili yefayile yokufaka kunye nefayile yokuphuma (buyisela "ifayili yokufaka" kunye ne "outputfile" ngegama olikhethileyo). Akusekho nto. Ukuba sifuna ukwazi iifomathi kunye neekhowudi ezikhoyo, siya kubhala imiyalelo "ffmpeg -formats" okanye "ffmpeg -codecs", njalo ngaphandle kwezicatshulwa.

Masiyenze nzima

Ngoku siza kuyenza nzima. Esi sikhokelo siyasivumela Guqula ifayile enye ibe ziifomathi ezahlukeneyo ngaxeshanye. Inokuba yeyiphi le nto? Ewe, mhlawumbi sinezixhobo ezahlukeneyo ezinokubakho ezahlukeneyo kwaye enye ibhetele ngeMP3 kwaye enye ine-OGG. Nokuba siyintoni na isizathu, sinokuyenza kwaye ngenxa yoko kwanele ukongeza zonke iifom kumyalelo odlulileyo, onokujongeka ngaphezulu okanye ngaphantsi ngoluhlobo:

ffmpeg -i archivodeentrada.mp3 archivodesalida.wav archivodesalida.ogg archivodesalida.mp4

Ukuba sifuna ukubonisa i-codec ethile, siya kuyenza ngokudibanisa "c: a + codec" phambi kwefayile yemveliso, eya kuguqula i-MP4 iye kwi-OGG nge "libopus" codec inokujongeka ngoluhlobo:

ffmpeg -i archivodeentrada.mp4 c:a libopus archivodesalida.ogg

Kweyona inzima kakhulu, into esiza kuyenza kukuguqula ifayile ye-AIF yeaudio ibe yiMP3 ebonisa i-bitrate ethile, kule meko 320. Siza kuyenza ngalo myalelo ulandelayo:

ffmpeg -i archivodeentrada.aif -b:a 320000 archivodesalida.mp3

Usenokuzibuza: "320000?" Ewe. Kuya kufuneka sikhumbule ukuba i-bitrate ikwi-kbit / s, ke kufuneka songeze inani esilaziyo (umzekelo, 320) liphindaphindwe ngo-1000.

I-FFmpeg isinika okuninzi ngakumbi

Esi sikhokelo sinamandla sisinika oku nokunye okuninzi. Ngapha koko, into echaziweyo kweli nqaku sisiqwenga somkhenkce omkhulu onokubona ugcwele kuwo esi sixhobo. Olunye usuku Siza kuchaza indlela yokurekhoda isikrini ngeFFmpeg, into esinokuyenza ngaphandle komsindo okanye ngesandi, ukuba awufuni ukusebenzisa usetyenziso olufana neVLC okanye iSlassScreenRecorder.

Ngaba ukhona omnye umsebenzi / uguqulo oqhele ukwenza ngeFFmpeg?

Inqaku elidibeneyo:
I-Ocenaudio: umhleli weqonga lomsindo osimahla weqonga

Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-2, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   enox sitsho

    Inomdla!

    Ndingayiguqula njani iaudiyo ibe yifayile ye-3gp engasindi ngaphandle kokuphulukana nomgangatho?

  2.   Elier sitsho

    Enkosi ngokufundisa, kanye le nto bendifuna ukuguqula ukusuka kwisiphelo sendlela ngokuthe ngqo