[FFmpeg-devel] [PATCH] asf-format doesn't work as stream for XBox360

Baptiste Coudurier baptiste.coudurier
Mon Oct 15 11:13:21 CEST 2007


Vladimir Pantelic wrote:
> Patric Stout wrote:
>> I tried to change all the other fields that showed up on the diff 
>> between a streamed wmv and a stored wmv, no other field did anything
>> for the good. This is the only field that makes it to work, or breaks
>> it. So I am pretty sure this is what the Xbox expects.
> IIRC asf "live" streams have the broadcast flag = 1, seekable = 0 and
> the *size* is not 0 but the size of the ASF header plus the data header,
> so everything up to the first packet.

Quoting specs:

The flags are stored in Least Significant Byte (LSB) order.

Broadcast Flag (bit 0)

Specifies, if set, that a file is in the process of being created (for
example, for recording applications), and thus that various values
stored in the header objects are invalid. It is highly recommended that
post-processing be performed to remove this condition at the earliest

Seekable Flag (bit 1)

Specifies, if set, that a file is seekable. Note that for files
containing a single audio stream and a Minimum Data Packet Size field
equal to the Maximum Data Packet Size field, this flag shall always be
set to 1. For files containing a single audio stream and a video stream
or mutually exclusive video streams, this flag is only set to 1 if the
file contains a matching Simple Index Object for each regular video
stream (that is, video streams that are not hidden according to the
method described in section 8.2.2)."

It seems that we are always setting "Seekable flag":
put_le32(pb, (asf->is_streamed || url_is_streamed(pb)) ? 3 : 2); /* ??? */

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312

More information about the ffmpeg-devel mailing list