cedricfung / mediacodecdemo Goto Github PK
View Code? Open in Web Editor NEWAndroid MediaCodec API Demo
License: BSD 3-Clause "New" or "Revised" License
Android MediaCodec API Demo
License: BSD 3-Clause "New" or "Revised" License
Dear Sir,
video is display but not audio not play..
please can you give me any suggestion.
The code works fine for a video loaded from sd-card, but it fails with the following error when i try to load a video from a URL. One of the URLs i tried is this
http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4
I am running the code on Android M.
14646-14765/io.vec.demo.mediacodec I/MediaHTTPConnection: proxyName: 0.0.0.0 0
E/NuCachedSource2: source returned error -1, 0 retries left
14646-14752/io.vec.demo.mediacodec E/QComExtractorFactory: Sniff FAIL :: coundn't pull enough data for sniffing
14646-14752/io.vec.demo.mediacodec W/System.err: java.io.IOException: Failed to instantiate extractor.
14646-14752/io.vec.demo.mediacodec W/System.err: at android.media.MediaExtractor.nativeSetDataSource(Native Method)
14646-14752/io.vec.demo.mediacodec W/System.err: at android.media.MediaExtractor.setDataSource(MediaExtractor.java:182)
14646-14752/io.vec.demo.mediacodec W/System.err: at io.vec.demo.mediacodec.DecodeActivity$PlayerThread.run(DecodeActivity.java:65)
How to compress the video using mediaCodec? Please help me to compress the video from sd card.
你好请问用mediacodec 压缩本地的mp4文件 会导致视频旋转 ,这是什么引起的呢?
02-19 19:21:38.108 186 4580 I MixVBP : SPS header is parsed.
02-19 19:21:38.108 186 4580 W VideoDecoder: Can't start VA as either SPS or PPS is still not available.
02-19 19:21:38.108 186 4580 I OMXVideoDecoder: Buffer has OMX_BUFFERFLAG_CODECCONFIG flag.
02-19 19:21:38.108 186 4580 I MixVBP : PPS header is parsed.
02-19 19:21:37.748 186 4574 W VideoDecoder: handleNewSequence failed. status = 2
02-19 19:21:37.748 186 4574 W OMXVideoDecoder: Video format is changed.
02-19 19:21:37.748 186 4574 W OMXVideoDecoder: Change of portsetting is not reported as size is not changed.
02-19 19:21:37.748 186 4574 I OMXVideoDecoder: Buffer has OMX_BUFFERFLAG_CODECCONFIG flag.
02-19 19:21:37.748 186 4574 I MixVBP : PPS header is parsed.
02-19 19:21:37.748 186 4574 I VideoDecoder: No slice available for decoding.
Is there any way to use that method for example for RTMP based streaming?
Does it works with HLS adaptive bitrate streaming?
Got a m3u8 with its .ts file chunks to play on android. Thanks
此为MediaCodec解码示例,能否写一个编码的示例
I download your's mediacodec project from github and it is good.In this passing the video.mp4 file to the extractor.But my requirement is,
Is there any way to send a byte[] array to the Decoder? for example if i like to use onPreviewFrame(byte[] frame) ,from the camera.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.