From db15021226b02b960de91116106991f8ce86dec2 Mon Sep 17 00:00:00 2001 From: SeokHoon Lee Date: Wed, 24 Jan 2018 11:10:34 +0900 Subject: [PATCH] Add ini about mirroring in RPI3 - add new mirroing ini file for RPI3 target Signed-off-by: SeokHoon Lee Change-Id: Iebd0c41c5f9ed9463f2cfbcfa9296710b8f5e99f --- .../etc/multimedia/mmfw_wfd_sink.ini | 231 +++++++++++++++++++++ .../etc/multimedia/scmirroring_src.ini | 114 ++++++++++ 2 files changed, 345 insertions(+) create mode 100644 mmfw-sysconf-target-rpi3/etc/multimedia/mmfw_wfd_sink.ini create mode 100644 mmfw-sysconf-target-rpi3/etc/multimedia/scmirroring_src.ini diff --git a/mmfw-sysconf-target-rpi3/etc/multimedia/mmfw_wfd_sink.ini b/mmfw-sysconf-target-rpi3/etc/multimedia/mmfw_wfd_sink.ini new file mode 100644 index 0000000..9d78b2b --- /dev/null +++ b/mmfw-sysconf-target-rpi3/etc/multimedia/mmfw_wfd_sink.ini @@ -0,0 +1,231 @@ +[general] +; parameters for initializing gstreamer +; DEFAULT SET (--gst-debug=2,*wfd*:5) +gstparam1 = --gst-debug=2,*wfd*:5,*wfdtsdemux:1,*wfdrtpbuffer:1 +gstparam2 = +gstparam3 = +gstparam4 = +gstparam5 = + +; allowed timeout for changing pipeline state +state change timeout = 5; sec + +; 0: default value set by wfdrtspsrc element, other: user define value. +jitter buffer latency=10 + +; for retransmission request enable = yes, disable = no +enable retransmission = no + +; for reset basetime, enable = yes, disable = no +enable reset basetime = yes + +; Maximum number of nanoseconds that a buffer can be late before it is dropped by videosink (-1 unlimited) +video sink max lateness=20000000 + +; nanoseconds to be added to buffertimestamp by sink elements +sink ts offset=250000000 + +; if no, go asynchronously to PAUSED without preroll +audio sink async=no + +; if no, go asynchronously to PAUSED without preroll +video sink async=no + +; user agent +user agent = + +[debug] +; generating dot file representing pipeline state +; do export GST_DEBUG_DUMP_DOT_DIR=/tmp/ in the shell +generate dot = no + +; set property to wfdsrc plugin for dumping rtsp message +dump rtsp message = yes + +; enable tracing buffers using pad probe +trace buffers = no + +; enable tracing first buffer +trace first buffer = no + +; enable tracing buffers of wfdsrc +trace buffers of wfdsrc = no + +; enable dumping ts data (eg. /var/tmp/*.ts) +dump ts data = no + +; enable dumping rtp data (eg. /var/tmp/screenmirroring_sink_rtp.dump) +dump rtp data = no + + +[pipeline] +wfdsrc element = wfdsrc + +tsdemux element = wfdtsdemux + +audio hdcp element = + +aac parser element = aacparse + +aac decoder element = avdec_aac + +ac3 parser element = ac3parse + +ac3 decoder element = + +lpcm converter element = + +lpcm filter element = capsfilter + +audio resampler element = audioconvert + +audio volume element = + +audio sinkbin queue element = ;queue + +audio sink element = pulsesink + +video hdcp element = + +video h264 parser element = h264parse + +video h265 parser element = + +video h264 decoder element = avdec_h264 + +video h265 decoder element = + +video converter element = + +video filter element = + +video sink element = tizenwlsink + +video evas sink element = evaspixmapsink + + +[wfd audio codecs] +; 0x1: LPCM, 0x2: AAC, 0x4: AC3 +;default aac and LPCM +audio codec=0x3 + +audio latency=0x0 + +;0x1 : 48000khz, 0x2: 44100khz +audio sampling frequency=0x3 + +; 0x1:2 channels, 0x2:4 channels, 0x4:6channels, 0x8:8channels +audio channels=0x1 + + +[wfd video formats] +; 0x0:not support, 0x1:H264 +video codec=0x1 + +; 0x0:not supoort, 0x1: CHP, 0x2:CBP +video profile=0x1 + +video native resolution = 0x20 + +video cea support=0x84ab;0x194ab + +video vesa support=0x1;0x5555555 + +video hh support=0x555 + +; 0x1:base, 0x2:high +video profile=0x1 + +; 0x1:level_3_1, 0x2:level_3_2, 0x4:level_4, 0x8:level_4_1, 0x10:level_4_2 +video level=0x2 + +video latency=0x0 + +video vertical resolution=720 + +video horizontal resolution=1280 + +video minimum slicesize=0 + +video slice encoding params=200 + +video framerate control support=11 + + +[wfd hdcp content protection] +enable hdcp = no + +;0x0:none, 0x1:HDCP_2.0, 0x2:HDCP_2.1 +hdcp content protection=0x0 + +hdcp port no=0 + + +[wfd2 video formats] +;0x0:not support, 0x1:H264, 0x2:H265, 0x3:both +video codec=0x3 + +video native resolution = 0x20 + +video non transcoding support=1 + +[wfd2 h264 video format] +video cea support=0x194ab + +video vesa support=0x5555555 + +video hh support=0x555 + +video profile=0x1 + +video level=0x2 + +video latency=0x0 + +video vertical resolution=1080 + +video horizontal resolution=1920 + +video minimum slicesize=0 + +video slice encoding params=200 + +video framerate control support=0 + +[wfd2 h265 video format] +video cea support=394ab + +video vesa support=5555555 + +video hh support=555 + +; 0x1:WFD_H265_MAIN_PROFILE +video profile=0x1 + +; 0x1:WFD_H265_LEVEL_3_1 +video level=0x2 + +video latency=0x0 + +video vertical resolution=2360 + +video horizontal resolution=3840 + +video minimum slicesize=0 + +video slice encoding params=200 + +video framerate control support=0 + +[wfd2 audio codecs] +; 0x1: LPCM, 0x2: AAC, 0x4: AC3 +;default aac and LPCM +audio codec=0x3 + +;see mm_wfd_sink_wfd_enum.h +audio lpcm mode=0x3 + +audio aac mode=0x1 + +audio ac3 mode=0x1 + diff --git a/mmfw-sysconf-target-rpi3/etc/multimedia/scmirroring_src.ini b/mmfw-sysconf-target-rpi3/etc/multimedia/scmirroring_src.ini new file mode 100644 index 0000000..68103c5 --- /dev/null +++ b/mmfw-sysconf-target-rpi3/etc/multimedia/scmirroring_src.ini @@ -0,0 +1,114 @@ + +[general] + +; set default video source element +; 0: ximagesrc, 1: xvimagesrc, 2: camerasrc, 3: videotestsrc, 4:waylandsrc +videosrc element = 4 + +; set default video encoder element +video encoder element = omxh264enc + +disable segtrap = yes ; same effect with --gst-disable-segtrap + +mtu_size value = 1400 + +video converter element = + +; if yes. gstreamer will not update registry +skip rescan = yes + +; set default audio encoder element +audio encoder aac name = avenc_aac +audio encoder ac3 name = avenc_ac3 + +; set audio codec for source +; according to GstWFDAudioFormat +; 0x1: LPCM, 0x2: AAC, 0x4: AC3 +; default aac and LPCM +audio codec = 0x3 + +; set exynos audiosrc property +; exynosaudio device name = alsa_output.0.analog-stereo.monitor +exynosaudio device name = alsa_output.hw_0_0.monitor +audio properties name = props,media.role=loopback-mirroring + +exynosaudio buffer_time = 200000 +; set qcmsm audiosrc property +qcmsmaudio device name = hw:0,8 +qcmsmaudio buffer_time = 1000 + +audio latency_time = 10000 +audio do_timestamp = 0 + +; set video codec for source +; according to GstWFDVideoFormat +; 0x0: Not supportted, 0x1: H264 +; default H.264 +video codec = 0x1 + +; Video Resolutions supported need to be filled in 32 bits according to WFD spec +video resolution_supported = 0x00000001 + +; Bitrate range for different resolutions +; Resolution Set 1: default +; Resolution Set 2: 1920 x 1080 +; Resolution Set 3: 1280 x 720 +; Resolution Set 4: 960 x 540 +; Resolution Set 5: 854 x 480 +; Resolution Set 6: 640 x 360 +; Resolution Set 7: 720 Remote Touch +; UDP bitrate settings +INIT_UDP_resolution_set_1 = 1048576 +MIN_UDP_resolution_set_1 = 838861 +MAX_UDP_resolution_set_1 = 1572864 + +INIT_UDP_resolution_set_2 = 5242880 +MIN_UDP_resolution_set_2 = 3670016 +MAX_UDP_resolution_set_2 = 6291456 + +INIT_UDP_resolution_set_3 = 2621440 +MIN_UDP_resolution_set_3 = 1572864 +MAX_UDP_resolution_set_3 = 3145728 + +INIT_UDP_resolution_set_4 = 2621440 +MIN_UDP_resolution_set_4 = 1572864 +MAX_UDP_resolution_set_4 = 3145728 + +INIT_UDP_resolution_set_5 = 838861 +MIN_UDP_resolution_set_5 = 314573 +MAX_UDP_resolution_set_5 = 1048576 + +INIT_UDP_resolution_set_6 = 838861 +MIN_UDP_resolution_set_6 = 314573 +MAX_UDP_resolution_set_6 = 838861 + +INIT_UDP_resolution_set_7 = 1572864 +MIN_UDP_resolution_set_7 = 838861 +MAX_UDP_resolution_set_7 = 1572864 + + +; Native resolution supported CEA resolution=0, VESA resolution=1, HH resolution=2 +video native_resolution = 0 + +; HDCP encryption +encryption HDCP_enabled = 1 + +; UIBC Capability +uibc UIBC_GEN_capability = 15 + +; parameters for initializing gstreamer +gstparam1 = +gstparam2 = +gstparam3 = +gstparam4 = +gstparam5 = + +; generating dot file representing pipeline state +generate dot = no + +; parameter for clock provide in audiosink +provide clock = yes + +;dumping ts stream to file +dump ts = 0 + -- 2.7.4