Skip to content

Instantly share code, notes, and snippets.

@dasantonym
Last active February 28, 2018 11:01
Show Gist options
  • Save dasantonym/aaae54bd105f37c69bb17952ec5fd07b to your computer and use it in GitHub Desktop.
Save dasantonym/aaae54bd105f37c69bb17952ec5fd07b to your computer and use it in GitHub Desktop.
Record MP4 with Blackmagic devices tools & FFMPEG

Requirements

Use with Blackmagic devices tools.

Shell command

  • Input is 1080p 25fps (-m 7) with audio & video from HDMI (-A 3 -V 3)
  • Output is 720p 25fps at ca. 5mbit h264
bmdcapture -m 7 -A 2 -V 3 -c 2 -d 0 -v -F nut -C 0 -f pipe:1 | \
  ffmpeg -y -r 25 -probesize 10M -i - \
  -c:a libfdk_aac -ac 2 -b:a 96k -ar 44100 -c:v libx264 -pix_fmt yuv420p -profile:v main -level 32 -b:v 5000K \
  -r 25 -f mp4 -vf "scale=1280:-1" output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment