Skip to content

Instantly share code, notes, and snippets.

@subaddiction
Last active August 29, 2015 14:23
Show Gist options
  • Save subaddiction/40d46d31cbe6965cfc21 to your computer and use it in GitHub Desktop.
Save subaddiction/40d46d31cbe6965cfc21 to your computer and use it in GitHub Desktop.
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
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment