summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
Commit message (Collapse)AuthorAgeFilesLines
* Fix media.player dumpsys to output open/mapped files correctly. Bug 2866669.Dave Sparks2010-09-271-2/+4
| | | | | | | | | The dump function whitelists several directories as filters to the output. The mount point changed for SD card in Froyo, and we started filtering files that were open on the SD card. This fix changes the filter for the SD card, and adds the directory for data files as well. Change-Id: I61b67c3d11d93dbd530e8b3566000e79bc037137
* Reverse the default setting of media.stagefright.enable-{rtsp,record} in ↵Andreas Huber2010-08-302-4/+4
| | | | | | | preparation for building without opencore. Change-Id: I1ca6bd8faba0185f9694f9dc04d2b3e6a7ab5ac3 related-to-bug: 2370115
* Runtime dump support for MediaWriterJames Dong2010-08-231-2/+10
| | | | Change-Id: I10b2c474de612ee4cef4b7c9eae2ee1dd8c2e895
* setParamMaxFileDurationUs should allow zero time input as per API of ↵Nipun Kwatra2010-08-201-1/+5
| | | | | | | | | | setMaxDuration. according to MediaRecorder::setMaxDuration documentation we should disable duration limit when zero or negative time is passed. Currently setParamMaxFileDurationUs was treating zero/negative as an error case. Fixed that. Change-Id: I468c3bcc74cb5a34ee3e172cef5147550d6be096
* Make MediaWriter stop and pause return errors if necessaryJames Dong2010-08-191-2/+3
| | | | | | | | | | | o Make the API consistent with SF framework, which the MediaSource provides a return status for stop o Also, helps to convey errors that occurred right when a premature stop() is called, leading to a potentially mal-formed output file. Change-Id: I52a932345f38570fdf8ea04d67d73dd94ccd30ef
* Change the default time scale for audio/video track during recordingJames Dong2010-08-161-6/+12
| | | | | | | | | | | and reduce rounding errors in calculating the sample duration - Default time scale for tracks other than audio is set to 90000. - Audio track by default uses the audio sampling rate as the time scale. - Default movie time scale remains to be 1000. - The default time scale values will be overwritten by a user-supplied value if exits. Change-Id: I81b40ed0626ea45e9fd24a89e21a2c5a4a2c3415
* Fix all fd leaks in authoring engineJames Dong2010-08-111-5/+5
| | | | Change-Id: I17798543f9dd41cc8bef6f6086e66932f9f97be8
* Support for Gtalk video, includes AMR/H.263 assembler and packetization ↵Andreas Huber2010-08-043-5/+54
| | | | | | support, extensions to MediaRecorder to stream via RTP over a pair of UDP sockets as well as various fixes to the RTP implementation. Change-Id: I95b8dd487061add9bade15749e563b01cd99d9a6
* Replace CHECK with a failure return value when mCamera->setParameters() failsJames Dong2010-08-031-1/+7
| | | | | | | | if the camera is locked by someone else. bug - 2827892 Change-Id: I217d4a00f04ebd57b557d3faef28787c14f23ea0
* Merge "Lower the lower bound for max file duration check" into gingerbreadJames Dong2010-07-301-1/+1
|\
| * Lower the lower bound for max file duration checkJames Dong2010-07-301-1/+1
| | | | | | | | | | | | - This fixed a CTS test where 200 ms is being used Change-Id: Ib598b7b94be54e98a96703c58c5f244bc379cf7d
* | resolved conflicts for merge of 27eecb70 to gingerbreadJean-Baptiste Queru2010-07-302-2/+2
|\ \ | |/ |/| | | Change-Id: If064f2f4950fc1a4ff38e6927fe2120af76b26f1
| * fix inaccurate copyrightsJean-Baptiste Queru2010-07-292-2/+2
| | | | | | | | Change-Id: I33b0f68f2da34ca4728211d83159cf32a127f6dd
* | Interleave the audio and video by defaultJames Dong2010-07-281-2/+4
| | | | | | | | | | | | | | | | | | - default interleave duration is set to 1 second This can dramatically reduce the memory usage by the MP4 file writer. Change-Id: Ia3ff202cabfcd2d3f183065d31e4596617c2dded
* | Added support for auxiliary audio effects to AudioTrack and MediaPlayer.Eric Laurent2010-07-212-2/+52
| | | | | | | | | | | | | | | | Added methods to AudioTrack and MediaPlayer java classes to enable use of auxiliary audio effects. The effect can be attached and detached by specifying its ID and the send level controlled. Change-Id: Ie74ff54a453096a742688476f612ce355543b6f3
* | Progress status notificationJames Dong2010-07-202-23/+0
| | | | | | | | | | | | - Keep track of per-track progress Change-Id: Ibd36f0e8c78581928c8aa2f5e23c5e7e0615c2cc
* | Support user-supplied timescales for authoringJames Dong2010-07-142-14/+80
| | | | | | | | | | | | - also, change all the real time unit to microseconds in MPEG4Writer Change-Id: I260f512f2eb670ade7b8858a56335a5d639de756
* | Initial checkin for software AVC encoderJames Dong2010-07-131-1/+3
| | | | | | | | | | | | | | | | | | | | - Since the software encoder assumes the input is YUV420 planar, color conversion needs to be added when the input color format does not meet the requirement. With this patch, I only added a single color conversion from YUV420 semi planar to YUV420 planar. We can add more as we go. Change-Id: If8640c9e5a4f73d385ae9bb2022e57f7f62b91b9
* | Add runtime dumpsys support for media recorder clientJames Dong2010-07-085-14/+89
| | | | | | | | Change-Id: I4c8a81720f3be2db54678a7e84fe12849255046b
* | Merge "Added Visualizer effect." into gingerbreadEric Laurent2010-07-072-125/+0
|\ \
| * | Added Visualizer effect.Eric Laurent2010-07-072-125/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The visualizer enables application to retrieve part of the currently playing audio for visualization purpose. It is not an audio recording interface and only returns partial and low quality audio content as a waveform or a frequency representation (FFT). Removed temporary hack made in MediaPlayer for animated wall papers based on audio visualization (snoop() method. This commit also includes a change in AudioEffect class: - the enable()/disable() methods have been replaced bya more standard setEnabled() method. - some fixes in javadoc Change-Id: Id092a1340e9e38dae68646ade7be054e3a36980e
* | | Allow application to set two more encoding paramters: video profile and levelJames Dong2010-07-072-0/+42
| | | | | | | | | | | | Change-Id: I673e681cefe184d5c556c612c54600a24a2143e5
* | | Refactor Stagefright::StartMPEG4Recording()James Dong2010-07-012-152/+186
| | | | | | | | | | | | | | | | | | - Also, better error handling Change-Id: Ic18d08dc6489adf92c6a588efa4baca66429b175
* | | Added encoding parameters set up for H263 video encoderJames Dong2010-06-291-17/+95
|/ / | | | | | | | | | | | | | | Also: - Allowed start() call when encoder already starts and stop() call when encoder has not started yet - Handled default value for audio/video sources/encoders and file output format Change-Id: I03b2f7d3cf570baa0fd011a8c0ad200f2f2a5da1
* | Separate MediaRecorderClient with MediaPlayerClientJames Dong2010-06-284-5/+5
| | | | | | | | | | | | | | | | | | | | - An alternative would be to define a common base class that both MediaRecorderClient and MediaPlayerClient can derive. But since the common code, onTransact() and notify() uses some Binder code, having a common base class may not gain us too much in terms of code reuse. Change-Id: Ibc06720278ad173fceacff3d267b7060856c6316
* | Provide progress status report during authoringJames Dong2010-06-252-16/+75
| | | | | | | | | | | | | | | | | | - Track either the number of A/V frames authored, or the time elapsed - Track the completion of the authoring - Add multiple camera support for authoring by accepting a camera id parameter - Set file type based on the OUTPUT_FORMAT requested Change-Id: I0f9d31b3b7a8fa43eb53f572410fb0ebd4fa0bb7
* | Enable passing parameters to the MediaWriter at runtime (at start() call).James Dong2010-06-252-4/+24
| | | | | | | | | | | | | | | | | | | | - estimate the moov box size for mp4 file writer based on the file size/duration limit and target bit rate. - can switch to use 64 bit file offset at runtime rebased Change-Id: Ibbe1f57e91ab2605820d5d96e8048d11e5559c53
* | Track maximum amplitude and fix getMaxAmplitude()James Dong2010-06-242-1/+9
| | | | | | | | | | | | - only start to track the max amplitude after the first call to getMaxAmplitude() Change-Id: I64d3d9ca0542202a8535a211425e8bccceca50fc
* | Remove most stagefright property overrides, remove VorbisPlayer and ↵Andreas Huber2010-06-238-848/+8
| | | | | | | | | | | | | | VorbisMetadataRetriever as this functionality is now provided by stagefright. Change-Id: Ieafe75a4550c273ad59b4518d7cd4c0fce0f7cce related-to-bug: 2370115
* | Added support for audio sessions in MediaPlayer and AudioTrack.Eric Laurent2010-06-222-19/+36
| | | | | | | | | | | | Audio sessions are used to associate audio effects to particular instances (or groups) of MediaPlayers or AudioTracks. Change-Id: Ib94eec43241cfcb416590f435ddce7ab39a07640
* | Check and clip some video encoding parameters against media profiles before ↵James Dong2010-06-172-0/+82
| | | | | | | | | | | | passing them to video encoder Change-Id: I69e0e7411806a4ece6c0bf0e02c74eaaf48a17ac
* | Remove hard-coded number of audio channels in AudioSourceJames Dong2010-06-141-1/+1
| | | | | | | | Change-Id: I5f362252c25e2251bbfa9818b711ee23b4975248
* | Initial checkin for pause and resume controlJames Dong2010-06-112-0/+9
| | | | | | | | Change-Id: Ibdcf7bea5fb66baa81878704ba4091dfcfe382ee
* | Remove the lock/unlock workaround from CameraServiceJames Dong2010-06-091-8/+17
| | | | | | | | | | | | bug - 2677772 Change-Id: I7c996daad8b3bfc89e9fa2d655dc18c9a5c68f2f
* | Remove some hard-coded encoding parametersJames Dong2010-06-082-2/+33
| | | | | | | | Change-Id: I7a8ccd5d57891a6a585c8da2ee53acb094955913
* | Initial checkin of preliminary rtsp support for stagefright.Andreas Huber2010-06-071-2/+7
| | | | | | | | Change-Id: I0722aa888098c0c1361c97a4c1b123d910afc207
* | Properly handle start code in H264/AVC encoder outputJames Dong2010-05-201-0/+1
| | | | | | | | | | | | | | | | - Some H264/AVC encoder output start code in each output buffer, and others don't. This patch always strips the start code first so that the sample contains the correct size. - Also properly initialize the interleave duration. Change-Id: I692043ce7e38f0215e1097aad9e847a57907b6e4
* | Workaround for preview frame rate setting and encoder profile and level ↵James Dong2010-05-201-2/+2
| | | | | | | | | | | | | | | | | | settings on passion 1. QCOM camera HAL does not honor the preview frame rate set request. see bug - 2701282 2. QCOM video encoder has lots of 0-length output buffers if the default level setting is changed. see bug - 2660974 Change-Id: Id01d94bb77dc242c4712d56a91b0d69a96ba6c2f
* | Detect and handle premature termination of a recording sessionJames Dong2010-05-141-6/+1
| | | | | | | | Change-Id: Ifb83b19f3e68580345b23efed5d5956fb81baeb8
* | Handle recording file size and/or duration limitJames Dong2010-05-141-0/+15
| | | | | | | | Change-Id: Ib9ed1f3ebd8fef550cc130a7ef11f2905fa9aedc
* | am 1d628c5d: merge from open-source masterThe Android Open Source Project2010-05-141-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Merge commit '1d628c5d3dd7998b29c339292a2dc391015d0782' into kraken * commit '1d628c5d3dd7998b29c339292a2dc391015d0782': Accept media files by file extension in case insensitive manner.
| * \ merge from open-source masterThe Android Open Source Project2010-05-141-1/+1
| |\ \ | | |/ | |/| | | | Change-Id: I934cf85c4673f9ca3a9549c2074907ad572310f4
| | * Accept media files by file extension in case insensitive manner.Atsushi Eno2010-03-191-1/+1
| | | | | | | | | | | | Change-Id: I8e246010c96802ae87960797607fc8f8f2ab6031
* | | Remove dummy surface in CameraSourceJames Dong2010-05-131-2/+2
| | | | | | | | | | | | | | | | | | bug - 2680919 Change-Id: Ia0308cf57fd67058b4dd0e042b3ce97f13df475f
* | | Added initial validation on video/audio encoding parameters before/at start()James Dong2010-05-112-22/+174
| | | | | | | | | | | | Change-Id: I1a40dd247202f70e3e5429d74533d349b88f1d54
* | | am 71bd9fc8: am 100ef9be: Merge "Disable vorbis seek when streaming from ↵Andreas Huber2010-05-062-1/+31
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | localhost." into froyo Merge commit '71bd9fc81e3154b9cad22ca7ff2d9c6ed6fdbe6c' into kraken * commit '71bd9fc81e3154b9cad22ca7ff2d9c6ed6fdbe6c': Disable vorbis seek when streaming from localhost.
| * | Disable vorbis seek when streaming from localhost.Andreas Huber2010-05-062-1/+31
| | | | | | | | | | | | | | | Change-Id: Icda523ae1c89e26482f1c1767fe3a8b9222bb30f related-to-bug: 2654400
* | | Support audio and video track interleaving in the recorded mp4 fileJames Dong2010-05-052-5/+19
| | | | | | | | | | | | Change-Id: Ifa27eb23ee265f84fe06773b29b0eb2b0b075b60
* | | Merge "Support AAC recording" into krakenJames Dong2010-05-042-33/+214
|\ \ \
| * | | Support AAC recordingJames Dong2010-05-032-33/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Extend the audio recording to AAC format - Add support for setting some recording parameters - Add stss box to the meta data in the recorded file Change-Id: I41167bfd9d70ef9cd33906f8437b39c232b6d3b7