public VirtualDisplayThread(int width, int height, int densityDpi,String path) { mWidth = width; mHeight = height; mDensityDpi = densityDpi; try { muxer = new MediaMuxer(path, OutputFormat.MUXER_OUTPUT_MPEG_4); } catch (IOException e) { Log.e("sam", e.getMessage(), e); } }