phoboslab / jsmpeg

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

delay accumilates when run in android device #349

Open pranavps98 opened 4 years ago

pranavps98 commented 4 years ago

Delay accumulation over time when run in android device. Straightly followed steps given in the example section.

byeze commented 4 years ago

Same here, in my case audio accumulates and are all played at the same time (like an echo)

byeze commented 4 years ago

Fixed with modifying ffmpeg parameters.

bountiful-taco commented 4 years ago

@byeze do you recall the parameters that you changed? I am having the same issue with the video accumulating.

byeze commented 4 years ago

@byeze do you recall the parameters that you changed? I am having the same issue with the video accumulating.

Sure! This command I tried & It worked, let me know if your problem was fixed: ffmpeg -vn -re -i "<<LOCAL VIDEO URI>>" -preset ultrafast -b:v 128k -f mpegts -codec:v mpeg1video -muxdelay 1 http://localhost:8081/supersecret

Sayayaya commented 4 years ago

Which of these options do you think prevents accumulating video delay? I tried adding the -vn option, but this just causes the video output to be blank white screen (audio passes through still)

byeze commented 4 years ago

Which of these options do you think prevents accumulating video delay? I tried adding the -vn option, but this just causes the video output to be blank white screen (audio passes through still)

Those options fixed my issue! I don't know how you are implementing them.