jsmpeg-vnc icon indicating copy to clipboard operation
jsmpeg-vnc copied to clipboard

How to push audio

Open pssrecom opened this issue 3 years ago • 6 comments

I want to push audio, how should I achieve it, thank you!

pssrecom avatar Aug 21 '22 23:08 pssrecom

I don't think mpjpeg will be able to incorporate sound. This uses ffmpeg to push the data. Consider changing mjpeg to VP9, which may reduce bandwidth and increase clarity at the same time.

zsinba avatar Oct 21 '22 01:10 zsinba

Have a look at the current JSMpeg version – it's able to accept a MPEG-TS stream, including mp2 audio. Using the updated JSMpeg for the client and implementing audio encoding and TS packetization in this project is certainly possible. My Magic Webcam App does exactly this.

That said, I currently don't have any interest in updating jsmpeg-vnc myself. Pull Requests are welcome.

phoboslab avatar Oct 26 '22 07:10 phoboslab

Have a look at the current JSMpeg version – it's able to accept a MPEG-TS stream, including mp2 audio. Using the updated JSMpeg for the client and implementing audio encoding and TS packetization in this project is certainly possible. My Magic Webcam App does exactly this.

That said, I currently don't have any interest in updating jsmpeg-vnc myself. Pull Requests are welcome. Magic Webcam App, Ipad pro(2021). Lan Env. about 200~300ms delay.

zsinba avatar Oct 31 '22 04:10 zsinba

No 100ms delay was tested.

zsinba avatar Oct 31 '22 04:10 zsinba

image

zsinba avatar Oct 31 '22 04:10 zsinba

Use the Ipad's camera to point at a timed web page; This web page is accurate to a thousandth of a second. In another browser, open the playback screen. The screen capture shows that the delay is about 200 to 300ms. The whole Intranet environment is used, and the network condition is good. May I ask how can I test the 100ms delay you mentioned? I use the free version of the Magic Webcam App. The 2021 Ipad Pro. IOS16.

zsinba avatar Oct 31 '22 04:10 zsinba