List Info

Thread: Recording Real Audio Content




Recording Real Audio Content
user name
2007-03-08 11:30:52
We're attempting to record real audio content - we've got a
recorded 
file that looks pretty much like the original file, but it
won't play. 
The problem seems to be with the flags field in the data
packet headers. 
How do we know what to set the flags field to ?

If we manually edit the recorded file and set the first data
packet 
header Flags field = 2, we at least get some audible
content, but there 
are glitches.

There is flags information available in
pPacket->GetASMFlags()
pPacket->GetASMRuleNumber()

but this doesn't seem to match up with the original file:

1. flags in original file = 0,2
2. asm flags reported = 2,3

Any ideas ?


John







_______________________________________________
Helix-client-dev mailing list
Helix-client-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev

RE: Recording Real Audio Content
country flaguser name
United States
2007-03-09 10:42:51
John,

The ASM flags are not transmitted over the UDP packets.
So you have to reconstruct them, and it can be kind of
tricky.

Just to make sure I understand what you are doing - 
you have implemented recording by implementing
IHXRecordService? So the packets you are recording are
getting passed to you from the client engine? Or did
you implement this in some other way? Are you writing
the file out via IHXFileWriter?

If you implemented it via IHXRecordService, then 
you may have to fiddle with the ASM flags to
get them right. You may want to look at the file
datatype-restricted/rm/fileformat/intrstrm.cpp
in the method FillOnePacket() to see how the
RealMedia file format sets the ASM flags.

Eric

=============================================
Eric Hyche (ehychereal.com)
Technical Lead
RealNetworks, Inc.  

> -----Original Message-----
> From: helix-client-dev-bounceshelixcommunity.org 
> [mailto:helix-client-dev-bounceshelixcommunity.org] On 
> Behalf Of John Stirling
> Sent: Thursday, March 08, 2007 12:31 PM
> To: helix-client-devlists.helixcommunity.org
> Subject: [Helix-client-dev] Recording Real Audio
Content
> 
> We're attempting to record real audio content - we've
got a recorded 
> file that looks pretty much like the original file, but
it 
> won't play. 
> The problem seems to be with the flags field in the
data 
> packet headers. 
> How do we know what to set the flags field to ?
> 
> If we manually edit the recorded file and set the first
data packet 
> header Flags field = 2, we at least get some audible
content, 
> but there 
> are glitches.
> 
> There is flags information available in
> pPacket->GetASMFlags()
> pPacket->GetASMRuleNumber()
> 
> but this doesn't seem to match up with the original
file:
> 
> 1. flags in original file = 0,2
> 2. asm flags reported = 2,3
> 
> Any ideas ?
> 
> 
> John
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Helix-client-dev mailing list
> Helix-client-devhelixcommunity.org
> http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev
> 


_______________________________________________
Helix-client-dev mailing list
Helix-client-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev

Re: Recording Real Audio Content
user name
2007-03-12 05:48:43
Eric Hyche wrote:

>John,
>
>The ASM flags are not transmitted over the UDP packets.
>So you have to reconstruct them, and it can be kind of
>tricky.
>
>Just to make sure I understand what you are doing - 
>you have implemented recording by implementing
>IHXRecordService? So the packets you are recording are
>getting passed to you from the client engine? Or did
>you implement this in some other way? 
>
Yes, we've implemented IHXRecordService.

>Are you writing
>the file out via IHXFileWriter?
>  
>
No, we're not using IHXFileWriter.

>If you implemented it via IHXRecordService, then 
>you may have to fiddle with the ASM flags to
>get them right. You may want to look at the file
>datatype-restricted/rm/fileformat/intrstrm.cpp
>in the method FillOnePacket() to see how the
>RealMedia file format sets the ASM flags.
>  
>
OK I'll have a look.

>Eric
>
>=============================================
>Eric Hyche (ehychereal.com)
>Technical Lead
>RealNetworks, Inc.  
>
>  
>
>>-----Original Message-----
>>From: helix-client-dev-bounceshelixcommunity.org 
>>[mailto:helix-client-dev-bounceshelixcommunity.org] On 
>>Behalf Of John Stirling
>>Sent: Thursday, March 08, 2007 12:31 PM
>>To: helix-client-devlists.helixcommunity.org
>>Subject: [Helix-client-dev] Recording Real Audio
Content
>>
>>We're attempting to record real audio content -
we've got a recorded 
>>file that looks pretty much like the original file,
but it 
>>won't play. 
>>The problem seems to be with the flags field in the
data 
>>packet headers. 
>>How do we know what to set the flags field to ?
>>
>>If we manually edit the recorded file and set the
first data packet 
>>header Flags field = 2, we at least get some audible
content, 
>>but there 
>>are glitches.
>>
>>There is flags information available in
>>pPacket->GetASMFlags()
>>pPacket->GetASMRuleNumber()
>>
>>but this doesn't seem to match up with the original
file:
>>
>>1. flags in original file = 0,2
>>2. asm flags reported = 2,3
>>
>>Any ideas ?
>>
>>
>>John
>>
>>
>>
>>
>>
>>
>>
>>_______________________________________________
>>Helix-client-dev mailing list
>>Helix-client-devhelixcommunity.org
>>http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev
>>
>>    
>>
>
>  
>


_______________________________________________
Helix-client-dev mailing list
Helix-client-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )