Currently mp3rtp utility of LAME supports only IPV4 communication.
I have done changes to rtp_socket() and lame_main() functions so that both IPV4 and IPV6 addresses can be supported.
One change for usage of mp3rtp utility would be that now the input will be taken as below:
arecord -b 16 -s 22050 -w | ./mp3rtp 224.17.23.42 5004:2 -b 56 - /dev/null
and
arecord -b 16 -s 44100 -w | ./mp3rtp ff00::8 5004:2 -b 56 - /dev/null
So, using this patch mp3rtp can multicast data on IPV6 address also.
By default IPV6 is enabled and can be disabled using --disable-ipv6 with configure.
These changes will add advantage to use mp3rtp in both IPV4 and IPV6 mode.
Using only IPV4 could be a limitation very soon and upgradation to support both IPV4 and IPV6 is important.
Please find the patch attached for this change.
Hello,
I have updated the IPV6 support patch with corrections done for few indentation errors and improving variable names.
Please find updated patch attached.
Thanks.
Commited. There were some changes since then, so parts had to be applied by hand. I did some very very light testing. Can you test?