encode video for web

Sunday, 19. October 2014

  • OGG/Theora
    avconv -i input.mov \
      -acodec libvorbis -ac 2 -ab 96k -ar 44100 \
      -b 345k -s 640x360 output.ogv

 

  • WebM/vp8
    avconf -i input.mov \
      -acodec libvorbis -ac 2 -ab 96k -ar 44100 \
      -b 345k -s 640x360 output.webm

 

Video are resized to 640×360 with a bitrate of 345k.