summaryrefslogtreecommitdiffstats
path: root/cmds/screenrecord
Commit message (Collapse)AuthorAgeFilesLines
* am 6a0fbc68: am a3c9d5c3: am 166776fb: Merge "Add missing includes."Elliott Hughes2015-01-291-0/+2
|\ | | | | | | | | * commit '6a0fbc68e203058e3b7d62e95d46f2415bc3ed95': Add missing includes.
| * am a3c9d5c3: am 166776fb: Merge "Add missing includes."Elliott Hughes2015-01-291-0/+2
| |\ | | | | | | | | | | | | * commit 'a3c9d5c3982591042c7c6cb5fb7c32fbd4765832': Add missing includes.
| | * Add missing includes.Elliott Hughes2015-01-281-0/+2
| | | | | | | | | | | | Change-Id: Ib697ce44243e7cb07aee60944238e0854d82e9de
* | | Remove filename based writer constructorsMarco Nelissen2014-12-101-1/+10
|/ / | | | | | | | | | | | | MediaPlayerService can't open files (it needs an already opened file descriptor), so these were just wasting space. Change-Id: I323044a6c1814a7bff952ed71b5c7792df2abf03
* | Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-044-4/+4
|/ | | | | | | | Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
* GLConsumer: Stop using default constructor paramsDan Stoza2014-06-242-2/+2
| | | | | | | | Removes the dependency on default constructor parameters for GLConsumer so that a different constructor prototype can safely be added. Change-Id: I0da924bbd4c141edbf305598c1be8bc575654680
* screenrecord: 64-bit compile warningsMark Salyzyn2014-06-193-20/+22
| | | | Change-Id: I708e48e24719b2c4bb023069164aafd4c2ad639b
* Move to dalvik.vm.lib.2 to force default to libartBrian Carlstrom2014-05-281-1/+1
| | | | | Bug: 14298175 Change-Id: Iff6940aba8accfec14e729d53b71d2ed7e6c5027
* am 4b7c5444: am e32106fd: screenrecord: Add raw frames output formatBenoit Goby2014-05-143-17/+24
|\ | | | | | | | | * commit '4b7c5444f8af79f1f3e04e09bd03b84dec26facf': screenrecord: Add raw frames output format
| * am e32106fd: screenrecord: Add raw frames output formatBenoit Goby2014-05-143-17/+24
| |\ | | | | | | | | | | | | * commit 'e32106fd5175afdf939ae397aece9caf378a4912': screenrecord: Add raw frames output format
| | * screenrecord: Add raw frames output formatBenoit Goby2014-05-133-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This works like the frames output format but without a header so that the output can be piped directly to mplayer: adb shell screenrecord --output-format=raw-frames - | mplayer -demuxer rawvideo -rawvideo w=320:h=240:format=rgb24 - Change-Id: Ib5ed508fdca3a5d63e973c5189b3677c2d92b43f
| * | am 21bde57f: Add frame dump outputAndy McFadden2014-05-128-87/+512
| |\ \ | | |/ | | | | | | | | | * commit '21bde57f0099fed5cca78d9357571dc015a63227': Add frame dump output
| | * Add frame dump outputAndy McFadden2014-05-128-87/+512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the ability to dump frames as RGB data with a minimal frame header. Only recommended for devices with small displays. Enable with "--output-format=frames". The "--raw" option is now selected with "--output-format=h264". Change-Id: I18d3d4a87cd056d7acf0658985a90dc5895dbfb6
| * | am 2d11a203: Provide raw H.264 output from screenrecordAndy McFadden2014-05-122-39/+116
| |\ \ | | |/ | | | | | | | | | * commit '2d11a2031b99db9b503a7ad7efd1f18606af4012': Provide raw H.264 output from screenrecord
| | * Provide raw H.264 output from screenrecordAndy McFadden2014-05-122-39/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds an experimental (undocumented) "--raw" flag. If set, we output an H.264 byte stream rather than a .mp4 file. If the filename is "-", we send the output to stdout. If stdout is a tty, we reconfigure it to avoid CRLF line termination over adb. Change-Id: I5193f6193c9c1a59f92eefad0ed399f24afbf6de
* | | am 3c782246: am b1d2b51c: am 761636f3: Merge "Do not force all command-line ↵Glenn Kasten2014-04-301-2/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | apps to be 32-bit only" * commit '3c782246d5ee9869f2167a00df748eac1b9e9153': Do not force all command-line apps to be 32-bit only
| * | Do not force all command-line apps to be 32-bit onlyGlenn Kasten2014-04-301-2/+0
| | | | | | | | | | | | | | | | | | | | | This is a partial revert of >Change-Id: I9ac557a8d02bbf6986a9b5c3cdce23d400b306a3 Change-Id: I214e1bd117dd40150ac5f7447f12c72c61f09a2f
* | | Merge "Remove deprecated BufferQueue constructor"Dan Stoza2014-03-184-14/+13
|\ \ \
| * | | Remove deprecated BufferQueue constructorDan Stoza2014-03-124-14/+13
| | | | | | | | | | | | | | | | | | | | Bug: 13415624 Change-Id: I7d98eb8e9201fd920552e7eab75da42a5e2c7dca
* | | | resolved conflicts for merge of 3c780188 to masterGlenn Kasten2014-03-141-0/+2
|\ \ \ \ | |/ / / |/| / / | |/ / Change-Id: Ic579d346c27ff05ea6444faaa60fa6caaec86fbf
| * | mediaserver and associated services are 32-bit onlyGlenn Kasten2014-03-121-0/+2
| | | | | | | | | | | | | | | | | | also 32-bit only command-line apps Change-Id: I9ac557a8d02bbf6986a9b5c3cdce23d400b306a3
| * | frameworks/av: Rename persist.sys.dalvik.vm.lib to allow new defaultBrian Carlstrom2014-01-301-1/+1
| |/ | | | | | | | | Bug: 12798969 Change-Id: I2db14a7ee28db2449ec6e2384ade21944284528d
| * Fix the help textAndy McFadden2013-12-111-2/+2
| | | | | | | | | | | | | | | | Pesky bloggers. (cherry-pick from Ia8677b054423db292a34e28337431b57804df259) Change-Id: Ia684fde52697ea78fca79de958ef8b31a50e68ba
| * screenrecord fixesAndy McFadden2013-12-115-12/+32
| | | | | | | | | | | | | | | | Fixes to issues identified during code review. (cherry-pick from I2203694acb5c0544878f64f4347d29ad1a0725c4) Change-Id: I58fcb5264fc17b26fac4b03f95d35262e9e199e2
| * Add "--bugreport" option to screenrecordAndy McFadden2013-12-1112-99/+8473
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The --bugreport option adds two visible features: (1) a timestamp overlay that (mostly) matches logcat, making it easier to match what appears in the video with what's in the log, and (2) an "info page" at the start of the video that shows the system configuration. Enabling this option adds an additional composition step, increasing the overhead of screenrecord. Depending on the device and circumstances, this may be unnoticeable or very pronounced. If --bugreport is not enabled, the overhead of screenrecord is unchanged. We also now track device orientation changes. This is currently detected by polling surfaceflinger, which is suboptimal. As a result, we detect the rotation too late, and get a weird mixed frame before the start of the animation for 90-degree changes. Also, allow the bit rate to be specified as e.g. "4M" for 4Mbps. Also, --rotate is now deprecated. Bug 11220305 Bug 11136964 (cherry pick from Ibb94b81d2f73547b95d7a47e027da75fab187a4f) Change-Id: I829a91aaca5ab82a07c14172d9e188ec38f14e57
* | Fix destructorsAndy McFadden2014-03-032-4/+8
| | | | | | | | | | | | | | Make destructors private -- only RefBase should be able to destroy instances of these. Change-Id: Iff52e226995fe5740a9dfc35af53dd6dd9d74501
* | Add frame dump outputAndy McFadden2014-02-268-87/+512
| | | | | | | | | | | | | | | | | | | | | | | | This adds the ability to dump frames as RGB data with a minimal frame header. Only recommended for devices with small displays. Enable with "--output-format=frames". The "--raw" option is now selected with "--output-format=h264". Bug 13140019 Change-Id: I61bee55cea97db3134a91e7ea06106783e5bf340
* | frameworks/av: Rename persist.sys.dalvik.vm.lib to allow new defaultBrian Carlstrom2014-01-301-1/+1
| | | | | | | | | | | | | | | | Bug: 12798969 (cherry picked from commit 3a38388447c54683fc0018bde284d4d22cb111a9) Change-Id: I6fdf6a45756a53f554bfc78504e37a40386aebab
* | Provide raw H.264 output from screenrecordAndy McFadden2014-01-072-39/+116
| | | | | | | | | | | | | | | | | | | | | | | | This adds an experimental (undocumented) "--raw" flag. If set, we output an H.264 byte stream rather than a .mp4 file. If the filename is "-", we send the output to stdout. If stdout is a tty, we reconfigure it to avoid CRLF line termination over adb. Bug 12239887 Change-Id: I00ceb628bd885916eaf4658ea7f08f620ad74c03
* | Fix the help textAndy McFadden2013-11-191-2/+2
| | | | | | | | | | | | Pesky bloggers. Change-Id: Ia8677b054423db292a34e28337431b57804df259
* | screenrecord fixesAndy McFadden2013-11-195-12/+32
| | | | | | | | | | | | Fixes to issues identified during code review. Change-Id: I2203694acb5c0544878f64f4347d29ad1a0725c4
* | Add "--bugreport" option to screenrecordAndy McFadden2013-11-1812-99/+8473
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | The --bugreport option adds two visible features: (1) a timestamp overlay that (mostly) matches logcat, making it easier to match what appears in the video with what's in the log, and (2) an "info page" at the start of the video that shows the system configuration. Enabling this option adds an additional composition step, increasing the overhead of screenrecord. Depending on the device and circumstances, this may be unnoticeable or very pronounced. If --bugreport is not enabled, the overhead of screenrecord is unchanged. We also now track device orientation changes. This is currently detected by polling surfaceflinger, which is suboptimal. As a result, we detect the rotation too late, and get a weird mixed frame before the start of the animation for 90-degree changes. Also, allow the bit rate to be specified as e.g. "4M" for 4Mbps. Also, --rotate is now deprecated. Bug 11220305 Bug 11136964 Change-Id: Ibb94b81d2f73547b95d7a47e027da75fab187a4f
* Rotate fallback sizeAndy McFadden2013-09-191-5/+9
| | | | | | | | | | If configuring the encoder for display-size recording fails, we drop back to 720p. This was done a bit too literally, and didn't look good in portrait mode. Rotate the fallback size as needed. Bug 10826876 Change-Id: Id3130471fc1467afa8bf91d75c9d4a49245253c3
* Make sure the encoder instance is safely release()'d before itsAndreas Huber2013-09-061-2/+22
| | | | | | | reference count drops to 0. Change-Id: I6601226e2754f17e964125cacf02dc02cfbf6231 related-to-bug: 10150263
* Start 'am' with exec()Andy McFadden2013-09-041-15/+55
| | | | | | | | | We were using system() to run 'am broadcast'. Switch to fork()+exec(). Bug 10606037 Change-Id: Ifae1a2b4f1914f015d09f2cac8cd0b1896d87a84
* Add time limit to screenrecordAndy McFadden2013-08-281-18/+45
| | | | | | | | | Recordings are now limited to 3 minutes. The time can be set lower with the --time-limit option. Bug 10529645 Change-Id: I6ac19b9da8d616d38262414c2e821d56efcec55d
* Notify the media scannerAndy McFadden2013-08-281-2/+36
| | | | | | | | | Use an "am broadcast" command to notify the media scanner that a new video file is available. Bug 10096103 Change-Id: I8261d81d96832969ebb9031a9766c1b1f2a569ed
* Merge "Another error check" into klp-devAndy McFadden2013-08-141-0/+4
|\
| * Another error checkAndy McFadden2013-08-141-0/+4
| | | | | | | | Change-Id: I01ed5c0c7dcb520732d2856859bced31df5fbbb5
* | Merge "Use destroyDisplay()" into klp-devAndy McFadden2013-08-141-10/+2
|\ \ | |/
| * Use destroyDisplay()Andy McFadden2013-08-141-10/+2
| | | | | | | | | | | | | | Use the new SurfaceComposerClient::destroyDisplay call to shut the virtual display down. Change-Id: I0225a44594abf427d386456622b23b01fdd1690f
* | Better error messageAndy McFadden2013-08-131-1/+14
|/ | | | | | | Attempt to create the output file before handing it to MediaMuxer, which doesn't report file-open failures in a useful way. Change-Id: Ie24ff577dd50e185b4eb72575684d23a46f38d3d
* Use screen dimensions as default video sizeAndy McFadden2013-08-021-12/+49
| | | | | | | | | | | | | | Instead of 720p, use the screen dimensions as the default video size. For example, a phone with a 768x1280 display would be recorded as a 768x1280 video when in portrait, or a 1280x768 video when in landscape. If the device is not able to record at that resolution, we fall back to 720p. Also, fixed a problem introduced by a buffer timestamp change. Change-Id: I7230ddb323c669ab07327f26df8d103c192c21d3
* Prototype screen recording commandAndy McFadden2013-07-232-0/+606
This records the screen contents as a movie. It works by feeding the output of a virtual display to the video/avc encoder. Recording continues until Ctrl-C is hit. Video only, no sound. Does not track screen rotations. Change-Id: I91d5c4e781792c740699b7a83590e846295b3617