Advertisement
clockworkpc

Simple FFmpeg desktop and audio

Feb 21st, 2013
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.92 KB | None | 0 0
  1. #!/bin/bash
  2. #Filename:screencast.sh
  3. #Released under a GPLv3 Licence by Clockwork PC
  4.  
  5.  
  6. #Webcam
  7. #gnome-terminal -x ffmpeg -f video4linux2 -r 30 -s 640x480 -i /dev/video0 -b 1000k ~/Videos/Screencasts/webcam_on_$(date +%F_%A_at_%H:%M:%S).mkv
  8.  
  9. #Desktop and Audio
  10. ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1680x1050 -i :0.0 -acodec libmp3lame -sameq -threads 0 ~/Videos/Screencasts/screencast_on_$(date +%F_%A_at_%H:%M:%S).mkv
  11.  
  12. #Webcam and Audio
  13. #gnome-terminal -x ffmpeg -f alsa -ac 2 -i pulse -f video4linux2 -r 30 -s 640x480 -i /dev/video0 -b 1000k ~/Videos/Screencasts/webcam_on_$(date +%F_%A_at_%H:%M:%S).mkv
  14.  
  15. #Desktop only
  16. #ffmpeg -f x11grab -r 30 -s 1680x1050 -i :0.0 -sameq -threads 0 ~/Videos/Screencasts/screencast_on_$(date +%F_%A_at_%H:%M:%S).mkv
  17.  
  18. xcowsay "Your video will be ready in a tick"
  19.  
  20. #nautilus ~/Videos/Screencasts ~/Videos/Tutorials/
  21. #openshot ~/Videos/Tutorials/tutorials_project.osp
  22.  
  23. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement