Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FFmpeg video samples
#!/bin/bash
# Apple devices
ffmpeg -f lavfi -i testsrc -f alsa -i hw:0,0 -codec:video libx264 -b:v 2500k -strict experimental -codec:audio aac -b:a 192k -t 10 -s 1024x768 apple.mp4
# Events binding example
# <video src="apple.mp4" controls onplay="console.log('started')" onended="console.log('finished')"></video>
# Apple retina devices
ffmpeg -f lavfi -i testsrc -f alsa -i hw:0,0 -codec:video libx264 -b:v 2500k -strict experimental -codec:audio aac -b:a 192k -t 10 -s 2048X1536 apple-retina.mp4
@subaddiction

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.