FFMPEG Encoding Instructions

706 views
Skip to first unread message

tazz_ben

unread,
May 21, 2010, 10:52:11 AM5/21/10
to WebM Discussion
I've been looking over the WebM Project website and while there is
instructions about installing the proper build of FFMPEG, there isn't
any instruction to encode videos. I've installed FFMPEG as instructed
and I wanted to do some experiments on some existing videos but I
don't know a thing about the internal workings of WebM so I have no
idea what sort of settings will look good, bad, stream, whatever. Is
there a page I'm missing?

John Koleszar

unread,
May 21, 2010, 10:57:43 AM5/21/10
to tazz_ben, WebM Discussion
Hi Ben,

There's a little bit of information here[1] on ivfenc parameters, but
it doesn't have a mapping to ffmpeg. We're actively working on
providing more encoding advice, look for more soon. The ffmpeg
parameters will probably remain in flux for a bit as we work to get it
integrated upstream.

[1]: http://www.webmproject.org/tools/encoder-parameters/

Ben Smith

unread,
May 21, 2010, 11:03:27 AM5/21/10
to John Koleszar, WebM Discussion
Hi John-

Thanks for your reply. I assumed those parameters where out of
date/something else because it appears to me that they are not
contained in a .webm container as described here:

http://www.webmproject.org/about/faq/

Are they actually accurate?

--
Ben Smith
Founder / CSA
WBP SYSTEMS
http://www.wbpsystems.com

John Koleszar

unread,
May 21, 2010, 11:09:57 AM5/21/10
to Ben Smith, WebM Discussion
On Fri, May 21, 2010 at 11:03 AM, Ben Smith <b...@wbpsystems.com> wrote:
> Hi John-
>
> Thanks for your reply.  I assumed those parameters where out of
> date/something else because it appears to me that they are not
> contained in a .webm container as described here:
>
> http://www.webmproject.org/about/faq/
>
> Are they actually accurate?
>

ivfenc produces ivf files, which are useful for development but not
for general purpose use. The parameters should be accurate, but you'll
have to map them to ffmpeg parameters to produce a webm file.

John

Fabricio Zuardi

unread,
May 21, 2010, 2:38:40 PM5/21/10
to tazz_ben, WebM Discussion
Here is an example of a way to do 2 pass transcoding for a given video to webm/vp8 with ffmpeg using the 360p preset, 1700k bitrate, and vorbis audio (128k, 44100)

ffmpeg -i "$SOURCE" -vpre libvpx_vp8-360p -b 1700k -an -pass 1 -f webm -threads 0 -benchm /dev/null&&ffmpeg -i "$SOURCE" -vpre libvpx_vp8-360p -b 1700k -pass 2 -acodec libvorbis -ab 128k -ar 44100 -threads 0 -benchmark -y "$TARGET"

I have no idea if the command above can be improved, and I would love to hear some critics about it and what other people are using as well. You can look at other presets on the ffpresets-libvpx.diff file

[]s
Fabricio C Zuardi


Fabricio Zuardi

unread,
May 21, 2010, 2:40:20 PM5/21/10
to Fabricio Zuardi, tazz_ben, WebM Discussion
correcting:

ffmpeg -i "$SOURCE" -vpre libvpx_vp8-360p -b 1700k -an -pass 1 -f webm -threads 0 /dev/null&&ffmpeg -i "$SOURCE" -vpre libvpx_vp8-360p -b 1700k -pass 2 -acodec libvorbis -ab 128k -ar 44100 -threads 0 "$TARGET"

Amar

unread,
Jun 29, 2010, 10:07:25 AM6/29/10
to WebM Discussion
Dear Ones,
Hello,
I tried exicuting following :

ffmpeg -i "$SOURCE" -vpre libvpx_vp8-360p -b 1700k -an -pass 1 -f webm
-threads 0 -benchm /dev/null&&ffmpeg -i "$SOURCE" -vpre
libvpx_vp8-360p -b 1700k -pass 2 -acodec libvorbis -ab 128k -ar 44100 -
threads 0 -benchmark -y "$TARGET"

with "$SOURCE" and "$TARGET" , but I got following error,

File for preset 'libvpx_vp8-360p' not found

How can I fix this problem.
I have compiled libvpx source code and got some binaries like
ivfdec,ivfenc,simple_encoder,vp8_scalable_patterns etc.
But how to use it.

regards.

Amar

unread,
Jun 29, 2010, 10:07:38 AM6/29/10
to WebM Discussion
Dear Ones,
Hello,
I tried exicuting following :

ffmpeg -i "$SOURCE" -vpre libvpx_vp8-360p -b 1700k -an -pass 1 -f webm
-threads 0 -benchm /dev/null&&ffmpeg -i "$SOURCE" -vpre
libvpx_vp8-360p -b 1700k -pass 2 -acodec libvorbis -ab 128k -ar 44100 -
threads 0 -benchmark -y "$TARGET"

with "$SOURCE" and "$TARGET" , but I got following error,

File for preset 'libvpx_vp8-360p' not found

