jsmpeg icon indicating copy to clipboard operation
jsmpeg copied to clipboard

delay accumilates when run in android device

Open pranavps98 opened this issue 5 years ago • 6 comments

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

pranavps98 avatar Jun 11 '20 09:06 pranavps98

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

byeze avatar Jul 15 '20 20:07 byeze

Fixed with modifying ffmpeg parameters.

byeze avatar Jul 18 '20 15:07 byeze

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

bountiful-taco avatar Aug 31 '20 16:08 bountiful-taco

@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

byeze avatar Sep 02 '20 19:09 byeze

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)

Sayayaya avatar Sep 10 '20 16:09 Sayayaya

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.

byeze avatar Sep 10 '20 18:09 byeze