Skip to content

BattleShipPark/media-codec-sample

Repository files navigation

media-codec-sample

CameraToMpegActivity: http://www.bigflake.com/mediacodec/CameraToMpegTest.java.txt
Encode file with surface coming from camera. There is no preview.

VideoToSurfaceActivity: https://github.com/taehwandev/MediaCodecExample/tree/master/src/net/thdev/mediacodecexample/decoder
Decode file to surface view

TranscoderActivity: https://android.googlesource.com/platform/cts/+/kitkat-release/tests/tests/media/src/android/media/cts/MediaMuxerTest.java
Extractor and muxer

ConcatActivity
Concat video-file2 after video-file1

ImageToVideoActivity: https://android.googlesource.com/platform/cts/+/jb-mr2-release/tests/tests/media/src/android/media/cts/EncodeDecodeTest.java
Encode file with image(actually generated buffer)

ImageToSurfaceToVideoActivity: https://android.googlesource.com/platform/cts/+/jb-mr2-release/tests/tests/media/src/android/media/cts/DecodeEditEncodeTest.java
Encode file with image to surface1, and decode surface1 to surface2, and encode surface2 to file

AudioDecoderThread: https://github.com/taehwandev/MediaCodecExample/blob/master/src/net/thdev/mediacodecexample/decoder/AudioDecoderThread.java
Decode AAC and play it

MP3ToAACActivity: https://github.com/OnlyInAmerica/HWEncoderExperiments/blob/audioonly/HWEncoderExperiments/src/main/java/net/openwatch/hwencoderexperiments/AudioEncoder.java
Transcode MP3 to AAC. Decode MP3 and encode to AAC. (PROBLEM: AAC sounds faster than MP3)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages