<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=B2G%2FQA%2FManual_Test%2FVideo_Capture</id>
	<title>B2G/QA/Manual Test/Video Capture - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=B2G%2FQA%2FManual_Test%2FVideo_Capture"/>
	<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=B2G/QA/Manual_Test/Video_Capture&amp;action=history"/>
	<updated>2026-04-08T06:28:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=B2G/QA/Manual_Test/Video_Capture&amp;diff=1112597&amp;oldid=prev</id>
		<title>Npark: /* Recording User Actions on Device */ link added</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=B2G/QA/Manual_Test/Video_Capture&amp;diff=1112597&amp;oldid=prev"/>
		<updated>2016-01-13T19:58:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Recording User Actions on Device: &lt;/span&gt; link added&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:58, 13 January 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Recording User Actions on Device ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Recording User Actions on Device ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since the implementation of [https://bugzilla.mozilla.org/show_bug.cgi?id=1144103 Bug 1144103], it has been made possible to use adb screenrecord command on &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fxos &lt;/del&gt;devices that have kitkat or later build.  In python gaiatest, this has been implemented in [https://bugzilla.mozilla.org/show_bug.cgi?id=1237069 Bug 1237069].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since the implementation of [https://bugzilla.mozilla.org/show_bug.cgi?id=1144103 Bug 1144103], it has been made possible to use &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[http://developer.android.com/tools/help/shell.html#screenrecord &amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;adb screenrecord&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;] &lt;/ins&gt;command on &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FxOS &lt;/ins&gt;devices that have kitkat or later build.  In python gaiatest, this has been implemented in [https://bugzilla.mozilla.org/show_bug.cgi?id=1237069 Bug 1237069].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In order to perform video capture, the &amp;#039;&amp;#039;&amp;#039;layers.screen-recording.enabled&amp;#039;&amp;#039;&amp;#039; preference need to be set to &amp;#039;&amp;#039;&amp;#039;True&amp;#039;&amp;#039;&amp;#039;.  Then, with the adb installed and the device connected to pc via USB, one can issue a &amp;#039;&amp;#039;&amp;#039;&amp;#039;adb shell screenrecord /sdcard/&amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; command to start the recording.  Press &amp;#039;&amp;#039;&amp;#039;Ctrl-c&amp;#039;&amp;#039;&amp;#039; to stop recording.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;In order to perform video capture, the &amp;#039;&amp;#039;&amp;#039;layers.screen-recording.enabled&amp;#039;&amp;#039;&amp;#039; preference need to be set to &amp;#039;&amp;#039;&amp;#039;True&amp;#039;&amp;#039;&amp;#039;.   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;Then, with the adb installed and the device connected to pc via USB, one can issue a &amp;#039;&amp;#039;&amp;#039;&amp;#039;adb shell screenrecord /sdcard/&amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; command to start the recording.   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;Press &amp;#039;&amp;#039;&amp;#039;Ctrl-c&amp;#039;&amp;#039;&amp;#039; to stop recording.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Then, pull the captured video file from the device via the command &amp;#039;&amp;#039;&amp;#039;&amp;#039;adb pull /sdcard/&amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039; &amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Then&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pull the captured video file from &lt;/del&gt;the device &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;via &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;command &amp;#039;&amp;#039;&amp;#039;&amp;#039;adb pull /sdcard/&amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039; &amp;#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Please note that the maximum recording time is 180 seconds&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and currently &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FxOS &lt;/ins&gt;device &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;only supports &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;framerate of 15fps.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Following bash script automates above steps.  Save below script, chmod +x it, and execute to use screenrecord command as well.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Following bash script automates above steps.  Save below script, chmod +x it, and execute to use screenrecord command as well.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Npark</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=B2G/QA/Manual_Test/Video_Capture&amp;diff=1112594&amp;oldid=prev</id>
		<title>Npark: video capture of UI</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=B2G/QA/Manual_Test/Video_Capture&amp;diff=1112594&amp;oldid=prev"/>
		<updated>2016-01-13T19:52:40Z</updated>

		<summary type="html">&lt;p&gt;video capture of UI&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Recording User Actions on Device ==&lt;br /&gt;
Since the implementation of [https://bugzilla.mozilla.org/show_bug.cgi?id=1144103 Bug 1144103], it has been made possible to use adb screenrecord command on fxos devices that have kitkat or later build.  In python gaiatest, this has been implemented in [https://bugzilla.mozilla.org/show_bug.cgi?id=1237069 Bug 1237069].&lt;br /&gt;
&lt;br /&gt;
In order to perform video capture, the &amp;#039;&amp;#039;&amp;#039;layers.screen-recording.enabled&amp;#039;&amp;#039;&amp;#039; preference need to be set to &amp;#039;&amp;#039;&amp;#039;True&amp;#039;&amp;#039;&amp;#039;.  Then, with the adb installed and the device connected to pc via USB, one can issue a &amp;#039;&amp;#039;&amp;#039;&amp;#039;adb shell screenrecord /sdcard/&amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039; command to start the recording.  Press &amp;#039;&amp;#039;&amp;#039;Ctrl-c&amp;#039;&amp;#039;&amp;#039; to stop recording.&lt;br /&gt;
&lt;br /&gt;
Then, pull the captured video file from the device via the command &amp;#039;&amp;#039;&amp;#039;&amp;#039;adb pull /sdcard/&amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039; &amp;#039;&lt;br /&gt;
&lt;br /&gt;
Following bash script automates above steps.  Save below script, chmod +x it, and execute to use screenrecord command as well.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# source borrowed from http://adventuresinqa.com/2015/02/04/android-screen-recording-using-adb/&lt;br /&gt;
&lt;br /&gt;
# pull pref, and push pref with screenrecoding enabled if not already present&lt;br /&gt;
PREFS_JS=$(adb shell echo -n &amp;quot;/data/b2g/mozilla/*.default&amp;quot;)/prefs.js&lt;br /&gt;
PREF_LINE=&amp;#039;user_pref(&amp;quot;layers.screen-recording.enabled&amp;quot;, true);&amp;#039;&lt;br /&gt;
&lt;br /&gt;
if [ -z &amp;quot;$1&amp;quot; ]&lt;br /&gt;
	then&lt;br /&gt;
	echo &amp;quot;Please provide the video filename&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	echo &amp;quot;Pulling preferences: $PREFS_JS&amp;quot;&lt;br /&gt;
	adb pull $PREFS_JS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	if grep &amp;quot;$PREF_LINE&amp;quot; prefs.js&lt;br /&gt;
		then&lt;br /&gt;
	 	echo &amp;quot;Pref is already set.&amp;quot;&lt;br /&gt;
	 else&lt;br /&gt;
	 	echo &amp;quot;Pref is not set, setting and restarting...&amp;quot;&lt;br /&gt;
	 	echo &amp;quot;$PREF_LINE&amp;quot; &amp;gt;&amp;gt; prefs.js&lt;br /&gt;
	 	adb shell stop b2g&lt;br /&gt;
	 	adb push prefs.js $PREFS_JS&lt;br /&gt;
	 	adb shell start b2g&lt;br /&gt;
	fi&lt;br /&gt;
&lt;br /&gt;
	# start recording&lt;br /&gt;
	adb shell screenrecord /sdcard/$1.mp4 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
	# Get its PID&lt;br /&gt;
	PID=$!&lt;br /&gt;
&lt;br /&gt;
	# Upon a key press&lt;br /&gt;
	read -p &amp;quot;Press [Enter] to stop recording...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Kills the recording process&lt;br /&gt;
	kill $PID&lt;br /&gt;
&lt;br /&gt;
	# Wait for 3 seconds for the device to compile the video&lt;br /&gt;
	sleep 3&lt;br /&gt;
&lt;br /&gt;
	# Download the video&lt;br /&gt;
	adb pull /sdcard/$1.mp4&lt;br /&gt;
&lt;br /&gt;
	# Delete the video from the device&lt;br /&gt;
	adb shell rm /sdcard/$1.mp4&lt;br /&gt;
&lt;br /&gt;
	# Kill background process incase kill PID fails&lt;br /&gt;
	trap &amp;quot;kill 0&amp;quot; SIGINT SIGTERM EXIT&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Npark</name></author>
	</entry>
</feed>