| | 58 | === Example recipe: live screen capture to webm === |
| | 59 | |
| | 60 | Here's a recipe used by one user for doing a live full-screen 1920x1080 screen capture to WebM format (VP8/vorbis). Note that you may need to tweak the -cpu-used or -b:v parameters depending on how fast your system is. |
| | 61 | |
| | 62 | {{{ |
| | 63 | SET "audio_device=<audio_device>" |
| | 64 | SET "video_device=<video_device>" |
| | 65 | SET "threads=<physical cores minus 1>" |
| | 66 | ffmpeg -f dshow -i audio="%audio_device%":video="%video_device%" -c:v libvpx -b:v 2M -deadline realtime -cpu-used -5 -threads %threads% -c:a libvorbis -y output.webm |
| | 67 | }}} |
| | 68 | |
| | 69 | It seems that the audio and video might not be perfectly in sync, but this should be a good starting point and may be "good enough" for some. |
| | 70 | |
| | 71 | References: |
| | 72 | * wiki:Encode/VP8 |
| | 73 | * http://stackoverflow.com/a/20673805 (the above is based on this SO) |
| | 74 | |