Opened 13 years ago
Last modified 13 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:
- AAC:
- decoding fails with "aac channel element 0.0 is not allocated". Probably due to http://lzone.de/aac+decoding+with+ffmpeg+doesn%27t+work
- for encoding, ffmpeg needs --enable-libaacplus
- Vorbis: it only works with 2 channels
These codecs are untested:
- G.723.1
- G.726
Attachments (1)
Change History (2)
Changed 13 years ago by bennylp
comment:1 Changed 13 years ago by bennylp
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.