diff options
author | Andreas Huber <andih@google.com> | 2009-08-03 16:08:08 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-08-05 09:46:40 -0700 |
commit | bf37f3364804f521cc61845b1f1ce16fe133814b (patch) | |
tree | 2fd7bdde27d5e7daa6e4323edf9adc165e37c8b8 /cmds | |
parent | fd6444c51fb985d66ca9aae491759ce750bb173a (diff) | |
download | frameworks_av-bf37f3364804f521cc61845b1f1ce16fe133814b.zip frameworks_av-bf37f3364804f521cc61845b1f1ce16fe133814b.tar.gz frameworks_av-bf37f3364804f521cc61845b1f1ce16fe133814b.tar.bz2 |
Recording/Export to .mp4/h.263 somewhat works on TI hardware.
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/record.cpp | 7 |
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(); |