I can record videos from iphone but not from ipad, so it's a very strange bug
After reading tiziano-faion's comments above, I went back and ran similar test recordings for an iPad Air 2 (iOS v10.3.1) and an iPad Pro (iOS v10.3.1). In both cases I was able to record device screens in the QT X Player app on my iMac (MacOS v10.12.4) without issue. Based on my results and the various postings of others, I suspect the real problem here is most likely a software conflict issue rather than a generic operating system "bug." I.e., I suspect some app or collection of apps installed on certain iOS devices is taking control of or preventing access to iOS device routines required by the MacOS QT X Player app for recording.
iPad Air 2 Test Results:
URL for Test Video: http://downloads.walker4.me/MyDownloads/iPadAir2QTXRecordingTest.mov
iPad Pro Test Results:
URL for Test Video: http://downloads.walker4.me/MyDownloads/iPadProRecordingTest.mov
There are many ways to perform such tests. In my case, if I were having problems similar to tiziano-faion's, I would compare the apps installed on my iPhone against those installed on the iPad. Since I could infer that none of the apps on the iPhone is causing a problem, I would concentrate on running "conflict" tests on any remaining third-party apps installed on the iPad but not installed on the iPhone. I.e., I would temporarily remove/delete these apps from the iPad, reset/restart the iPad, and again try making a test recording. If iOS device recording is working again, then you may assume one (or more) of the removed apps was causing the problem. By reinstalling and retesting recording capabilities one app at a time, you should be able to determine which app or collection of apps is causing the problem.