Creating a VP8 file

1,293 views
Skip to first unread message

kanav gandhi

unread,
Sep 18, 2010, 8:18:28 PM9/18/10
to webm-d...@webmproject.org
Hi Guys,

Could you'll please tell me how I can create a VP8 file, and I mean a .VP8 file not a .webm file.

I downloaded the source code for libvpx, but the tools in it give me a format called .ivf.
I had some trouble getting ffmpeg to encode videos.

So what tool do I use to encode a video into .VP8, or can I get an existing file from somewhere?

Any help will be much appreciated.

Thanks and Regards,
Kanav Gandhi

Mike Melanson

unread,
Sep 18, 2010, 8:59:57 PM9/18/10
to webm-d...@webmproject.org
On 09/18/2010 05:18 PM, kanav gandhi wrote:
> Hi Guys,
>
> Could you'll please tell me how I can create a VP8 file, and I mean a
> .VP8 file not a .webm file.

Try this:

http://multimedia.cx/eggs/libvpx-0-9-1-and-ffmpeg-0-6/

Let me know if the instructions still work.

--
-Mike Melanson

nandan amar

unread,
Sep 19, 2010, 2:13:16 AM9/19/10
to webm-d...@webmproject.org
I suppose you should visit
http://www.webmproject.org/tools/encoder-parameters/

here u can get all encoding related information .

--
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

kanav gandhi

unread,
Sep 19, 2010, 4:01:02 AM9/19/10
to webm-d...@webmproject.org
Thanks for the response.

Amar,
I think these parameters are for the libvpx tools, which give me .ivf. Also, currently I don't care about the quality of the video.

Mike,
I tried out that link. I got the correct results on verifying it as well:

./ffmpeg -formats 2> /dev/null | grep WebM
  E webm            WebM file format
./ffmpeg -codecs 2> /dev/null | grep libvpx
 DEV    libvpx          libvpx VP8

However the encoding doesn't work. Here are some of the results I got:

avi to vp8
---------------
ffmpeg -i mm.avi mmvp8.vp8
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Sep 18 2010 16:16:29 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration:
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
Input #0, avi, from 'mm.avi':
  Metadata:
    ISFT            : Lavf52.13.0
  Duration: 00:00:43.10, start: 0.000000, bitrate: 2536 kb/s
    Stream #0.0: Video: mjpeg, yuvj420p, 352x240 [PAR 1:1 DAR 22:15], 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
Unable to find a suitable output format for 'mmvp8.vp8'

qcif to vp8
----------------
ffmpeg -i akiyo_qcif.7z vp8test.vp8
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Sep 18 2010 16:16:29 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration:
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
akiyo_qcif.7z: Invalid data found when processing input

avi to vp8
---------------
ffmpeg -i sample_1238959806.avi vp8test.vp8
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Sep 18 2010 16:16:29 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration:
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
Input #0, avi, from 'sample_1238959806.avi':
  Duration: 00:02:00.52, start: 0.000000, bitrate: 1283 kb/s
    Stream #0.0: Video: msmpeg4, yuv420p, 384x288, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 320 kb/s
Unable to find a suitable output format for 'vp8test.vp8'


avi to webm
------------------

ffmpeg -i sample_1238959806.avi vp8test.webm
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Sep 18 2010 16:16:29 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration:
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
Input #0, avi, from 'sample_1238959806.avi':
  Duration: 00:02:00.52, start: 0.000000, bitrate: 1283 kb/s
    Stream #0.0: Video: msmpeg4, yuv420p, 384x288, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 320 kb/s
Output #0, webm, to 'vp8test.webm':
    Stream #0.0: Video: 0x0000, yuv420p, 384x288, q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: 0x0000, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Encoder (codec id 146) not found for output stream #0.0


Do you have an idea as to what could be causing this?

Thanks and Regards,
Kanav

nandan amar

unread,
Sep 19, 2010, 5:07:49 AM9/19/10
to webm-d...@webmproject.org
I beleve VP8 is only a codec and not file_extension/container.
so u can not get something like file.vp8.
and so u r getting error like "Unable to find a suitable output format for 'vp8test.vp8'"

