sequence header from "codec_data" for WMV VC-1 Advanced and Simple Main profiles.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

sequence header from "codec_data" for WMV VC-1 Advanced and Simple Main profiles.

Ajitabh Saxena
Hi All,
           We have written a gstreamer plugin and it announces itself as a decoder. Since my decoder will reject anything without the sequence header.
I am trying to the get the sequence header from a WMV AP file but not able to get it. I am using totem to test my plugin.
 
In my sink_set_caps function:
value=gst_structure_get_value(XX,"codec_data");
buff = get_value_get_buffer(value);
xyz = GST_BUFFER_DATA(buff);
size = GST_BUFFER_SIZE(buff);
 
 
I am able to get the sequence header for Advanced profile but for simple main it gives me only 4 bytes.
-- Thanks,
-- AJ

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: sequence header from "codec_data" for WMV VC-1 Advanced and Simple Main profiles.

Felipe Contreras
On Sat, Oct 18, 2008 at 12:32 AM, Ajitabh Saxena <[hidden email]> wrote:

> Hi All,
>            We have written a gstreamer plugin and it announces itself as a
> decoder. Since my decoder will reject anything without the sequence header.
> I am trying to the get the sequence header from a WMV AP file but not able
> to get it. I am using totem to test my plugin.
>
> In my sink_set_caps function:
> value=gst_structure_get_value(XX,"codec_data");
> buff = get_value_get_buffer(value);
> xyz = GST_BUFFER_DATA(buff);
> size = GST_BUFFER_SIZE(buff);
>
>
> I am able to get the sequence header for Advanced profile but for simple
> main it gives me only 4 bytes.

4 bytes of codec data is correct for main and simple profile.

--
Felipe Contreras

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: sequence header from "codec_data" for WMV VC-1 Advanced and Simple Main profiles.

Ajitabh Saxena
Hi There,
        Thanks for the information. I figured that it should be correct only. Now from the VC1 specs it says that  there is a 4 byte sequence strucutre (STRUCT_C) for simple and main profile. The fiels included are:

PROFILE: 4bits
FRMRTQ:3 bits
BITRTQ_POST:5bits
LOOPFILTER:1
Res-3:1
MULTIRES:1
Res-4:1
FASTUVMC:1
EXTENDED_MV:1
DQUANT:
:
:
:
Res6:1

Though the total of this structure comes to 4 bytes. But when I see the metadata for simple/Main
0x4B 0xF1 0x0A 0x01

The first two bits which designate the profile are set to Advanced profile.
>From Specs it says that these bits are designated to be

Value    -  Meaning.
==============================
    0    - Simple Profile.
    4    - Main Profile.
    12   - Advanced Profile.


Just also want to mention that for advanced profile the Metadata makes perfect sence and the data that I am getting is

27 00 00 01 0f DB BE 27 F1 67 88 80 00 00 01 0E 10 44 9F C5 9C 80

Am I parsing the structure correctly. I know I am missing something.
Please Help.
-- AJ.

-----Original Message-----
From: Felipe Contreras [mailto:[hidden email]]
Sent: Monday, October 20, 2008 9:48 AM
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] sequence header from "codec_data" for WMV VC-1 Advanced and Simple Main profiles.

On Sat, Oct 18, 2008 at 12:32 AM, Ajitabh Saxena <[hidden email]> wrote:

> Hi All,
>            We have written a gstreamer plugin and it announces itself as a
> decoder. Since my decoder will reject anything without the sequence header.
> I am trying to the get the sequence header from a WMV AP file but not able
> to get it. I am using totem to test my plugin.
>
> In my sink_set_caps function:
> value=gst_structure_get_value(XX,"codec_data");
> buff = get_value_get_buffer(value);
> xyz = GST_BUFFER_DATA(buff);
> size = GST_BUFFER_SIZE(buff);
>
>
> I am able to get the sequence header for Advanced profile but for simple
> main it gives me only 4 bytes.

4 bytes of codec data is correct for main and simple profile.

--
Felipe Contreras

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: sequence header from "codec_data" for WMV VC-1 Advanced and Simple Main profiles.

Felipe Contreras
On Tue, Oct 21, 2008 at 4:29 AM, Ajitabh Saxena <[hidden email]> wrote:

> Hi There,
>        Thanks for the information. I figured that it should be correct only. Now from the VC1 specs it says that  there is a 4 byte sequence strucutre (STRUCT_C) for simple and main profile. The fiels included are:
>
> PROFILE: 4bits
> FRMRTQ:3 bits
> BITRTQ_POST:5bits
> LOOPFILTER:1
> Res-3:1
> MULTIRES:1
> Res-4:1
> FASTUVMC:1
> EXTENDED_MV:1
> DQUANT:
> :
> :
> :
> Res6:1
>
> Though the total of this structure comes to 4 bytes. But when I see the metadata for simple/Main
> 0x4B 0xF1 0x0A 0x01
>
> The first two bits which designate the profile are set to Advanced profile.
> >From Specs it says that these bits are designated to be
>
> Value    -  Meaning.
> ==============================
>    0    - Simple Profile.
>    4    - Main Profile.
>    12   - Advanced Profile.
>
>
> Just also want to mention that for advanced profile the Metadata makes perfect sence and the data that I am getting is
>
> 27 00 00 01 0f DB BE 27 F1 67 88 80 00 00 01 0E 10 44 9F C5 9C 80
>
> Am I parsing the structure correctly. I know I am missing something.

I don't know how to parse the data, maybe you can take a look at FFmpeg.

--
Felipe Contreras

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel