[Red5] Fwd: Fw: RTMPClient

Art Clarke aclarke at xuggle.com
Tue Oct 20 13:47:14 PDT 2009


Xuggler has an object called an IAudioResampler that will resample audio
from one sample-rate to another.  Try that.

- Art

On Tue, Oct 20, 2009 at 1:41 PM, Tommy Red-Cloud <nrgfxmail at yahoo.com>wrote:

> just what I was investigating.... nice.. I think I am in sync...with
> this...
>
> Looks like the byte order is Big Endian. The pcm data is Little Endian, 8k,
> 16bit. it looks like I would have to upsample to 11k or else it the
> chipmunks.
>
>
> ------------------------------
> *From:* Prabhu Tamilarasan (omNovia) <ptamilarasan at omnovia.com>
> *To:* red5 at osflash.org
> *Sent:* Tue, October 20, 2009 8:46:13 AM
>
> *Subject:* Re: [Red5] Fwd: Fw: RTMPClient
>
>  Here is more information on the codec ID, look at page 10 in the PDF,
> Audio Tags and it specifies that the first byte in the tag specifies a Sound
> Format, Sound Rate, Sound Size, and Sound Type.
>
> http://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v9.pdf
>
>
>
>
>
> For example:
>
> 22 = 00010110 = mono 11.025 khz adpcm
>
>
>
> SoundFormat = first four bits = 0001 = ADPCM
>
> SoundRate = next two bits = 01 = 11KHz
>
> SoundSize = next bit = 1 = 16 bit
>
> SoundType = last bit = 0 = mono
>
>
>
> You can use these fields to specify any of the supported audio tags listed
> in the Audio tags section of the pdf.
>
>
>      ------------------------------
>
> *Prabhu Tamilarasan*
> Director of Technology
>
> ptamilarasan at omnovia.com
>
> [image: image001]
> next generation web conferencing
>
>
>
> *Follow us: *
>
> [image: image002] <http://twitter.com/omnovia>[image: image003]<http://feeds2.feedburner.com/omnoviablog>[image:
> image004]<http://www.facebook.com/home.php#/group.php?sid=32132de3107d0b3e50a2a347cbfd386c&gid=77208555908&ref=search>
> **
>
> 675 Bering Drive, Suite 290
> Houston, TX 77057 USA
> www.omNovia.com <http://www.omnovia.com/>
>
> T +1.281.500.4065
>
>
>      ------------------------------
>
>
>
> *From:* red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] *On
> Behalf Of *Prabhu Tamilarasan (omNovia)
> *Sent:* Tuesday, October 20, 2009 10:30 AM
> *To:* red5 at osflash.org
> *Subject:* Re: [Red5] Fwd: Fw: RTMPClient
>
>
>
> I think len used to be used in an older version and was just never
> removed?  Codec is explained in the comments in the code, but is confusing.
>
>
>
>
> 2 = mono 5.5 Khz
>
> 6 = mono 11.025 Khz
>
> 22 = mono 11.025 khz adpcm
>
> 82 = nellymoser 8Khz
>
> 178 = speex 8khz
>
>
>      ------------------------------
>
> *Prabhu Tamilarasan*
> Director of Technology
>
> ptamilarasan at omnovia.com
>
> [image: image001]
> next generation web conferencing
>
>
>
> *Follow us: *
>
> [image: image002] <http://twitter.com/omnovia>[image: image003]<http://feeds2.feedburner.com/omnoviablog>[image:
> image004]<http://www.facebook.com/home.php#/group.php?sid=32132de3107d0b3e50a2a347cbfd386c&gid=77208555908&ref=search>
> **
>
> 675 Bering Drive, Suite 290
> Houston, TX 77057 USA
> www.omNovia.com <http://www.omnovia.com/>
>
> T +1.281.500.4065
>
>
>       ------------------------------
>
>
>
> *From:* red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] *On
> Behalf Of *Tommy Red-Cloud
> *Sent:* Tuesday, October 20, 2009 9:44 AM
> *To:* red5 at osflash.org
> *Subject:* Re: [Red5] Fwd: Fw: RTMPClient
>
>
>
> Just as Paul had said.... all the code I need. :)
>
> The audio function in there is what threw me off..
> parameter len isn't used.
>
> audio is the raw PCM data
>
> long ts is the timestamp generation.
>
> and int codec.>> that one confused me.
>
> Does anyone know what that is supposed to be?
>  ------------------------------
>
> *From:* Prabhu Tamilarasan (omNovia) <ptamilarasan at omnovia.com>
> *To:* red5 at osflash.org
> *Sent:* Tue, October 20, 2009 7:11:36 AM
> *Subject:* Re: [Red5] Fwd: Fw: RTMPClient
>
> Try this.  This is a full example of an extended RTMPClient class that
> publishes audio.  It shows you which interfaces you need to implement, and
> how to publish audio as well.
>
>
>
>
> http://code.google.com/p/red5phone/source/browse/trunk/sip/WEB-INF/classes/org/red5/server/webapp/sip/RTMPUser.java
>
>
>
> This is from Dele’s red5phone SIP project.
>       ------------------------------
>
> *Prabhu Tamilarasan*
> Director of Technology
>
> ptamilarasan at omnovia.com
>
> [image: image001]
> next generation web conferencing
>
>
>
> *Follow us: *
>
> [image: image002] <http://twitter.com/omnovia>[image: image003]<http://feeds2.feedburner.com/omnoviablog>[image:
> image004]<http://www.facebook.com/home.php#/group.php?sid=32132de3107d0b3e50a2a347cbfd386c&gid=77208555908&ref=search>
>
> 675 Bering Drive, Suite 290
> Houston, TX 77057 USA
> www.omNovia.com <http://www.omnovia.com/>
>
> T +1.281.500.4065
>
>
>       ------------------------------
>
>
>
> *From:* red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] *On
> Behalf Of *Tommy Red-Cloud
> *Sent:* Tuesday, October 20, 2009 8:05 AM
> *To:* red5 at osflash.org
> *Subject:* Re: [Red5] Fwd: Fw: RTMPClient
>
>
>
> Art,
> Thanks.Understood. I appreciate your feed back. I am on my own.
>
> Best Regards to you and the community.
>
>
>  ------------------------------
>
> *From:* Art Clarke <aclarke at xuggle.com>
> *To:* red5 at osflash.org
> *Sent:* Mon, October 19, 2009 10:47:58 PM
> *Subject:* [Red5] Fwd: Fw: RTMPClient
>
> OK, Tommy you're dealing with hard stuff here where maybe 30 people in the
> world have done it.  And those people were kind enough to share what they
> did, but didn't have the time to completely document it so a completely new
> person could understand it without thinking hard. Keep that in mind.
>
> Now, take a deep breath, and start figuring out how to be person 31.  Start
> with reading the Adobe FLV spec to figure out how FLV (and RTMP) represent
> PCM raw audio in a file:
> http://www.adobe.com/devnet/flv/
>
> Then, construct your AudioData Red5 object so they have the right headers
> that are needed for that.  The AudioData object is just a Red5 object that
> eventually becomes a audio packet in an FLV container. The Xuggler Red5
> Adapter has some code that does this, but it's probably easier to write your
> own.  If you want to use the Xuggler Red5 adapter, then run it in a debugger
> to see how it works.  Step line by line through the methods.  Basically,
> start debugging on your own a little.
>
> Lastly (I know I'm a broken record about this, but I've suggested it
> several times and you've yet to do it), when you send e-mails do the
> following:
> 1) stop bitching about how no one responds; it only makes people like me
> want to help you less.
> 2) actually summarize and ask a specific question.  Your e-mails have been
> rambling and I've tried to parse out what the hell you're asking and have
> yet to succeed.
> 3) stop spamming every few hours.  give people a day or two to respond.
> you may have a work-induced deadline, but frankly, that's your problem and
> not the Red5 (or Xuggler) community problem.
> 4) if you really can't figure this out and it's a work project, ask your
> manager to pay a consultant (e.g. Dominick's company) to spend time
> educating you.  It'll take you less time, cost your manager less time and
> money than listening to you struggle and fail, and will cause the community
> less pain from seeing your constantly evolving e-mail requests.
>
> $0.02.
>
> - Art
>
> On Mon, Oct 19, 2009 at 10:34 PM, Tommy Red-Cloud <nrgfxmail at yahoo.com>
> wrote:
>
> Thank you Dominick for responding,
>
> That is fantastic news!
>
> I pretty much given up that anyone knows.. or cares, let alone to watch me
> fail.
>
> Albeit from my negativity that is stress induced, I will continue to
> monitor and post....and try and keep whatever sanity I have left,as well as
> trying to stay positive.
>
> But is really hard.. I am completely faithless.
>
> I just don't understand how it would be tossed to Xuggler if it is a class
> and subject dealing with red5 and having  0 to deal with xuggler, but okay.
>
> Since we are on the subject, the post on the red5 site dealing with the
> RTMPClient class is not a tutorial at all. It is really difficult to gain
> any useful information on something that is that abstract without providing
> a 'full' class - subclass example.. verbatim.  This just leads to
> confusion.. and there are a holes.
>
> Class examples that I have seen for RTMPClient that are for streaming are
> in total contrast with how some of the even handlers are written/handled. I
> am definitely not an expert, just making observations that are obvious and
> just trying to help out for everyone.
>
> Sigh....
>
> Here I go again..
> Wheels on the bus go round and round.
>
> Sincerely Thomas Red-Cloud..
>
>   ------------------------------
>
> *From:* Dominick Accattato <dominick at red5.org>
> *To:* red5 at osflash.org
> *Sent:* Mon, October 19, 2009 9:10:30 PM
> *Subject:* Re: [Red5] Fw: RTMPClient
>
>
> Tommy:
>
> I may be wrong, but doing a quick search on your name showed that your
> first question was from a day ago. While we try to answer every question,
> there are many questions that go unanswered on the list... anyways, I'd
> imagine others have read your question as well and just don't have a good
> enough answer for you...  Anyway, the best answer I can give is to check out
> the Xuggle mailing list as they have more experience with raw audio data.
> Someone might be able to give you more help on this subject there. hth.
>
> .
>
> On Mon, Oct 19, 2009 at 11:27 PM, Tommy Red-Cloud <nrgfxmail at yahoo.com>
> wrote:
> >
> > Still haven't heard back.. is anyone reading this?
> >
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
>
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
> --
> http://www.xuggle.com/
> xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and
> video.
>
> Use Xuggle to get the power of FFmpeg in Java.
>
>
>
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>


-- 
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and
video.

Use Xuggle to get the power of FFmpeg in Java.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20091020/0e67be2d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2116 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20091020/0e67be2d/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 11059 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20091020/0e67be2d/attachment-0003.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 10912 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20091020/0e67be2d/attachment-0004.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 10463 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20091020/0e67be2d/attachment-0005.jpe>


More information about the Red5 mailing list