In later versions the audio codec is Ogg Vorbis by default but personally I specify it just in case. Audio flagsĬoncentrating on the audio first, we should specify the audio codec which for WebM is Ogg Vorbis: -acodec libvorbis The flags can be divided into three sorts: audio, video and the transcoding itself. Assuming we have a video called myvideo.mp4, the simplest way to convert to WebM is with this little line: avconv -i myvideo.mp4 myvideo.webmĮasy, but the quality will likely be rubbish hence the use of a few flags. What is this doing? Let’s go through it bit by bit. In a nutshell, here’s the conversion command that works for me: avconv -i myvideo.mp4 -acodec libvorbis -aq 5 -ac 2 -qmax 25 -threads 2 myvideo.webm After lots of trial and error each time I convert a video to WebM, I finally got around to posting this so I don’t forget next time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |