I check the dimensions, they are 240x320 and I have set the size of the videoview to the same dimension. No more scaling, but the video still looks the same.
Hm, I just realised that the codec is not H263, but but MPEG-4 video. Still tring to find a way to make ffmpeg use H263. But thanks for the info concerning scaling and bitrate. On 22 Jul., 14:46, Matty <[email protected]> wrote: > My guess is the video isn't the right size, so the device is > struggling to scale the video and/or the bitrate is just too high... > Try a lower bitrate, and check the dimensions of your video. > > On Jul 22, 7:49 am, berliner <[email protected]> wrote: > > > > > Hi, > > > what could be the reason that a mp4 video file without sound doesn't > > play correctly when using the VideoView class? The video plays just > > fine in vlc, mplayer and ubuntu media player. It has been created on > > the device using ffmpeg. It is like 5 seconds long, so nothing > > especially big. Codec is H263 with AAC-Audio, though the audio signal > > is just empty. The problem is, that the video plays, but the image > > doesn't change, or at least doesn't change a lot. It seems more like a > > still image, though small movements is sometimes visible but not at > > all what has been encoded. I noticed that the VideoView stops playing > > but the time continues to step up, so it doesn't stop counting after 5 > > seconds but just goes on counting. > > > I'm using the emulator. Can that be related? I see the following > > messages in logcat: > > W/PlayerDriver: Using generic video MIO > > D/AudioSink: bufferCount (4) is too small and increased to 12 > > E/SW_DEC: PV SW DECODER is used for MPEG4 > > W/MediaPlayer: info/warning (1, 44) > > I/MediaPlayer: Info (1, 44) > > D/MediaPlayer: getMetadata > > W/AudioFlinger: write blocked for 118msecs, 1630 delayed writes, > > thread 0xb388 > > W/MediaPlayer: Attempt to seek to past end of file: request = 5559, > > EOF 4018 > > ... > > > What could be the reason? Any ideas? Might it be an encoder problem? > > > best regards, > > berliner -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

