[rtmpdump] Fwd: About librtmp for AudioStream

Ömer Düzyol omerduzyol at gmail.com
Fri Jun 17 09:41:24 CEST 2011

---------- Forwarded message ----------
From: Ömer Düzyol <omerduzyol at gmail.com>
Date: Mon, Jun 13, 2011 at 6:00 PM
Subject: About librtmp for AudioStream
To: projects at mplayerhq.hu, contact at xbmc.org


I'm using your rtmpdump and librtmp to stream rtmp audio sources in my iOS
project . But, I need to extract audio bytes in chunk and push audio data to
Apple's AudioQueue to decode sound in realtime. My rtmp sources serves FLV
data and contains only m4a audio. I inspected all the source and I found an
abstract "HandleAudio", "HandleVideo" methods in the librtmp's source.

static void *HandleAudio*(RTMP *r, const RTMPPacket *packet);

I tried to save *packet->m_body* chunks in a file but it doesnt play. But
when I save the stream output like rtmpdump, it produces FLV file and VLC
player can play the file correctly.

How can I parse m4a audio bytes in chunked FLV stream without saving all

Thanks a lot,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20110617/2bb3c242/attachment.html>

More information about the rtmpdump mailing list