Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: How to disable compressed payloads in Asf Writer

HTVi
TV Discussion Newsgroups

How to disable compressed payloads in Asf Writer
jonathannah 11/14/2008 1:57:20 AM
I am using the ASF writer to mux and write an ASF stream. About 1 out of 50
payloads is compressed. How do you disable this feature?
Re: How to disable compressed payloads in Asf Writer
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 11/14/2008 3:27:30 PM
From: "jonathannah"

[Quoted Text]
> I am using the ASF writer to mux and write an ASF stream.
> About 1 out of 50 payloads is compressed. How do you
> disable this feature?

What do you mean by compressed payload? The WMWriter API has
no concept equivalent to the ASF payload. And data samples
(media objects in ASF lingo, not payloads) are either all
compressed or none is, according to your specification, not
to some whim of the WMWriter.

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: How to disable compressed payloads in Asf Writer
jonathannah 11/14/2008 3:55:01 PM
"Alessandro Angeli" wrote:
[Quoted Text]
>
> What do you mean by compressed payload?

Each data packet in the data object contains 1 or more payloads. If a
packet has less than 256 bytes and only the standard 8 bytes of replicated
data (see 5.2.3.4 inthe ASF spec) the payload may be compressed.

I am finding that small video frames are put into compressed payloads by the
Asf Writer, and for our purposes, this is not desired. I have a simple work
around, to add two bytes of replicated data (sample duration or pixel aspect
ratio work), but this is a bit of a hack. I was hoping that there was some
way to tell the writer to not compress any payloads.

BTW, thanks for all your assistance on these boards. I used your wmvmux
sample as a tutorial on how to use the ASF writer.
Re: How to disable compressed payloads in Asf Writer
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 11/14/2008 6:36:50 PM
From: "jonathannah"

[Quoted Text]
> Each data packet in the data object contains 1 or more
> payloads. If a packet has less than 256 bytes and only
> the standard 8 bytes of replicated data (see 5.2.3.4
> inthe ASF spec) the payload may be compressed.

So you are talking about the actual ASF payloads.
Unfortunately, AFAIK the WMWriter does not give you that
level of control on the ASF structure. On the other hand,
the idea behind the ASF syntax is to squeeze as much data
into as little space as possible, so compressed payload
headers are to be expected and letting you turning them off
would defeat much of the purpose of using ASF.

> BTW, thanks for all your assistance on these boards. I
> used your wmvmux sample as a tutorial on how to use the
> ASF writer.

You're welcome.

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: How to disable compressed payloads in Asf Writer
jonathannah 11/14/2008 7:02:01 PM
"Alessandro Angeli" wrote:

[Quoted Text]
> On the other hand,
> the idea behind the ASF syntax is to squeeze as much data
> into as little space as possible, so compressed payload
> headers are to be expected and letting you turning them off
> would defeat much of the purpose of using ASF.
>

Only a few payloads are compressed because few frames are < 256 bytes, and
so this feature is only nominally useful for video. We have one player that
chokes on compressed frames. I will have to stick with with my work around.

Thanks.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen