To learn how to create a full blown screen capturing project check this example. You can then adapt the example on this page to that project to make the video upload to YouTube when it stops capturing if you want.
In this example we're going to
- capture a short video
- upload it to YouTube
- push the video edit URL to your PC and set your PC clipboard to the final video URL
STEP 1 - CAPTURE 5 SECOND VIDEO
- Create a new task and add an AutoInput Screen Capture action
- Set the Capture Mode to Video
- Set the Duration to 5
- Go back to Tasker and add a Flash action with the text %aivideofile
STEP 2 - UPLOAD TO YOUTUBE
- Add an AutoWeb Web Service action
- Select the YouTube API
- Select the Upload Video API action
- Set the File to %aivideofile
- Set the Privacy, Title and Description to your liking
- Go back to Tasker and notice how the action returns a %videoid variable that corresponds to the uploaded video's YouTube ID.
STEP 3 - PUSH VIDEO TO PC
This will open the video edit screen on your PC and at the same time set the clipboard on the PC to the final video URL so that you can share it on any site you want.
- Add 2 Variable Set actions where you set %videoediturl to https://www.youtube.com/edit?o=U&video_id=%videoid and %videourl to https://www.youtube.com/watch?v=%videourl
- Add a Join Send Push action
- Set the Device to your PC
- Set the Url to %videoediturl and Clipboard to %videourl
STEP 4 - TEST
If you now run the Task you'll get a video posted directly to YouTube. I actually uploaded the video in this step using the Task from this tutorial.