[android-developers] Re: refresh the gallery without restart the emulator

2011-04-14 Thread cervello
I succesed. Thank you. Here is my code; private MediaScannerConnection mediaconnect; private MediaScannerConnectionClient _mediaScanConnectionClient = new MediaScannerConnectionClient() { public void onMediaScannerConnected() { mediaconnect.scanFile(filename2,

[android-developers] alloc buffer size for video

2011-04-11 Thread cervello
I'm encoding a video but I need to find which buffer size I should allocate for the video.. I found a code but 10 isn't enough for some videos with large size. HOw can I find the optimum size? And I couldn't understand how I can allocate a buffer size for a video? Which preferences of a video

[android-developers] Re: refresh the gallery without restart the emulator

2011-04-09 Thread cervello
But in onScanCompleted one of the parameter is the uri..Shouldn't I use this function? Can you write an example code? I couldn't find how it should be.. I'm confused.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: refresh the gallery without restart the emulator

2011-04-09 Thread cervello
I still try but first off all can you tell me what the uri means here?? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to a

[android-developers] Re: refresh the gallery without restart the emulator

2011-04-09 Thread cervello
Should I do something like this? but it's not correct.. public void onCreate( Bundle savedInstanceState ) { super.onCreate( savedInstanceState ); setContentView( R.layout.main ); ListView videoListView = (ListView)findViewById(R.id.List); videoListView.setAdapter(

[android-developers] refresh the gallery without restart the emulator

2011-04-09 Thread cervello
Hi, I have a video list like; *video1 *video2 *video3 And I chose one of these then I create a new video. My new video's name is added in the videolist but doesn't display in the gallery. To display the new video I have to restart the emulator. How can I display the video without restart emulato

[android-developers] av_seek_frame problem

2011-02-23 Thread cervello
I have an array that keeps which frames are the keyframe and I want to create a video with these keyframes but first off all I try to save these keyframes in a directory in sdcard called "keyframes". I use a video that I have 217 keyframe and I think I understand using of av_seek_frame() wrong . B

[android-developers] Re: avcodec_decoder_find problem

2011-02-08 Thread cervello
I checked every type that I used for these parameters.There is nothing wrong. Actually I had that error once again and it was fixed without doing anything with the parameter types. But now I don't understand the cause of this error.. -- You received this message because you are subscribed to the

[android-developers] Re: avcodec_decoder_find problem

2011-02-08 Thread cervello
ece@ubuntu:~/workspace/FFmpeg/jni$ /home/ece/ndk/ndk-build Install: libffmpeg.so => /home/ece/workspace/FFmpeg/libs/ armeabi Compile thumb : takepics <= /home/ece/workspace/FFmpeg/jni/takepics.c /home/ece/workspace/FFmpeg/jni/takepics.c: In function 'fill_image': /home/ece/workspace/FFmpeg

[android-developers] Re: avcodec_decoder_find problem

2011-02-08 Thread cervello
ece@ubuntu:~/workspace/FFmpeg/jni$ /home/ece/ndk/ndk-build Install: libffmpeg.so => /home/ece/workspace/FFmpeg/libs/ armeabi Compile thumb : takepics <= /home/ece/workspace/FFmpeg/jni/takepics.c /home/ece/workspace/FFmpeg/jni/takepics.c: In function 'fill_image': /home/ece/workspace/FFmpeg

[android-developers] Re: avcodec_decoder_find problem

2011-02-08 Thread cervello
I have just need H 263 codec. Yes, I built ffmpeg myself. In my code I found other problems. I share this for everyone.. // Decode video frame avcodec_decode_video(pCodecCtx, pFrame, &frameFinished, packet.data, packet.size); Here avcodec_decode_video is not used anymore like that.. Instead of i

[android-developers] Re: avcodec_decoder_find problem

2011-02-06 Thread cervello
9:15 pm, emymrin wrote: > Try to instrument avcodec_open and anything that it calls with > __android_log_print to get an idea about what is wrong. > > On 5 фев, 19:03, cervello wrote: > > > > > > > > > I'm trying to decode a video but in my code I think

[android-developers] avcodec_decoder_find problem

2011-02-05 Thread cervello
I'm trying to decode a video but in my code I think there is a problem about avcodec_find decoder().. I control it with log_message and on logcat there is "here1" but there isn't "here2" .. So I think there is a problem with avcodec_find_decoder... Can anyone any idea?? Please help me, Thanks And