dengxiayehu / fqrtmpplayer

Android player and rtmp live streaming tool (push camera-preview & voice to rtmpserver)
GNU General Public License v2.0
18 stars 20 forks source link

audio out of sync, video laggy #2

Open masudo opened 8 years ago

masudo commented 8 years ago

I used live menu to push camera to an rtmp server but the video is delayed like 10 second and audio is out of sync, video is always behind audio. how can we fix it? may be better buffering?

below is log file in android: 06-09 19:11:44.642 10103-12852/com.dxyh.fqrtmpplayer W/FQRtmp: [jitter_buffer.cpp:0123] Delay between the first packet and last packet in the muxing queue is 1022 > 1000: forcing output 06-09 19:11:44.692 10103-12852/com.dxyh.fqrtmpplayer W/FQRtmp: [jitter_buffer.cpp:0123] Delay between the first packet and last packet in the muxing queue is 1022 > 1000: forcing output 06-09 19:11:44.712 10103-12852/com.dxyh.fqrtmpplayer W/FQRtmp: [jitter_buffer.cpp:0123] Delay between the first packet and last packet in the muxing queue is 1022 > 1000: forcing output 06-09 19:11:44.722 10103-12852/com.dxyh.fqrtmpplayer W/FQRtmp: [jitter_buffer.cpp:0123] Delay between the first packet and last packet in the muxing queue is 1021 > 1000: forcing output 06-09 19:11:44.732 10103-12852/com.dxyh.fqrtmpplayer W/FQRtmp: [jitter_buffer.cpp:0123] Delay between the first packet and last packet in the muxing queue is 1022 > 1000: forcing output

dengxiayehu commented 8 years ago

Noted. You can modify mCamcorderProfileId & mBitrate & mFPS ... in LibFQRtmp.java to have a better experience. Currently just audio & video sync mechanism is used.