Skip to main content
  1. Notes/

FFmpeg

2-pass #

libx264 #

1Mbps general/default conversion #

$ ffmpeg -i <input> -c:v libx264 -b:v 1M -maxrate 1M -bufsize 2M -pass 1 -f null /dev/null
$ ffmpeg -i <input> -c:v libx264 -b:v 1M -maxrate 1M -bufsize 2M -pass 2 <output>

1-pass #

Dominic Reich
Author
Dominic Reich
late-30s, construction worker since 2016, electrician before, likes tech stuff and nature. Amateur radio operator since 2019. Uses this website as a digital notebook. Read more about me →

Related Posts

  • Winlink on Android with WoAD // 2025, January 19
    Since I moved from iOS to Android I had to look for another App to test a small Winlink setup. The thumbnail was created with Google AI (Imagen 3).
  • Install LibreTranslate on a VM // 2024, December 7
    Summarized how I finally got LibreTranslate installed on my Archlinux based local mastodon test-instance. I am not affiliated with LibreTranslate – this post reflects my own use case. The thumbnail is a trademark of LibreTranslate.
  • Increase the disksize of a VM (on Unraid) // 2024, December 5
    Another quick’n’dirty note on how I finally enhanced the diskspace of my local mastodon test-instance placed as a virtual machine on my Unraid server. The thumbnail was created with Google AI (Imagen 3).
  • Combine multiple PDF files // 2024, October 26
    A quick note on how I got multiple PDF files combined into one single one on a linux command line. The thumbnail was created with Google AI (Imagen 3).
  • A slim D-STAR gateway on a Raspberry Pi 2 // 2024, February 3
    I wrote down the installation of a forked DStarGateway with a slim dashboard based on Javascript on a Raspberry Pi 2 – using Archlinux.