Dzidza maitiro ekushandura mavhidhiyo kubva kune iyo terminal neFFmpeg

 

ffmpeg

Vangani venyu vasingadaro vakashandisa zvirongwa zvakasiyana siyana kukwanisa kushandura mamwe emafaira ako evhidhiyo kuita imwe fomati kuti ienderane nedhiza kana kungowana imwe nzvimbo nekudzikisa huremu hwayo.

Kune yangu chikamu ini ndashandisa akasiyana mapurogiramu uye ndakawana akasiyana mhedzisiro, mune mazhinji acho isu tinogumira pane sarudzo dzavanotipa, kubva pakukwanisa chete kushandura kuita mamwe mafomati, chete kune imwechete kana vamwe vamwe vane sarudzo dzakawanda dzausingazive zvinoitwa neumwe neumwe wavo.

Pachiitiko ichi Ndinotora mukana uno kugovana newe chishandiso chakakura chine simba kwazvo chakapihwa maficha ese uye sarudzo dzatinopa uye zviri nyore kushandisa.

Ichi chishandiso chinonzi FFmpeg Sezvandambotaura, zviri nyore kushandisa uye yakanangana nevanhu vese vane ruzivo rwemberi uye vashandisi veavice.

FFmpeg inotibvumidza kunyora, kushandura uye kuyerera odhiyo uye vhidhiyo, Ichi chirongwa chemahara software, yakatanga kugadzirirwa nharaunda dzeGNU / Linux, asi kupihwa mukurumbira wayo mukuru inogona zvakare kuverengerwa pane mazhinji masisitimu anoshanda, kusanganisira Windows.

Tinogona zvakare kusimbisa kuti chirongwa ichi, vazhinji vevagadziri vacho vanobvawo kune iyo MPlayer chirongwa.

Chekupedzisira, ndinofanira kutaura izvozvo FFmpeg ndeye raira yekushandisa turu Naizvozvo, haina kushandisa chero graphical interface, kunyangwe paine WinFF inova iyo GUI yeiyi, pachangu ndinogona kutaura kuti zviri nani kudzidza kushandiswa kweFFmpeg, sezvo vazhinji vhidhiyo vashanduri vanoishandisa sehwaro uye akati wandei avo anotsigira tsika mirairo yeichi chishandiso.

Usati waenderera mberi nekutsanangura zvishoma nezve zvaunogona kuita, ini ndichagovana newe mu next link, uko iwe kwaunogona kuongorora odhiyo, vhidhiyo uye mifananidzo mafomati ayo anogona kushanda neichi chishandiso, pamwe nesarudzo uye macodec.

Maitiro ekuisa FFmpeg paLinux?

Iye zvino mazhinji ekuparadzira kweLinux ane chishandiso ichi chatoiswa nekutadza, kunyangwe paine mashoma anoisarudzira kumatimu emamwe maraibhurari asiri open source. Pasina imwezve ado ini ndinosiya mirairo yekuisirwa kwayo.

ZveDebian, Ubuntu uye zvigadzirwa:

sudo apt-get install ffmpeg

YeArchLinux, Manjaro uye zvigadzirwa:

sudo pacman -S ffmpeg

YeFedora, Red Hat, CentOS, yakavhurikaSUSE, uye zvigadzirwa:

sudo dnf install ffmpeg 

Mashandisiro eFFmpeg?

Nhanho yekutanga ndeye tsanangura kuti ndeupi mhando yemafomati yatichachinja vhidhiyo yedu, pamwe neiyo odhiyo fomati, kana tichida kuti vhidhiyo ive nechisarudzo chakati, kana tichida saizi chaiyo yeiyo inoguma vhidhiyo, odhiyo bitrate, vhidhiyo bitrate, fps, nezvimwe.

Iye zvino kutanga kushandisa chirongwa ichi, isu tinofanirwa kuvhura terminal, isu tichatanga nekuwana ruzivo kubva muvhidhiyo yatiri kushanda nayo, nekuti izvi tinoshandisa unotevera kuraira:

ffmpeg -i ~/Videos/video.mp4

Tinogona kuratidza nzira yeiyo vhidhiyo kana kungozvimisa isu mune chinongedzo pamusoro pefaira pane yedu vhidhiyo, mune yangu nyaya ichandiratidza chimwe chinhu chakadai.

ffmpeg vhidhiyo ruzivo

Neruzivo urwu tinogona kutora huwandu hwetsika yatinokwanisa kugadzira vhidhiyo yedu nyowani, kana iwe uchida kuwedzera resolution, fps, odhiyo uye nezvimwe, unogona kuzviita, asi mhedzisiro yacho ichave yakaipa.

Mune yangu nyaya, ndiri kufarira kushandura iyo vhidhiyo kuti ndikwanise kuishandisa pane yangu multimedia server uye ndinogona kuitamba yakananga paChromecast (sezvo isingatsigire transconditioning). Mune yako kesi, iwe unofanirwa kutarisa zvishoma nezve akakurudzirwa mafomati, pamwe nehunhu hweimwe mudziyo.

Iyo imwe nyaya kana iwe usina kufarira chimwe chinhu kunyanya uye ingoichinja mirairo inotevera.

