perin / flv4php

Automatically exported from code.google.com/p/flv4php
0 stars 0 forks source link

no width and height on On2 VP6 encoded files #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run program on an FLV encoded with On2 VP6 codec

What is the expected output? What do you see instead?
width and height are empty.

What version of the product are you using? On what operating system?
latest from SVN as of this day, WinXp

Please provide any additional information below.
Will you be adding support for On2 VP6 codec so the width and height can be
retrieved? Thanks

Original issue reported on code.google.com by bil...@gmail.com on 19 Jan 2007 at 8:04

GoogleCodeExporter commented 9 years ago
Whitch version are you using ?

Original comment by fan...@gmail.com on 20 Jan 2007 at 12:01

GoogleCodeExporter commented 9 years ago

Original comment by drSlum...@gmail.com on 21 Jan 2007 at 1:24

GoogleCodeExporter commented 9 years ago
it's a known problem. AFAIK the On2 VP6 video codec is closed sourced and to 
access
its specification you need sign a non-disclosure license.

I've just found out this: http://wiki.multimedia.cx/index.php?title=On2_VP6

The codec frame header seems to be pretty well documented, I'll give it a shot 
and
see if I can add support for it.

Original comment by drSlum...@gmail.com on 21 Jan 2007 at 1:32

GoogleCodeExporter commented 9 years ago
I've just committed the needed changes to trunk (I'm sure Fanno will update PHP4
version asap).

Taking ffmpeg's libavcodec source as reference the FLV's On2 VP6 codec frame 
header
is basically like this:

4bits  width adjustment
4bits  height adjustment
1bits  frame-type (0 is like a key-frame)
15bits miscellanea data (quantification and other stuff
8bits  number of 16x16 rows
8bits  number of 16x16 cols

So width is Cols * 16 - Width adjustment and the same for height

Original comment by drSlum...@gmail.com on 21 Jan 2007 at 2:52