Resizing a window to a specific size, for screen recording?
You could try an AppleScript like this:

  set the_application to (path to frontmost application as Unicode text)

  tell application the_application
      activate
      set bounds of window 1 to {1, 1, 1281, 721}
  end tell