[Opalvoip-devel] H.323 video-size and resolution downgrade bug
Brought to you by:
csoutheren,
rjongbloed
From: Alexander S. <ale...@gm...> - 2016-04-27 16:09:01
|
Got another problem with polycom and conopal. It happens if I manually setup preferred video resolution (720p) in conopal and connect to Polycom which can only receive a smaller video resolution (h264 level 2.1) but can send a higher resolution (720p). As result during negotiations and startup phase mediaformat and encoder first downgrade to CIF: 0:00.209 H.245 Handler:16421 mediafmt.cxx(1331) MediaFormat Merging H.264-1 into H.264-1 0:00.209 H.245 Handler:16421 mediafmt.cxx(1331) MediaFormat Merging H.264-1 into YUV420P 0:00.209 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Frame Height" from "720" to "576" 0:00.209 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Frame Width" from "1280" to "352" 0:00.209 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Max Bit Rate" from "1382400000" to "1024000" 0:00.209 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Max Rx Frame Height" from "1080" to "576" 0:00.209 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Max Rx Frame Width" from "1920" to "352" .... 0:00.263 H.245 Handler:16421 h264-x264.cxx(773) x264 Applied options: prof=66 lev=21 res=352x576 fps=30 bps=1000000 period=1000 RTP=1400 NALU=1400 TSTO=31 Mode=1 and next get back to 720p: 0:00.269 H.245 Handler:16421 mediafmt.cxx(1331) MediaFormat Merging H.264-1 into H.264-1 0:00.269 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Frame Height" from "576" to "720" 0:00.269 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Frame Width" from "352" to "1280" 0:00.269 H.245 Handler:16421 mediafmt.cxx(1331) MediaFormat Merging H.264-1 into YUV420P 0:00.269 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Frame Height" from "576" to "720" 0:00.269 H.245 Handler:16421 mediafmt.cxx(266) MediaFormat Changed media option "Frame Width" from "352" to "1280" .... 0:00.286 H.245 Handler:16421 h264-x264.cxx(773) x264 Applied options: prof=66 lev=21 res=1280x720 fps=6 bps=1000000 period=1000 RTP=1400 NALU=1400 TSTO=31 Mode=1 As result tx video frame failing with a incorrect buffer size: 0:00.346 Tx video:16463 rtp_session.cxx(1257) RTP Session 2, SSRC=321345223 (0x132756c7), sending (forced) empty ReceiverReport 0:00.346 Tx video:16463 rtp_session.cxx(1299) RTP Session 2, SSRC=321345223 (0x132756c7), sending SDES cname="dl056bmuVh+UNLzue1xTfQ" 0:00.346 Tx video:16463 rtp_session.cxx(1409) RTP Session 2, sent 1 forced reports: status=1 0:00.346 H.245 Handler:16421 opalpluginmgr.cx(625) OpalPlugin Setting encoder options: H.264-1 res=1280x720 target=960000 0:00.346 Tx video:16463 mediastrm.cxx(1329) Media Tried to read with insufficient buffer size - 304160 < 1382400 0:00.346 Tx video:16463 patch.cxx(781) Patch Thread ended because source read failed on 14OpalMediaPatch[0x7fa3000e65e0] 20OpalVideoMediaStream[0x7fa30011c5b0],Source,YUV420P,2 -> 18OpalRTPMediaStream[0x7fa30007b5c0],Sink,H.264-1,2 Full logs and packet dumps I will send directly to Robert and anyone else interested. |