[Galaxy S III Original Android Development] thopiekar:
Hey [MENTION=5405215]forkbomb444[/MENTION],

I'm glad to say that WifiDirect works, but to get Miracast working it seems that some color format are not registered. I know that [MENTION=5161352]JustArchi[/MENTION] also had this problem in CM12.1 and I would say it is only needed to make additions to android_framework_av.

Regards

03-03 19:12:51.100 I/dnsmasq (8237): DHCPDISCOVER(p2p-p2p0-0) 56:e4:bd:1b:55:59
03-03 19:12:51.100 I/dnsmasq (8237): DHCPOFFER(p2p-p2p0-0) 192.168.49.46 56:e4:bd:1b:55:59
03-03 19:12:51.120 I/dnsmasq (8237): DHCPREQUEST(p2p-p2p0-0) 192.168.49.46 56:e4:bd:1b:55:59
03-03 19:12:51.120 I/dnsmasq (8237): DHCPACK(p2p-p2p0-0) 192.168.49.46 56:e4:bd:1b:55:59
03-03 19:12:52.485 I/NetworkSession(1978): incoming connection from 192.168.49.46:60129 (socket 22)
03-03 19:12:52.485 I/NetworkSession(1978): added clientSession 2
03-03 19:12:52.490 I/WifiDisplaySource(1978): We now have a client (2) connected.
03-03 19:12:52.565 D/ConnectivityService(2368): notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]
03-03 19:12:52.785 D/lights (2368): set_light_buttons: 2
03-03 19:12:52.910 I/WifiDisplaySource(1978): Picked video resolution 1280 x 720 p30
03-03 19:12:52.910 I/WifiDisplaySource(1978): Picked AVC profile 0, level 1
03-03 19:12:52.915 I/WifiDisplaySource(1978): Using PCM audio.
03-03 19:12:53.000 E/HDCP (1978): Unable to locate libstagefright_hdcp.so
03-03 19:12:53.000 E/WifiDisplaySource(1978): Failed to set HDCP observer.
03-03 19:12:53.000 E/WifiDisplaySource(1978): Unable to instantiate HDCP component. Not using HDCP after all.
03-03 19:12:53.425 I/Converter(1978): using audio bitrate of 128000 bps, video bitrate of 5000000 bps
03-03 19:12:53.430 E/OMXNodeInstance(1978): getParameter(37:SEC.AVC.Encoder, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
03-03 19:12:53.430 E/ACodec (1978): Encoder could not be configured to emit SPS/PPS before IDR frames. (err -2147483648)
03-03 19:12:53.430 E/ACodec (1978): [OMX.SEC.AVC.Encoder] configureCodec returning error -2147483648
03-03 19:12:53.430 E/ACodec (1978): signalError(omxError 0x80000000, internalError -2147483648)
03-03 19:12:53.430 W/ACodec (1978): Invalid OMX error 0x80000000
03-03 19:12:53.430 E/MediaCodec(1978): Codec reported err 0x80000000, actionCode 0, while in state 3
03-03 19:12:53.430 E/MediaCodec(1978): configure failed with err 0x80000000, resetting...
03-03 19:12:53.450 I/Converter(1978): We going to manually prepend SPS and PPS to IDR frames.
03-03 19:12:53.450 E/OMXNodeInstance(1978): getParameter(38:SEC.AVC.Encoder, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
03-03 19:12:53.450 W/ACodec (1978): do not know color format 0x7f000001 = 2130706433
03-03 19:12:53.450 W/ACodec (1978): do not know color format 0x7f000002 = 2130706434
03-03 19:12:53.450 W/ACodec (1978): do not know color format 0x7fc00002 = 2143289346
03-03 19:12:53.450 W/ACodec (1978): do not know color format 0x7f000003 = 2130706435
03-03 19:12:53.450 W/ACodec (1978): do not know color format 0x7f000789 = 2130708361
03-03 19:12:53.450 E/OMXNodeInstance(1978): setParameter(38:SEC.AVC.Encoder, ParamVideoIntraRefresh(0x6000006)) ERROR: UnsupportedIndex(0x8000101a)
03-03 19:12:53.450 E/ACodec (1978): Setting intra macroblock refresh mode (-1010) failed: 0x0
03-03 19:12:53.455 E/ACodec (1978): [OMX.SEC.AVC.Encoder] configureCodec returning error -1010
03-03 19:12:53.455 E/ACodec (1978): signalError(omxError 0xfffffc0e, internalError -1010)
03-03 19:12:53.455 E/MediaCodec(1978): Codec reported err 0xfffffc0e, actionCode 0, while in state 3
03-03 19:12:53.455 E/MediaCodec(1978): configure failed with err 0xfffffc0e, resetting...
03-03 19:12:53.480 E/PlaybackSession(1978): video converter returned err -1010
03-03 19:12:53.485 I/WifiDisplayController(2368): Lost RTSP connection with Wifi display due to error 1: EZCast-BD1B5559
03-03 19:12:53.485 I/WifiDisplayController(2368): Wifi display connection failed!
03-03 19:12:53.525 D/LiveDisplay(2368): Adjust display temperature to 5763K [r=1.0 g=0.95611274 b=0.9143707]
03-03 19:12:53.530 I/WifiDisplayController(2368): Lost RTSP connection with Wifi display due to error 1: EZCast-BD1B5559
03-03 19:12:53.530 I/WifiDisplayController(2368): Wifi display connection failed!
03-03 19:12:53.990 I/WifiDisplaySource(1978): We're stopped.
03-03 19:12:53.990 I/WifiDisplayController(2368): Retrying Wifi display connection. Retries left: 2
03-03 19:12:53.990 I/WifiDisplayController(2368): Stopped listening for RTSP connection on 192.168.49.1:7236 from Wifi display: EZCast-BD1B5559
03-03 19:12:53.995 I/WifiDisplayController(2368): Disconnecting from Wifi display: EZCast-BD1B5559
03-03 19:12:54.005 I/wpa_supplicant(2879): P2P-GROUP-REMOVED p2p-p2p0-0 GO reason=REQUESTED
03-03 19:12:54.005 I/wpa_supplicant(2879): p2p-p2p0-0: interface state ENABLED->DISABLED
03-03 19:12:54.010 D/TetherController(1973): untetherInterface(p2p-p2p0-0)
03-03 19:12:54.010 I/wpa_supplicant(2879): p2p-p2p0-0: AP-STA-DISCONNECTED 56:e4:bd:1b:55:59 p2p_dev_addr=56:e4:bd:1b:55:59
03-03 19:12:54.010 I/WifiDisplayController(2368): Disconnected from Wifi display: EZCast-BD1B5559
03-03 19:12:54.010 I/WifiDisplayController(2368): Connecting to Wifi display: EZCast-BD1B5559
03-03 19:12:54.015 I/wpa_supplicant(2879): AP-STA-DISCONNECTED 56:e4:bd:1b:55:59 p2p_dev_addr=56:e4:bd:1b:55:59
03-03 19:12:54.430 I/wpa_supplicant(2879): p2p-p2p0-0: AP-DISABLED
03-03 19:12:54.435 D/TetherController(1973): Stopping tethering services
03-03 19:12:54.435 I/dnsmasq (8237): exiting on receipt of SIGTERM
03-03 19:12:54.440 D/TetherController(1973): Tethering services stopped
03-03 19:12:54.440 D/CommandListener(1973): Clearing all IP addresses on p2p-p2p0-0
03-03 19:12:54.440 D/WifiP2pService(2368): Stopped Dhcp server
03-03 19:12:54.600 I/wpa_supplicant(2879): p2p-p2p0-0: CTRL-EVENT-DISCONNECTED bssid=3a:aa:3c:46:71:b9 reason=3 locally_generated=1
03-03 19:12:54.605 D/NetUtils(2368): android_net_utils_resetConnections in env=0x434057c8 clazz=0x5fc6b3fc iface=p2p-p2p0-0 mask=0x3
03-03 19:12:54.620 I/wpa_supplicant(2879): nl80211: deinit ifname=p2p-p2p0-0 disabled_11b_rates=0
03-03 19:12:54.850 I/WifiDisplayController(2368): Canceling connection to Wifi display: EZCast-BD1B5559
03-03 19:12:54.855 E/WifiP2pService(2368): Unhandled message { when=-838ms what=147497 obj=Device:
03-03 19:12:54.855 E/WifiP2pService(2368): deviceAddress: 56:e4:bd:1b:55:59
03-03 19:12:54.855 E/WifiP2pService(2368): primary type: null
03-03 19:12:54.855 E/WifiP2pService(2368): secondary type: null
03-03 19:12:54.855 E/WifiP2pService(2368): wps: 0
03-03 19:12:54.855 E/WifiP2pService(2368): grpcapab: 0
03-03 19:12:54.855 E/WifiP2pService(2368): devcapab: 0
03-03 19:12:54.855 E/WifiP2pService(2368): status: 4
03-03 19:12:54.855 E/WifiP2pService(2368): wfdInfo: null target=com.android.internal.util.StateMachine$SmHandler }
03-03 19:12:54.855 E/WifiP2pService(2368): Dropping connect requeset
03-03 19:12:54.855 E/WifiP2pService(2368): address: 56:e4:bd:1b:55:59
03-03 19:12:54.855 E/WifiP2pService(2368): wps: setup: 0
03-03 19:12:54.855 E/WifiP2pService(2368): BSSID: null
03-03 19:12:54.855 E/WifiP2pService(2368): pin: null
03-03 19:12:54.855 E/WifiP2pService(2368):
03-03 19:12:54.855 E/WifiP2pService(2368): groupOwnerIntent: 0
03-03 19:12:54.855 E/WifiP2pService(2368): persist: -2
03-03 19:12:54.860 I/WifiDisplayController(2368): Starting Wifi display scan.
03-03 19:12:54.860 I/WifiDisplayController(2368): Failed to cancel connection to Wifi display: EZCast-BD1B5559, reason=2
03-03 19:12:55.590 D/ConnectivityService(2368): notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]
03-03 19:13:01.645 D/ConnectivityService(2368): notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]
03-03 19:13:04.080 D/lights (2368): set_light_buttons: 1
03-03 19:13:04.190 D/audio_hw_primary(1978): select_output_device: AUDIO_DEVICE_OUT_SPEAKER
03-03 19:13:04.860 I/wpa_supplicant(2879): p2p0: P2P: Reject scan trigger since one is already pending
03-03 19:13:07.680 D/ConnectivityService(2368): notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]