News for hackers. Stuff that matters.
Re:FFMPEG from Zero to Hero by lgeorget on Saturday March 06, 2021 @07:02PM (#26371747)
I have a $HOME/bin folder full of bash scripts invoking imagemagick or ffmpeg one liners.
Re:FFMPEG from Zero to Hero by lmohseni on Saturday March 06, 2021 @08:33PM (#26372289)
One handy idiom I like to use after typing out a long command that I might want to save is

    echo ‘!!’ > ~/bin/name-of-script
where !! is the previous command
Re:FFMPEG from Zero to Hero by Xangria on Saturday March 06, 2021 @08:19PM (#26372192)
care to share? :D
Re:FFMPEG from Zero to Hero by lgeorget on Sunday March 07, 2021 @05:14AM (#26374682)
This one for instance to grab my desktop quickly without starting another program when I want to make a quick demo for a colleague:

  #!/bin/bash

  size=${1:-"1920x1080"}
  offset=${2:-"0,0"}
  name=${3:-"video"}

  ffmpeg -video_size $size -framerate 25 -f x11grab -i :0.0+$offset -c:v libx264 -crf 0 -preset ultrafast "$name.mkv"
  ffmpeg -i "$name.mkv" -movflags faststart -pix_fmt yuv420p "$name.mp4"