and when u say "VP8 file" what dose it mean..?
only video.........then also u will need a container that will hold video data.
Vp8 is a codec like h264/mpeg2/mpeg4 .
have u ever seen something like file.mpeg2 or file.mpe4.
u might have seen file.mpeg because mpeg is a container format that contains video encoded as mpeg2/4 and audio as mp2/3.

or I am not getting ur question at all.

Mike Melanson

unread,
Sep 19, 2010, 11:25:56 AM9/19/10
to webm-d...@webmproject.org
On 09/19/2010 01:01 AM, kanav gandhi wrote:
> ffmpeg -i mm.avi mmvp8.vp8
[...]

> Unable to find a suitable output format for 'mmvp8.vp8'

.vp8 is not a recognized extension for WebM files. .webm is:

ffmpeg -i mm.avi mmvp8.webm

> ffmpeg -i akiyo_qcif.7z vp8test.vp8
[...]


> akiyo_qcif.7z: Invalid data found when processing input

.7z is a conventially, losslessly compressed format. Unpack it with
another tool before processing with FFmpeg. The archive probably
contains a series of raw frames.

> ffmpeg -i sample_1238959806.avi vp8test.vp8

Same problem described already.

--
-Mike Melanson

kanav gandhi

unread,
Sep 19, 2010, 1:27:44 PM9/19/10
to webm-d...@webmproject.org
The wiki page for VP8 mentions on top that its filename extension is .vp8. So I am a bit confused about the relation between a codec and a container.

Here's what I finally want to do: Stream a VP8 encoded video over RTP. I am not concerned about audio right now.
So if I parse a webm file, get all the VP8 frames and send them over RTP to my client, will the client be able to play the video?
Or in other words, what all information do I require from my webm file if I want to play just the video?

Thanks and Regards,
Kanav

Mike Melanson

unread,
Sep 19, 2010, 1:31:57 PM9/19/10
to webm-d...@webmproject.org
On 09/19/2010 10:27 AM, kanav gandhi wrote:
> The wiki page for VP8 mentions on top that its filename extension is
> .vp8. So I am a bit confused about the relation between a codec and a
> container.

This could be an example of Wikipedia being wrong. I haven't seen .vp8
being used as an extension for VP8-encoded files. However, the standard
is very new.

Still, it doesn't make much sense for a codec to be listed with a file
extension in Wikipedia. Someone should get that changed.

--
-Mike Melanson

nandan amar

unread,
Sep 19, 2010, 1:48:12 PM9/19/10
to webm-d...@webmproject.org
In general if u want to play a video stream you should have meta data related to encoding format or simply mime type .
make sure to send mime while streaming video so that receiver can play it.
you can have following info. about webm
libvpx  encoder/decoder
webm    muxer
vp8     parser
--
Amar Kumar Nandan
http://aknandan.co.nr

Lou Quillio

unread,
Sep 19, 2010, 1:54:25 PM9/19/10
to webm-d...@webmproject.org
On Sun, Sep 19, 2010 at 1:31 PM, Mike Melanson <mi...@multimedia.cx> wrote:

> Still, it doesn't make much sense for a codec to be listed with a file
> extension in Wikipedia. Someone should get that changed.

Fixed, 20100919.

LQ


--
Lou Quillio
http://quillio.com/
pub...@quillio.com
+1 518.285.0003 (gVoice)

Mike Melanson

unread,
Sep 19, 2010, 4:43:37 PM9/19/10
to webm-d...@webmproject.org
On 09/19/2010 10:54 AM, Lou Quillio wrote:
> On Sun, Sep 19, 2010 at 1:31 PM, Mike Melanson<mi...@multimedia.cx> wrote:
>
>> Still, it doesn't make much sense for a codec to be listed with a file
>> extension in Wikipedia. Someone should get that changed.
>
> Fixed, 20100919.

Thanks. Now we'll see if it 'sticks'.

--
-Mike Melanson

Reply all
Reply to author
Forward
0 new messages