KonradIT / gopro-udp-stream-android

6 stars 2 forks source link

UDP stream preview is leggy and frames are missing. #2

Open sharmapraveen91 opened 5 years ago

sharmapraveen91 commented 5 years ago

@KonradIT Thanks for your efforts it helped alot. I followed your code and able to connect with my gopro hero 2018. But there is alot of delay on android device. And streaming is not continuous.

I tried with ffmpeg command as String[] cmd = {"-fflags","nobuffer","-f", "mpegts", "-i", "udp://:8554", "-f", "mpegts","udp://127.0.0.1:8555/gopro?pkt_size=64"};

FFmpeg: [h264 @ 0xe87ff800] error while decoding MB 3 12, bytestream -7
FFmpeg: [h264 @ 0xe87ff800] concealing 766 DC, 766 AC, 766 MV errors in P frame
FFmpeg: frame=  201 fps=7.9 q=14.4 size=     537kB time=00:00:21.35 bitrate= 206.1kbits/s dup=0 drop=2 speed=0.838x    
 W/VLC: [00000077cee8bc90/73ad] core video output: picture is too late to be displayed (missing 119 ms)
W/VLC: [00000077cee8bc90/73ad] core video output: picture is too late to be displayed (missing 86 ms)
W/VLC: [00000077cee8bc90/73ad] core video output: picture is too late to be displayed (missing 53 ms)

While if i try with ffplay udp://:8554 on linux terminal then even there is delay of 6 sec, but streaming is smooth.

Let me know if you have any workaround for same.