Chinja kubva pane imwe fomati uchienda pane imwe uye rega ffpmeg ichengete hunhu hwakanaka:

ffmpeg -i videoaconvertir videoresultante

Pane chimwe chinhu chakadai, semuenzaniso, kubva mp4 kusvika avi kana flv kusvika mpeg kana mkv kusvika avi nezvimwe.

ffmpeg -i video.mp4 nuevovideo.avi
ffmpeg -i video.flv nuevovideo.mpeg
ffmpeg -i video.mkv nuevovideo.avi

Iye zvino Ini ndinokusiira iwe mamwe ma parameter uye nezvavanoita:

-qscale 0: Chengeta iyo yakafanana resolution

Kuchinja resolution yevhidhiyo, mune iyi nyaya kuva 1280 × 720

m-firita: v chiyero = 1280: 720 -c: kopi

-s 1280 × 720 -c: kopi

-spect 16: 9: Kana iwe uchida kushandura chimiro, mune iyi kesi 16: 9

-b: v 2600k: Bitrate yevhidhiyo iyi mune 2600

-b: pa128k: Bitrate yemodhiyo pano mune iyi kesi 128

-kupfuura 1: Mune mangani mapashure ekuti vhidhiyo yekutendeuka ichapedzisa (iyo yakakurudzirwa ndi2)

-c: aac: Codec yemavhidhiyo mune ino aac

-c: v libx264: Codec yevhidhiyo iyi h.264

-framerate 30: Vangani maFPS vhidhiyo ichave mune ino kesi 30

-kutanga 2: Iyi sarudzo kana uine processor ine maviri kana anopfuura macores, tinogona kuratidza kuti anopfuura 2 anoshandiswa pakutendeuka kwevhidhiyo uye nekudaro unomhanyisa maitiro.

Kune akawanda andinokurudzira kuti uverenge iyi imwe Wiki kwaanotsanangura zvakadzama mashandisirwo eimwe neimwe nyaya.

Zvino kwandiri, sekutaura kwandaita, ndiri kufarira Chromecast yangu, nekuti izvi ndinofanira kuzviisa seizvi:

ffmpeg -i video.mp4 -pass 2 -b:a 128k -c:a aac -c:v libx264 -qscale 0 -framerate 29 -threads 2 nuevovideo.mp4

Pasina imwezve ado ini ndinongogona kutaura kuti chishandiso chiri nyore, asi chine simba kwazvo kana munhu akanyatsoongorora nezvenyaya iyi nezve zvese zvingasarudzwa neFFmpeg.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa. Raida minda anozivikanwa ne *

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   Victor akadaro

    Dzidziso yakanaka

  2.   Edd akadaro

    Zvakanaka. Inonyanya kubatsira. Ndaiida.

  3.   Enrique salgado akadaro

    zvakanaka !!! Ndokutenda zvikuru

  4.   kumira akadaro

    Mudzidzisi akanaka kwazvo.

    Uye kana iwe uchida Windows:
    1.- Kurodha pasi pane github: https://github.com/BtbN/FFmpeg-Builds/releases
    unzip mune zip kana iwe uchida GPL kana LGPL nezvimwe.
    2
    3.- Dhinda Windows + Kumbomira, wobva waenda pa "Advanced system marongero", wobva waenda pa "Zvimwe zvinoshanduka", wozotanga "musiyano wemushandisi weXXX" tarisa "PATH" wobva wadzvanya pa "PATH" wobva wawedzera kumagumo se: " ; C: \ FFMPEG-XX \ bin; C: \ FFMPEG-XX \ lib ", wobva" OK "kana" ACCEPT "uyezve" system variables "wobva wadzvanya pa" PATH "wobva wawedzera kumagumo se:«; C : \ FFMPEG-XX \ bin; C: \ FFMPEG-XX \ lib », wobva wadzvanya pa" OK "kana" OK uye kana wapedza, tora pa OK wobva wagamuchira. Usatangise muchina, iwe unongovhara iyo console yeiyo CMD terminal uye koni yeiyo POWERSHELL terminal, inotangazve zvinyaradzo pachayo pasina kuda KUTENZESA iyo muchina.

    1.    kumira akadaro

      Ekupedzisira matanho ekupedzisira….

      wobva washandisa ma parameter anobuda mu linux akaonekwa pamusoro.

      Luck !!!

      Kana iwe uchida mune 1280 × 727 (720p) ini ndinosiya mirairo yeWindows XPD kana POWERSHELL:

      ffmpeg.exe -ic: \ my_folder \ video.mpg -b: a 128k -s 1280 × 720-tarisiro 16: 9 -c: aac -c: v libx264 -framerate 29 c: \ my_folder \ newvideo.mp4

      kana kusanzwisisika 1280 × 727 (senge Boeing 727!, wedzera iyo 7 pachinzvimbo che "0"), inozivikanwa se "727p" uye tinotaridzika seizvi:

      ffmpeg.exe -ic: \ my_folder \ video.mpg -b: a 128k -s 1280 × 727-tarisiro 16: 9 -c: aac -c: v libx264 -framerate 29 c: \ my_folder \ newvideo.mp4