summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-08-03 16:08:08 -0700
committerAndreas Huber <andih@google.com>2009-08-05 09:46:40 -0700
commitea03f4af10512521ad68f28dae7a2dea131dddbc (patch)
tree33dfc74124450381192fc37a01933113daf52493 /cmds
parent8d1668da94c1369f6d68e71007c3255336cb6b92 (diff)
downloadframeworks_base-ea03f4af10512521ad68f28dae7a2dea131dddbc.zip
frameworks_base-ea03f4af10512521ad68f28dae7a2dea131dddbc.tar.gz
frameworks_base-ea03f4af10512521ad68f28dae7a2dea131dddbc.tar.bz2
Recording/Export to .mp4/h.263 somewhat works on TI hardware.
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/record.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmds/stagefright/record.cpp b/cmds/stagefright/record.cpp
index d8db8b3..cd54958 100644
--- a/cmds/stagefright/record.cpp
+++ b/cmds/stagefright/record.cpp
@@ -114,8 +114,8 @@ int main(int argc, char **argv) {
assert(success);
sp<MetaData> enc_meta = new MetaData;
- // enc_meta->setCString(kKeyMIMEType, "video/3gpp");
- enc_meta->setCString(kKeyMIMEType, "video/mp4v-es");
+ enc_meta->setCString(kKeyMIMEType, "video/3gpp");
+ // enc_meta->setCString(kKeyMIMEType, "video/mp4v-es");
enc_meta->setInt32(kKeyWidth, width);
enc_meta->setInt32(kKeyHeight, height);
@@ -129,7 +129,8 @@ int main(int argc, char **argv) {
MPEG4Writer writer("/sdcard/output.mp4");
writer.addSource(enc_meta, encoder);
writer.start();
- sleep(120);
+ sleep(20);
+ printf("stopping now.\n");
writer.stop();
#else
encoder->start();