Opened 12 years ago

Last modified 12 years ago

#1489 new enhancement

FFmpeg audio codecs implementation (patch attached)

Reported by: bennylp Owned by: nanang
Priority: normal Milestone: Known-Issues-and-Ideas
Component: pjmedia Version: common
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp)

This ticket contains unfinished work to implement audio codec wrapper for ffmpeg codecs.

Latest status [2012-04-16]:

  • the codecs have funny ptime, such as 42 ms. Currently there is no encoding buffering done in the codec, so caller must supply with the exact ptime as reported in default_param.
  • some codecs requires very large output buffer. Maybe the codec should provide this encoding buffering anyway.
  • decoding already implements buffering, because we don't know if the frame supplied to the codec match the defined ptime (because we don't know how to parse the packet).
  • parsing is very rudimentary, it only attempts to split the packet somehow so that it fits the jbuf.
  • this is only for file encoding and decoding; RTP is not supported yet. Some of these codecs have their own framing spec, e.g. RFC 3640 and/or RFC 6416 for AAC.

These codecs seem to be working:

  • MP2
  • MP3 (ffmpeg needs --enable-libmp3lame)

These codecs don't:

These codecs are untested:

  • G.723.1
  • G.726

Attachments (1)

ffmpeg_aud_codecs.c (30.9 KB) - added by bennylp 12 years ago.

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by bennylp

comment:1 Changed 12 years ago by bennylp

  • Description modified (diff)
Note: See TracTickets for help on using tickets.