Differences between revisions 4 and 6 (spanning 2 versions)
Revision 4 as of 2011-01-12 00:33:26
Size: 520
Editor: SamatJain
Comment:
Revision 6 as of 2012-06-12 05:34:05
Size: 906
Editor: SamatJain
Comment: Add threads
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

== ffmpeg ==

{{{
ffmpeg -i input.avi \
-vpre libvpx-720p \
-quality realtime \ # best, good, or realtime; can also use qmin/qmax
-threads 3 \
-acodec libvorbis -ab 128k -ar 44100 \
-f webm -y output.webm
}}}

See:

 * http://groups.google.com/a/webmproject.org/group/webm-discuss/browse_thread/thread/0c90767a55fb42b4
 * http://ffmpeg.org/ffmpeg.html#libvpx
Line 6: Line 22:
mencoder -ovc lavc -oac lavc -of lavf -lavfopts format=webm -lavcopts acodec=vorbis:vcodec=libvpx -ffourcc VP80 input.avi -o output.webm mencoder -ovc lavc -oac lavc -of lavf -lavfopts format=webm -lavcopts threads=4:acodec=vorbis:vcodec=libvpx -ffourcc VP80 input.avi -o output.webm

This page has a counterpart, Theora, for Ogg Theora video. Many of the techniques on Theora can be used to also encode WebM.

ffmpeg

ffmpeg -i input.avi \
-vpre libvpx-720p \
-quality realtime \ # best, good, or realtime; can also use qmin/qmax
-threads 3 \
-acodec libvorbis -ab 128k -ar 44100 \
-f webm -y output.webm

See:

MEncoder

mencoder -ovc lavc -oac lavc -of lavf -lavfopts format=webm -lavcopts threads=4:acodec=vorbis:vcodec=libvpx -ffourcc VP80 input.avi -o output.webm

Confirmed working with r31918. More information available with this mailing list thread.

SamatsWiki: WebM (last edited 2012-06-12 05:34:05 by SamatJain)