phoboslab / jsmpeg

MPEG1 Video Decoder in JavaScript
MIT License
6.35k stars 1.43k forks source link

Poor audio quality issue on apple IPhone/MAC + WebView browser. #345

Open pankajbudd opened 4 years ago

pankajbudd commented 4 years ago

I’m facing poor audio quality issue on apple IPhone/MAC + WebView browser. Other platform like Android/Windows + Chrome /WebView browser give me smooth, clean & clear audio quality.

I use following site to implement websocket audio streaming and tested on multiple platform (android, IOS, windows and mac)

https://phoboslab.org/log/2013/09/html5-live-video-streaming-via-websockets

FFmpeg command use:

ffmpeg -f alsa -i hw:0,0 -c:a aac -ar 48000 -f mpegts -codec:a mp2 -b:a 128k -muxdelay 0.002 [output HTTP server]

Testing Result:

Sr No Mobile + Version Browser Audio Quality Listening quality
1 Apple Iphone XR WebView Bad poor listening quality, Intermittent miss audio word but no distortion, no humming.
2 Apple Iphone XR Chrome Good smooth, clean & clear
3 Apple Mac WebView Bad poor listening quality, Intermittent miss audio word but no distortion, no humming.
4 Apple Mac Chrome Good smooth, clean & clear
5 Android Oneplus WebView/Chrome Good smooth, clean & clear
6 Windows 10 WebView/Chrome Good smooth, clean & clear

Any fixes for this?

Thanks in advanced, Pankaj