How can I fix this problem.
I have compiled libvpx source code and got some binaries like
ivfdec,ivfenc,simple_encoder,vp8_scalable_patterns etc.
But how to use it.

regards.

On May 21, 11:38 pm, Fabricio Zuardi <fabri...@fabricio.org> wrote:

Mike Melanson

unread,
Jun 29, 2010, 10:24:26 AM6/29/10
to webm-d...@webmproject.org
Amar wrote:
> File for preset 'libvpx_vp8-360p' not found

Did you install the preset spec files in the right place?

--
-Mike Melanson

James Zern

unread,
Jun 29, 2010, 10:38:37 AM6/29/10
to webm-d...@webmproject.org
On Tue, Jun 29, 2010 at 10:07, Amar <nanda...@gmail.com> wrote:
> Dear Ones,
> Hello,
> I tried exicuting following :
>
> ffmpeg -i "$SOURCE" -vpre libvpx_vp8-360p -b 1700k -an -pass 1 -f webm
> -threads 0 -benchm /dev/null&&ffmpeg -i "$SOURCE" -vpre
> libvpx_vp8-360p -b 1700k -pass 2 -acodec libvorbis -ab 128k -ar 44100 -
> threads 0 -benchmark -y "$TARGET"
>
> with "$SOURCE" and "$TARGET" , but I got following error,
>
> File for preset 'libvpx_vp8-360p' not found
>
A few things here. First the file names changed in later patchsets to
match the codec name, so libvpx_vp8-360p.ffpreset is now
libvpx-360p.ffpreset. If the file isn't located in one of the
directories described by [1], then you could use -fpre to provide an
absolute path to the file.

[1]: http://ffmpeg.org/ffmpeg-doc.html#SEC17

nandan amar

unread,
Jun 30, 2010, 3:40:11 AM6/30/10
to webm-d...@webmproject.org
Dear ones,
Thanks a lot.
I was not knowing about ffpreset files, now i knew.

I searched for libvpx-360p.ffpreset file but the package of ffmpeg I am having only contains
 libx264-default.ffpreset files.

It seems I have downloaded wrong ffmpeg package from http://ffmpeg.org/releases/ffmpeg-0.6.tar.gz

please tell me where I can get the correct package for development of VP8.

regards.


--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To post to this group, send email to webm-d...@webmproject.org.
To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.




--
Amar Kumar Nandan
 
http://aknandan.co.nr

James Zern

unread,
Jun 30, 2010, 12:44:45 PM6/30/10
to webm-d...@webmproject.org
On Wed, Jun 30, 2010 at 03:40, nandan amar <nanda...@gmail.com> wrote:
> Dear ones,
> Thanks a lot.
> I was not knowing about ffpreset files, now i knew.
>
> I searched for libvpx-360p.ffpreset file but the package of ffmpeg I am
> having only contains
>  libx264-default.ffpreset files.
>
> It seems I have downloaded wrong ffmpeg package from
> http://ffmpeg.org/releases/ffmpeg-0.6.tar.gz
>
> please tell me where I can get the correct package for development of VP8.
>
Patches that have not been accepted to the trunk or are otherwise not
applicable are available on the webm site [1]. Currently there are two
archives, one targeting 0.6 and the other a bit closer to the trunk.

[1]: http://code.google.com/p/webm/downloads/list

Amar

unread,
Jun 30, 2010, 3:35:07 PM6/30/10
to WebM Discussion
Thanks to All People.
I got the solution
I am really happy that people are helping each other.
thanks.


On Jun 30, 9:44 pm, James Zern <jz...@google.com> wrote:
> On Wed, Jun 30, 2010 at 03:40, nandan amar <nandan.a...@gmail.com> wrote:
> > Dear ones,
> > Thanks a lot.
> > I was not knowing about ffpreset files, now i knew.
>
> > I searched forlibvpx-360p.ffpreset file but the package of ffmpeg I am

declan

unread,
Jul 21, 2010, 6:37:29 AM7/21/10
to WebM Discussion
Hi Amar

Could you post the details of the preset files you have located. All I
can see is a diff between previous preset file at the following
location http://code.google.com/p/webm/downloads/list

Declan

James Zern

unread,
Jul 21, 2010, 12:00:56 PM7/21/10
to webm-d...@webmproject.org
The preset files will be created in ffpresets when the patch is
applied to the source tree.

nandan amar

unread,
Jul 21, 2010, 12:31:52 PM7/21/10
to webm-d...@webmproject.org
Dear Declan,
Now I believe ffmpeg supports libvpx without any patch.
I have installed libvpx and ffmpeg from git and svn respt.
And ffmpeg is having support for linvpx(VP8).

Sorry I have deleted older stuff.
So I can't provide them.

--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To post to this group, send email to webm-d...@webmproject.org.
To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.




--
Amar Kumar Nandan
MS by Research
IIIT-Bangalore
Karnataka ,India , 560100
http://aknandan.co.nr
Reply all
Reply to author
Forward
0 new messages