Using terminal on mac


I normally use terminal on my mac to render still images. I use the command

blender -b /Users/gavincampbell/Views/1/render1.blend -x 1 -a

However, if i change the settings to render an animation using h264 with default settings at 1080, the command above wont render the animation. Any ideas what to do ?