summaryrefslogtreecommitdiff
path: root/cmds/stagefright/stagefright.cpp
AgeCommit message (Collapse)Author
2012-08-24Use new surface flinger API.Jeff Brown
Change-Id: I594c6e15db5f617d2feaac1a65b5316daa3812d0
2012-04-27Fixed incorrect codec type in the output for profiles/levels in cmd stagefrightJames Dong
o related-to-bug: 6401068 Change-Id: Icdc2cfa37ed053f53d1466d8b068f1d9973ed82f
2012-04-27Add option to stagefright for writing decoded PCMMarco Nelissen
b/774846 Change-Id: I8edce3e7d60b3f56b4eb1ed75ca80285c5ae3972
2012-04-25Add profile/level dump for encoders in cmd stagefrightJames Dong
o related-to-bug: 6401068 Change-Id: I51e3eeb026aa75c4492d421f5f239dc9072a9c8b
2012-04-11Better error logging during meta data retrieval. Fixed the stagefrightAndreas Huber
commandline tool to open the file to extract thumbnails from itself since mediaserver may not have permission to open files. Change-Id: Iabe16b3248e9bb0f266b0866a8d2ccba2ab7d2a8 related-to-bug: 6321237
2012-03-24stagefright: remove dependency on skiaColin Cross
skia is only used to write a jpeg file, link directly to libjpeg instead. Change-Id: Iea8f4a2347c38328776541d2b74bcbdea3f62041
2012-02-27fix libgui header locationMathias Agopian
Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
2011-10-13NuPlayer is now taking on the task of streaming over RTSP.Andreas Huber
Change-Id: Ie204db8810807f1e7981959e34dc0149e5d9563a
2011-09-30Support for an MPEG2 Program Stream extractor.Andreas Huber
Change-Id: I606d87c278f72b22a5b6d7ee57bce6b02e280d41
2011-09-26Merge "Properly connect to surface flinger in our shell tools"Andreas Huber
2011-09-23Add an option to dump the raw stream to a file in the stagefright cmdline tool.Andreas Huber
Change-Id: Ie19eca2cdf162d6973037ec554ef5916243ea7d7
2011-09-20Properly connect to surface flinger in our shell toolsAndreas Huber
Also raise the layer to INT_MAX to float in front of the toolbar. Change-Id: I045a1c83924e6655f1734d15f2504b90312eec64
2011-07-22QueryCodecs() signature changeJean-Michel Trivi
Restore QueryCodecs() signature exactly as used by third-party libs. Add an alternative function to select HW only codecs. Change-Id: Ibb2cb4dd36fc0c6599eb93aa5751c216397e3b6f
2011-07-18Merge "Add option to query hardware decoders only"Jean-Michel Trivi
2011-07-18Add option to query hardware decoders onlyJean-Michel Trivi
Add an option to OMXCodec::QueryCodecs() to filter out software codecs. Update stagefright command line tool to list the roles of codecs. Change-Id: Icddb79118c30fe13cc3aea20f340174cc082c4e0
2011-07-13Include all supported mime types when querying decoder profile/level support.Andreas Huber
Change-Id: Ia1c930eee489bfebb482ac5079bd6ac9354532f2
2011-06-29SF transactions are now O(1) wrt IPC instead of O(N).Mathias Agopian
Change-Id: I57669852cbf6aabae244ea86940a08a5a27ffc43
2011-06-28New option in the stagefright commandline tool.Andreas Huber
Use '-S' to allocate decoder buffers from a surface Use '-T' to allocate decoder buffers from a surface texture Change-Id: Ib71ea53d0fd1b2def08bfeac2fd8bcbdc1938161
2011-06-22Reconstruct sync frame indication for content served by the MPEG2TSExtractorAndreas Huber
Strip data up to the first IDR frame if necessary. Change-Id: I4a096785eb1a17b7484983788e223d188454771d
2011-06-13Add an option to force to use HW codec in stagefright cmd toolJames Dong
Change-Id: If6c277dd5a3f7a0b62acd6721343618b0be085fc
2011-05-26Extract embedded cover art (aka poster frame) in mp4 filesJames Dong
Change-Id: Ic9421ee27b9aa3b27df00878b887de20f25d232b
2011-02-28Add the option '-S' to use surface allocated buffers in the stagefright ↵Andreas Huber
cmdline tool. Change-Id: Ic84eeed1679d6bf68c92de0e20d30e7a3c4d410f
2011-01-12Publish MediaMetadataRetriever.java as public APIJames Dong
o Removed setMode() methods and related mode constants o Removed some of the unused the metadata keys o Updated the javadoc o part of a multi-project change. bug - 2433195 Change-Id: I5ed167f1fd6a53cb143b7dc385b149431d434438
2010-12-06Squashed commit of the following:Andreas Huber
commit 9254c845d7c82976fd4b8be406ce4b17eeb0e119 Author: Andreas Huber <andih@google.com> Date: Fri Dec 3 15:26:12 2010 -0800 Remove obsolete code from the cached data source. Change-Id: I794b986ac8977cbc834dff189221a636ba564e36 commit 2ee33711064c58c53ba65ed9e63dd4b01ec2380e Author: Andreas Huber <andih@google.com> Date: Fri Dec 3 15:23:13 2010 -0800 LiveSource is dead, long live LiveSession. Change-Id: Ibcd0731ecf9c94f0b3e5db3d53d012d9da2a1c66 commit 9eabb2c3cd8571ab859bdeae0aa7f655c414d8fa Author: Andreas Huber <andih@google.com> Date: Fri Dec 3 12:49:31 2010 -0800 Respect explicitly signalled discontinuities. Change-Id: I3c0c16a2de7a99742d25db7d1b2ff0258de52271 commit 7f7f7b6b906b6ece6e4d43af7fd5f494e805c5e5 Author: Andreas Huber <andih@google.com> Date: Fri Dec 3 11:45:57 2010 -0800 Better protection against syncword emulation in AAC ADTS content. Change-Id: I867e80a4556dd46d24ab3e781177c248a5221719 commit fe765766582efcc350aed01135ea603576adccf6 Author: Andreas Huber <andih@google.com> Date: Fri Dec 3 09:15:59 2010 -0800 New implementation of http live driving code. Change-Id: I31ddf3d6a0d5929b121be704a2b9c3d6775f7737 Change-Id: Id8d1829c8fcb173756965013f848c1d426ef1048
2010-12-03Prepare for publishing MediaMetadataRetriever as public APIJames Dong
step one: o replaced captureFrame with getFrameAtTime o removed getMode bug - 2433195 Change-Id: I38a8cecef29014692f0b08b8818326e3ebb40a12
2010-11-22Squashed commit of the following:Andreas Huber
commit 0870f7bdd10a7cd36087d723d1957d8e1b967ca7 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 12:57:04 2010 -0800 set_surface_crop doesn't seem to work right yet, stop using it in the SoftwareRenderer. Change-Id: If0a24f78b7810a6cecaa82eb4f23d0f90c22cc42 commit 4767b52bee3a54ae117a8708d6832276a44e6a6a Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 11:14:57 2010 -0800 info->mMediaBuffer may still be NULL at this point... Change-Id: I25a71569015b1bb87f1ea7efff7588958774426f commit 0cef79874e1f1ddb10b7402177a87d3cffc7de92 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 10:55:12 2010 -0800 QCOM's YVU420 color format conversion has now been tested. Change-Id: I7fef4b642a928af15d42f006f7cdc107d5ff1d67 commit 84fe05a6c969ede0ce8a85a530e110afca07c7a7 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 09:59:50 2010 -0800 Removed remaining traces of suspend/resume. Proper reporting of video dimensions based on cropping rectangle. Change-Id: Ib238b80cbc1f19e7d312f2422eb5e9ab6b06b1bc commit 50970cdc837c5c498bcf0cb61b436196ca9e2ef7 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:11:06 2010 -0800 Revamped Software Renderer respects the crop rectangle. Removed obsolete ADRENO support code. Change-Id: I984cbc8a99c4d97e09e7d1b1292099c88b9ae535 commit 8abbc6a5608bff650f968540f24a2eab75f254ed Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:10:41 2010 -0800 The metadata retriever now respects the crop rectangle while capturing a video frame. Change-Id: Id3377176060086d16717f62c77ce26fabe899050 commit 2d42e4466609d304e88bd2cdd6eb7b297340cc21 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:09:50 2010 -0800 Changed ColorConverter APIs to be more general. Clients can now refer to crop rectangles in both source and destination. Change-Id: Ief151d736818396d0389ec04e7df5650e3ad7c04 commit 273184303d54a54febd3e9c3dd4df30507ea78b5 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 15:04:06 2010 -0800 The stagefright commandline tool now writes the extracted video frame to /sdcard/out.jpg Change-Id: Ieb2ab3fda7a7cd9294beccb8db0eed75096eeef4 commit 2d43390328cadf4ba94c1c3c02e4fb30baa29690 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 14:36:55 2010 -0800 The AVC software decoder now properly advertises the cropping rectangle. Change-Id: Idb7a8a7e2fde5740f0fc34b7e8c92eca2577104b commit 9a7ed23c2fac8ce19dce7a34a603acee945a89f6 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 13:40:39 2010 -0800 OMXCodec now signals a format change if the cropping rectangle changes. ...and puts the cropping info into its output format. Change-Id: I3ffbd8e877ba286fe06a82c536ef20d92548d2e2 commit efe0323947029df1c502599ccc288c8d676dfd31 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 11:29:39 2010 -0800 Stagefright's MetaData object now supports rectangle items. Change-Id: I5667bb5ee6622c76104b99fb57f60abb802a8504 Change-Id: I27cb78f2c5e0353f95fdfc5cb53991949ed75b70
2010-11-19Display AVC video sample profile and level for "stagefright" utilJames Dong
Change-Id: I04b3f67d162cf3827bc74ad98cd1e1a0f5f14172
2010-11-09Added a commandline option "-x" to the stagefright commandline tool.Andreas Huber
To display a histogram of decoding times and ideal frame rate distributions. Change-Id: Id8d70fd2960858c75f5f91ae9ebb9902ad5c37d3
2010-09-27Squashed commit of the following:Andreas Huber
commit 29a4d3effb05a2e074cb0693316ab1977baeb0b6 Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 12:01:32 2010 -0700 Fully working implementation of MPEG2TSWriter (for AAC and AVC sources). Change-Id: I8a32a47565b647bf6c078c520e39565e08ea0d84 commit f4dec4c3899f3be393508e180d6c07e249d3335e Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 10:36:31 2010 -0700 More reliable identification of MPEG2 transport streams. Don't keep scanning forever in case the stream does not have both audio and video tracks. Change-Id: Icc5b4e8be145b2805e8776559546a6818342aea7 commit 4fe3cc942f9b3d3cf54138b828c41214aa916dd2 Author: Andreas Huber <andih@google.com> Date: Mon Sep 27 08:23:39 2010 -0700 test code Change-Id: I16560a17661407d06497f99ff88230724bb898af commit 64d988b24f49f179a90fa677be11c823959e734b Author: Andreas Huber <andih@google.com> Date: Thu Sep 23 14:42:52 2010 -0700 First shot at supporting writing to an MPEG2 transport stream. Change-Id: Ie537939a99fa3ddc0c7661c47c18277584817c74 Change-Id: If78fd034af8f6e8ceac8dbeff96d5ecb3f6b96dc
2010-09-24Instead of just writing one track to the .mp4 file, write all of them (at ↵Andreas Huber
most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool. Change-Id: I67b287cf76546191f398939aabe4480d9e79a948
2010-09-23Proper sync-frame detection for sources that don't already provide it.Andreas Huber
Change-Id: Iafeee847b015c5cf6bec6dd5fac22a8d3e8cb78e
2010-09-16Make sure stagefright -o terminates even if we're using a raw audio source ↵Andreas Huber
(such as .wav pcm) Change-Id: Iec809df89e6b75706cf5b1ce21006c2e217e018f
2010-07-22Various changes to improve rtsp networking, reduce packet loss and adapt to ↵Andreas Huber
ALooper API changes. Change-Id: I110e19d5ce33e597add3ffbd3e3ff3815862396d
2010-07-21Add a seek test to the stagefright commandline tool.Andreas Huber
Change-Id: Ibf3517afa288fc4c7e2184c11bc7a63594f321df
2010-07-01Support for writing the extracted data to an .mp4 file in the stagefright ↵Andreas Huber
commandline tool. Change-Id: I972324a8fc9757e6e8116b0270ec0882106f8733
2010-06-21Make sure sine: is supported again in stagefright commandline tool.Andreas Huber
Change-Id: I703f1a8b7556543ef71b141dc8e38d8b82d8c6dc
2010-06-10Simplify the code in the stagefright commandline utility.Andreas Huber
Change-Id: Ia222b25ef12af34f6434421fd96b67eca800d1ab
2010-05-20Make the -o option actually terminate.Andreas Huber
Change-Id: I91b70ee5c3e1fc9b8bb645e219af296867692e65
2010-05-20Better handling of codec initialization failure in the player and thumbnail ↵Andreas Huber
extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize. Change-Id: I5cba02ee85a41e43c2623053de40f26e2cf2efe4 related-to-bug: 2699505
2010-04-13Better diagnostics in the stagefright commandline tool, support for playing ↵Andreas Huber
sine-tones using a filename of "sine:[samplingrate]", i.e. sine:44100. Support for playing audio through to the speakers by using "-o" in addition to "-a". related-to-bug: 2553359 Change-Id: Ic49eb89feb62474d9513bc21571e0e8fe3a15e0b
2010-04-02Coalesce multiple encoded AAC frames into a single input buffer on this ↵Andreas Huber
particular OMX codec to increase throughput significantly. Change-Id: I90c7db6656a53339c5d454336548c4f00d0d9064 related-to-bug: 2548426
2010-03-24QueryCodecs now returns the names of the software codecs (non-OpenMax) as well.Andreas Huber
Change-Id: Ic4cd61f4dd722fb0dda544ffaa5615e87e3a4d40 related-to-bug: 2541647
2010-03-16Properly use a long long literal to avoid under/overflow during fps computation.Andreas Huber
Change-Id: I04730c86d43d6192ded3e779631effda9dd06e63
2010-03-16HTTPDataSource must be connected before it is usable. Fix this in the ↵Andreas Huber
stagefright tool. Change-Id: I5313b2cb7839233d51b2d37a03b6598b0760c2e0
2010-03-10Extend stagefright tool to extract either album art or video frame.Andreas Huber
Change-Id: Iab50924e37a1aad057470a349c8f1a81858424e9
2010-02-17Better diagnostics for the stagefright tool and codec performance.Andreas Huber
related-to-bug: 2450938
2010-02-04When the extractor is not able to be created successfully, don't crashJames Dong
2010-01-14Upgrade for the stagefright commandline tool to support extracting ↵Andreas Huber
thumbnails and to optionally prefer software codecs.
2009-12-17Squashed commit of the following:Andreas Huber
commit 144b1c40e9cf08a584c50e1bef7ba3f287e81a4f Author: Andreas Huber <andih@google.com> Date: Wed Dec 16 09:28:23 2009 -0800 This H264 file shows a certain problem even better. commit 3245f1f3b7471975aeeb824a756c987abd610f55 Author: Andreas Huber <andih@google.com> Date: Wed Dec 16 09:20:08 2009 -0800 Using only the QA testfiles now. commit 074817eb3816c5dd70858a3594e3b92d799d873b Author: Andreas Huber <andih@google.com> Date: Tue Dec 15 16:17:39 2009 -0800 Yay, roles are back again now that the API is in place. commit 6d847e4932cc38301ae27cb7283b7f1553a95457 Author: Andreas Huber <andih@google.com> Date: Tue Dec 15 13:01:20 2009 -0800 Added commandline option for specifying the random seed for reproducable tests. commit 62ab37b26336eaa67e49791c41c996acb6acee3f Author: Andreas Huber <andih@google.com> Date: Mon Dec 14 10:53:27 2009 -0800 When issuing a seek it is important that only the first MediaSource::read call has the seek option. commit e77c46644b2fb6862bafa3569f7d304252074f1e Author: Andreas Huber <andih@google.com> Date: Mon Dec 7 16:39:07 2009 -0800 Make sure the tests are actually built, sp<OMXCodec> becomes sp<MediaSource> commit 6df56915bd55a9445b3c6f953d3cc251d81579b8 Author: Andreas Huber <andih@google.com> Date: Thu Dec 3 14:25:36 2009 -0800 Temporarily disable support for querying the roles of OMX components. commit 31bb26930df9e3658dea684cedb4b0f1a06a4a88 Author: Andreas Huber <andih@google.com> Date: Tue Dec 1 13:36:52 2009 -0800 Disregard EOS events, slightly change the way the EOS flag on output buffers is handled. commit 4c382fbc9aebee8197d5988d04378062809e7c48 Author: Andreas Huber <andih@google.com> Date: Tue Dec 1 09:37:24 2009 -0800 New random seek test for the codec tests. Fixed "sticky" end-of-output-buffers flag behaviour in OMXCodec. commit c762eac3e44309592b61a168d66e091cf609fa03 Author: Andreas Huber <andih@google.com> Date: Tue Nov 3 14:13:43 2009 -0800 Fix a typo. commit 50540a59b65c7d476b0193c7494cd75895e6ca6d Author: Andreas Huber <andih@google.com> Date: Tue Nov 3 09:48:35 2009 -0800 Some more fine tuning of the unit tests, make MPEG4Extractor less verbose. commit 1157a7e52a0636706caa235abe16d2ff8a0b8140 Author: Andreas Huber <andih@google.com> Date: Wed Oct 28 12:01:01 2009 -0700 Changes to the IOMX::listNodes API, this now returns the component's roles as well, unit tests now test all components in all supported roles by default. commit 30fbf2d8c6cb927689f7ba75eb550a81e9df488a Author: Andreas Huber <andih@google.com> Date: Mon Oct 26 09:45:26 2009 -0700 Initial check-in of unit tests for OMX components.
2009-12-10Don't count empty buffers when computing the frame rate.Andreas Huber