doubango icon indicating copy to clipboard operation
doubango copied to clipboard

openh264 can't decode video from linphone client

Open rachelxj opened this issue 7 years ago • 6 comments

@DoubangoTelecom when I use openh264 as codec, it couldn't decode the video sent from linphone client. it always says

MSG: OpenH264: DecodeFrame failed: 18 *[DOUBANGO INFO]: Failed to decode the buffer with error code =18, size=0, append=yes *[DOUBANGO INFO]: Decoding failed -> request Full Intra Refresh (FIR) *[DOUBANGO INFO]: Outgoing SIP INFO ('picture_fast_update') requested but delay too close **[DOUBANGO WARN]: function: "tdav_codec_h264_cisco_decode()" file: "/Users/macdeveloper/sip-research/mydoubs/doubango/branches/2.0/doubango/tinyDAV/src/codecs/h264/tdav_codec_h264_cisco.cxx" line: "486" MSG: OpenH264: DecodeFrame failed: 4 *[DOUBANGO INFO]: Failed to decode the buffer with error code =4, size=0, append=no *[DOUBANGO INFO]: Decoding failed -> request Full Intra Refresh (FIR)

rachelxj avatar Mar 08 '17 04:03 rachelxj

Have you found a solution or an alternative to this problem? I am getting the same error when trying to connect to a SIP camera (MileSight MS-C2963-PB). I also tried forcing doubango to use the other codecs but it doesn't work. It works on the boghe app v2.0 153.936, but since then doubango has been updated. I will probably checkout back on the commits to see when it starts working.

AndrejHafner avatar May 14 '18 09:05 AndrejHafner

Use FFMPEG to replace OPENH264.

  1. open doubango/tinyDAV/src/tdav.c
  2. remove code at line334~line336:
    #if HAVE_OPENH264
        tmedia_codec_plugin_register(tdav_codec_h264_cisco_base_plugin_def_t);
    #endif

GurgleSSH avatar May 15 '18 02:05 GurgleSSH

Thanks, the solution worked!

AndrejHafner avatar May 15 '18 11:05 AndrejHafner

Hi, it's disconnecting the call after 1 second ring, please help

santanu1122 avatar Jun 10 '18 19:06 santanu1122

santanu1122, can you provide logs?

GurgleSSH avatar Jun 13 '18 02:06 GurgleSSH

it couldn't decode the remote video , when i used ffmpeg as codec, it always said

**[DOUBANGO WARN]: function: "tdav_codec_h264_get_pay()" file: "src/codecs/h264/tdav_codec_h264_rtp.c" line: "198" MSG: 24 not supported as valid NAL Unit type ***[DOUBANGO ERROR]: function: "tdav_codec_h264_decode()" file: "src/codecs/h264/tdav_codec_h264.c" line: "366" MSG: ./tinyDAV/src/codecs/h264/tdav_codec_h264.c Depayloader failed to get H.264 content *[DOUBANGO INFO]: Failed to decode the buffer with error code =-1, size=1681, append=no *[DOUBANGO INFO]: Decoding failed -> request Full Intra Refresh (FIR) *[DOUBANGO INFO]: Failed to decode the buffer with error code =-1, size=1167, append=yes *[DOUBANGO INFO]: Decoding failed -> request Full Intra Refresh (FIR)

pls help me to fix it. thks

Rayman230510 avatar Jan 12 '22 06:01 Rayman230510