Negotiated Codec failed H264

62 views
Skip to first unread message

Carlos Antonio Perea Gómez

unread,
Dec 10, 2019, 12:08:30 PM12/10/19
to Android-x86
Hi guys, 

I have the following issue:

I am running androidx86 on a vm, and I am testing a self-written application to stream video encoded with H264.

With a more generic codecs in the SetSendParameters i get VP8/9 negotiated. If I narrow down the request to H264 it fails to negotiate. 

I can see codec is installed:

12-10 16:30:30.618 12644 23027 I CPM.ConnectActivity: Codec info: Name OMX.google.h264.encoder, Encoder true, Supports [video/avc]


With generic request (including VP8, VP9): 


12-10 16:31:19.938 12644 24866 I webrtc_video_engine.cc: [1/2] (line 716): SetSendParameters: {codecs: [VideoCodec[102:H264], VideoCodec[127:H264], VideoCodec[125:H264], VideoCodec[108:H264], VideoCodec[96:VP8], VideoCodec[97:rtx], VideoCodec[98:VP9], VideoCodec[99:rtx], VideoCodec[100:VP9], VideoCodec[101:rtx], VideoCodec[122:rtx], VideoCodec[121:rtx], VideoCodec[107:rtx], VideoCodec[109:rtx], VideoCodec[124:red], VideoCodec[120:rtx], VideoCodec[123:ulpfec]], conference_mode: no, extensions: [{uri: urn:ietf:params:rtp-hdrext:toffset, id: 14}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time, id: 2}, {uri: urn:3gpp:video-orientation, id: 13}, {uri: http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01, id: 3}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/playout-delay, id: 12}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/video-content-type, id: 11}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/video-timing, id: 7}, {uri: http://tools.ietf.org/html/draft-ietf
12-10 16:31:19.938 12644 24866 I webrtc_video_engine.cc: [2/2] -avtext-framemarking-07, id: 8}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/color-space, id: 9}, {uri: urn:ietf:params:rtp-hdrext:sdes:mid, id: 4}, {uri: urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id, id: 5}, {uri: urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id, id: 6}], extmap-allow-mixed: false, max_bandwidth_bps: -1, mid: 0}
12-10 16:31:19.938 12644 24866 I webrtc_video_engine.cc: (line 661): WebRTC-FlexFEC-03 field trial is not enabled.
12-10 16:31:19.938 12644 24866 I webrtc_video_engine.cc: (line 724): Negotiated codec: VideoCodec[96:VP8]
12-10 16:31:19.938 12644 24866 I webrtc_video_engine.cc: (line 724): Negotiated codec: VideoCodec[98:VP9]

With H.264 only request:

12-10 15:18:18.975 12644 2948 I channel.cc: (line 1087): Setting remote video description
12-10 15:18:18.975 12644 2948 I webrtc_video_engine.cc: [1/2] (line 716): SetSendParameters: {codecs: [VideoCodec[96:H264], VideoCodec[98:H264], VideoCodec[100:H264], VideoCodec[127:H264], VideoCodec[97:rtx], VideoCodec[99:rtx], VideoCodec[101:rtx], VideoCodec[123:rtx], VideoCodec[125:red], VideoCodec[122:rtx], VideoCodec[124:ulpfec]], conference_mode: no, extensions: [{uri: urn:ietf:params:rtp-hdrext:toffset, id: 2}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time, id: 3}, {uri: urn:3gpp:video-orientation, id: 4}, {uri: http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01, id: 5}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/playout-delay, id: 6}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/video-content-type, id: 7}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/video-timing, id: 8}, {uri: http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07, id: 10}, {uri: http://www.webrtc.org/experiments/rtp-hdrext/color-space, id: 12}, {uri: urn:ietf:params:r
12-10 15:18:18.975 12644 2948 I webrtc_video_engine.cc: [2/2] tp-hdrext:sdes:mid, id: 9}, {uri: urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id, id: 13}, {uri: urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id, id: 14}], extmap-allow-mixed: false, max_bandwidth_bps: -1, mid: 0}
12-10 15:18:18.975 12644 2948 E webrtc_video_engine.cc: (line 655): No video codecs supported.
12-10 15:18:18.975 12644 2949 E peer_connection.cc: (line 5716): Failed to set remote video description send parameters. (INVALID_PARAMETER)
12-10 15:18:18.975 12644 2949 E peer_connection.cc: (line 2580): Failed to set remote offer sdp: Failed to set remote video description send parameters.

What I am missing here? 


Thanks!!! 

Carlos
Reply all
Reply to author
Forward
0 new messages