stagefright

Videoview behavior on differents smartphone (with different stagefright)

风流意气都作罢 提交于 2019-12-12 12:42:15
问题 I'm having compatibility problems using videoview (or MediaPlayer) for play rtsp streams in multiple videoviews in the same activity. I have opened another question on this problem here but now I know that isn't my code the responsible, because I test same software on different phones and it work. Viewing logcat Info messages for RTSP setup I see that each phone has different implementation of stagefright (android multimedia framework): (A) I/RTSPEngine(147): User-Agent: Player/LG Player 1.0

Android browser media player (stagefright?) displayed media name

与世无争的帅哥 提交于 2019-12-12 09:49:16
问题 When the Android browser opens a media file it can play, the built-in (stagefright?) media player opens up to stream it. A title for this media is displayed on the player dialog, based on the URL. The URL in this case was http://10.0.37.195/waug_mp3_128k . The media player simply uses the last part of the path as its title. Is it possible to change the displayed title? I have tried a Content-Disposition header, but it had no effect: Content-Disposition: inline; filename=Some Better Title 回答1:

Android: Dequeuing native buffer returns error from omxcodec: Dequeued unrecognized buffer

与世无争的帅哥 提交于 2019-12-11 01:41:18
问题 I am using omxcodec of stage-fright framework to perform h.264 hardware decoding and the AwesomeNativeRenderer to render it to the surface. Currently I am using karbonn A9+ device with android 4.0.4. For resolutions upto 480p it instantiates OMX.qcom.video.decoder.avc and for 720p it instantiates OMX.ittiam.video.decoder.avc and when I try to display the video like AwesomeNativeRenderer of Awesomeplayer works fine for resolutions till 480p but for 720p it returns with error 07-25 17:26:16.549

Detect supported audio encoders on Android to prevent crash “The given audio encoder 2 is not found”

孤街醉人 提交于 2019-12-10 17:19:38
问题 When an Android device does not support a mandatory audio-encoder, you get: (X=numeric index of the encoder) E/MediaProfiles(4048): The given audio encoder X is not found A/AudioSource(4048): frameworks/base/media/libstagefright/AudioSource.cpp:58 CHECK(channels == 1 || channels == 2) failed. A/libc(4048): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1) In native code. No Exception to react to. App is just force closed. Is there any way to query an Android >3.x device if AAC AMR-NB and AMR

Android: MPEG4Writer fails to start when using OMXCodec as MediaSource

筅森魡賤 提交于 2019-12-09 18:44:26
问题 I'm trying to encode a video from a byte array buffer and to do so I'm using MPEG4Writer API from native code. I have created my custom MediaSource class to provide the data and I'm wrapping it with OMXCodec to give it to MPEG4Writer : sp<MediaSource> mVideoEncoder = OMXCodec::Create(client.interface(), omxEncMeta, true, mVideoOutSource); mVideoEncoder->start(); mVideoOutSource is my custom MediaSource class, omxEncMeta is the following: int32_t colorFormat = OMX_COLOR_FormatYUV420SemiPlanar;

FFmpeg on Android

橙三吉。 提交于 2019-12-09 06:29:08
问题 I have got FFmpeg compiled (libffmpeg.so) on Android. Now I have to build either an application like RockPlayer or use existing Android multimedia framework to invoke FFmpeg. Do you have steps / procedures / code / example on integrating FFmpeg on Android / StageFright? Can you please guide me on how can I use this library for multimedia playback? I have a requirement where I have already audio and video transport streams, which I need to feed to FFmpeg and get it decoded / rendered. How can

Android: NativeWndowBuffer ownership issue in omxcodec for hardware h.264 decoding in android 4.0.4

大兔子大兔子 提交于 2019-12-08 13:50:02
问题 I am working on stagefright to decode and display mp4 file in android 4.0.4 with hardware codec. Currently I am testing in Motorola Xoom device with android 4.0.4. I was able to decode and display the files for all resolutions fast enough for my requirement but at the end of the decoding i.e for the last frame it crashes with the following error 08-27 12:24:53.500: A/OMXCodec(2677): frameworks/base/media/libstagefright/OMXCodec.cpp:2037 CHECK_EQ( (int)bufInfo->mStatus,(int)OWNED_BY_NATIVE

H264 HW Decoding on Android Using FFmpeg-10

穿精又带淫゛_ 提交于 2019-12-07 09:59:18
问题 I've noticed that ffmpeg has already included (libavcodec/libstagefright.cpp) and claimed to support H264's hardware decoding through StageFright framework. I've build the shared library according to (tools/build_libstagefright). But when doing real H264 frame decoding, it seems to be failed at Stagefright_init(). Does anybody succeed to use this new feature? Thank you in advance. 来源: https://stackoverflow.com/questions/9702503/h264-hw-decoding-on-android-using-ffmpeg-10

How do I use Stagefright from the command line?

送分小仙女□ 提交于 2019-12-06 07:03:12
问题 How do I use Stagefright from the command line? Is it possible? 回答1: Yes, stagefright can be used from a command line if you have rooted your device and can access a command line. Here's output from my android board: root@android:/ # stagefright -h usage: stagefright -h(elp) -a(udio) -n repetitions -l(ist) components -m max-number-of-frames-to-decode in each pass -b bug to reproduce -p(rofiles) dump decoder profiles supported -t(humbnail) extract video thumbnail or album art -s(oftware)

Android browser media player (stagefright?) displayed media name

会有一股神秘感。 提交于 2019-12-05 20:22:51
When the Android browser opens a media file it can play, the built-in (stagefright?) media player opens up to stream it. A title for this media is displayed on the player dialog, based on the URL. The URL in this case was http://10.0.37.195/waug_mp3_128k . The media player simply uses the last part of the path as its title. Is it possible to change the displayed title? I have tried a Content-Disposition header, but it had no effect: Content-Disposition: inline; filename=Some Better Title The short answer is no. I don't think you can change the displayed title to show something else from the