Jump to content

Linux'ta Bir Videoyu Ffmpeg'le Döndürmek


kadetti
 Share

Recommended Posts

Video oynatma sırasında saat yönünde veya saat yönünün tersine 90 derece döndürmeyi destekleyen SMPlayer gibi birkaç video oynatıcı vardır.

Videoyu döndürülmüş olarak dışa aktararak kalıcı hale getirmek istiyorsanız, yoğun bir video düzenleme aracı kullanmanın yanı sıra, örneğin Pitivi ve Openshot da iş görür.

ffmpeg le yapmak için :

Eğer sahip değilseniz, öncelikle FFmpeg'i kurun. FFmpeg, multimedya dosyalarını ve akışları işlemek için geniş bir kitaplık ve program paketidir.

Herhangi bir ses, video ve diğer multimedya ile ilgili uygulamalar yüklüyse, çok popülerdir ve büyük olasılıkla sisteminize zaten yüklenmiştir.

Emin olmak için terminali açın (Ctrl + Alt + T) ve şu komutu çalıştırın:

sudo apt install ffmpeg -y

Artık bir videoyu döndürmek için :

ffmpeg -i input-video.mp4 -vf "transpose = 1" output-video.mp4

Bu komuttan önce, önce cd komutu ile (örn. cd ~/Videos) Video klasörüne gidebilir veya dosya tarayıcısında klasöre gidip boş alana sağ tıklayıp “Terminalde Aç” seçeneğini seçebilirsiniz.

Komutta, " transpose=1" içindeki sayı şu şekilde de olabilir:

0 - saat yönünün tersine 90 derece döndürmek ve çevirmek anlamına gelir

1 - saat yönünde 90 derece döndürmek anlamına gelir

2 - saat yönünün tersine 90 derece döndürmek anlamına gelir

3 - saat yönünde 90 derece döndürmek ve çevirmek anlamına gelir

Benim durumumda komut şudur:

ffmpeg -i ~ / Videos / raya.mp4 -vf "transpose = 1" ~ / Videos / raya-rotated.mp4

Video boyutuna ve CPU'nuza bağlı olarak işlem birkaç dakika sürebilir.

2021-03-10_12-09.png.1af144b02d594591ba81b5290a59c55d.png

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...