pedroSG94 / RootEncoder

RootEncoder for Android (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP, SRT and UDP with all code written in Java/Kotlin
Apache License 2.0
2.57k stars 778 forks source link

Use G729 Audio codec instead of G711 #1385

Open RedwanSharafatKabir opened 10 months ago

RedwanSharafatKabir commented 10 months ago

Can I use G729 Audio codec instead of G711 ?

pedroSG94 commented 10 months ago

Hello,

Currently G729 codec is not supported. Mainly for this reasons:

The difference between G711 and G729 it that G711 has an easy implementation and it is supported by RTSP and RTMP. Also, G711 is supported in android mediacodec decoding so you can use a file with g711 codec with FromFileBase. That are the reasons because I implemented that codec.

Of course, if you can do an implementation of G729 encoding in pure java/kotlin. I can create the packet and add it to RTSP supported codecs.

pedroSG94 commented 9 months ago

Added as feature but it is only possible for RTSP

RedwanSharafatKabir commented 2 months ago

Thousands thanks