Can Android v2.3 Play MP4 files?

I have an MP4 file that I play with the MediaPlayer example in API demos on the emulator. Only the sound is played. No video. Why would this be and how do i get it to play?

BTW: .3gp files to play both audio and video in the same example.

Thanks!

--------------Solutions-------------

The supported media formats are listed here: http://developer.android.com/guide/appendix/media-formats.html . Make sure your mp4 file uses the right format (H.264 AVC or H.263).

Category:android Time:2011-01-31 Views:1
Tags: android

Related post

  • getting PVMFErrContentInvalidForProgressivePlayback error while playing mp4 files on samsung devices 2011-07-29

    I'm using classic VideoView implementation to play video on Android. Same mp4 file url works fine on HTC Desire. However it doesn't work on Samsung devices. Samsung Galaxy S1 and Samsung Galaxy Tab say: "Cannot play video. Unable to play video. Inval

  • No video display when playing an mp4 file on Android 2011-07-07

    I try to render an mp4 file I added to my android ressources in res/raw like so: public class Main extends RoboActivity { @InjectView(R.id.introVideo) private VideoView introVideo; private MediaPlayer player; @Override public void onCreate(Bundle sav

  • How to send the mp3/mp4 file from Raw folder to server on Android? 2012-01-09

    I have the mp3/mp4 files on Raw folder. I need to send these files to server side. I'm using MultipartRequestEntity (FilePart) for sending the files to server side. How to get the Raw folder files as FILE? --------------Solutions------------- You sho

  • Android not playing Video .mp4 2010-01-30

    hi guys i have prepared a code to just play a simple mp4 file from my res folder... The coding is something like this... public class VideoPlayer extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedIn

  • Android app to search mp4 videos by metadata 2011-09-29

    I have a set of mp4 files that I need to load onto an SD Card and read in my Android app. The app needs to be able to search the videos by category, so my plan was to add some category info in the mp4 metadata before loading them (probably in the "de

  • Should I use the MP3 or AAC codec for a .mp4 file? 2012-02-06

    We have an encoding process in place using ffmpeg on Mac OS X. This process will take a source video and a couple files from that: .m3u8 video, .mp4 video and .mp3 audio file. By default we've used the video from our m3u8 process which is a h264 (via

  • Android decrypt and play mp4 at runtime 2012-03-20

    I'm working on an app which shows a series of mp4 files. To make sure people don't just copy them from the sdcard where they are stored, we want to encrypt them (using DES at the moment). Most of the encrypted files like images and xml can be easily

  • How can i export mp4 in an interactive PDF? (After the export, the mp4 files won't show in the PDF) 2012-09-03

    I want to add videos (MP4) to my interactive PDF. In Indesign I can play them, and see them, but when I export the whole Indesign file the video's are gone. Also if I add interactive buttons the interactive function is gone. You can click on the word

  • Some problem when trying to play .mp4 file with Windows Media Player 12. 2012-09-16

    Hi there, I have faced two broblems for last few days since I installed a video converting program (Free Video Converter). I don't know if WMP 12 has already built-in supported for .mp4 file type or not. There are some .mp4 files I can play well befo

  • how to change a .wlmp file to a .mp4 file 2012-11-08

    I am trying (unsucessfully) to save video with a .wlmp extension to a new file that I could download to my tablet. It can be a .mkv, .mp4, .mkv, 3gp, or 3g2. --------------Solutions------------- .WLMP is not a video file format is a project file form

  • run MP4 file sent via bluetooth 2014-06-10

    i am not able to run MP4 file transferred to my lumia 720 via bluetooth from an android, it gives an error that the file format is not supported --------------Solutions------------- It may not be one of the supported codecs http://www.windowsphone.co

  • I have an issue with opening MP4 files. 2014-07-05

    Original title : mp4 files I have problems to read the mp4 files from my Android phone when it is connected to the computer (Window 7). Only the jpeg files could be read and opened. It was working perfectly fine before I downloaded the "Photo gallery

  • Windows Media Player won't play MP3 and MP4 files on Windows 8.1 2014-11-09

    Using Windows Media Player, when attempting to play mp3 or mp4 files I get an error message stating that WMP cannot play the file. The player might not support the file type or might not support the codec that was used to compress the file. I have tr

  • How to best convert Flash compatible mp4 files with FFMPEG? 2009-01-17

    I am trying to convert different files to a flash compatible .mp4 file with ffmpeg, but I can't seem to get it to work. Of course the objective is to get the greatest quality with the smallest file size. So far I have this, which works, but it doesn'

  • IIS 401.3 error for mp4 files 2009-06-06

    I have a web application which contains a virtual directory for videos. When ever user uploads a videos my automated programe creates mp4 version of that file. My virtual directory is using integrated windows auth. and my .wmv and .mp4 files are in t

  • Android Writing Logs to text File 2009-11-18

    I'm Trying to Write Logs to Custom Log.txt File on Android File using this code of Mine but then this method creates file but contains nothing. Basically I want to read previous contents of the file and then append my data with the existing content.

  • Playback skipping/seeking in an MP4 file 2009-12-10

    I'm trying to figure out the proper technique for performing skipping ahead or seeking within an mp4 (or m4a) audio file while playing it using the AudioFileStream and AudioQueue APIs on the iPhone. If I pass the complete mp4 header (up to the mdat b

  • how to create thumbnail system for MP4 files 2010-03-08

    I know I know, why am I using MP4 still?? It's because I have like 100 files already in this format and I need to upload to a website, I have the mp4 file embeded in the site already and the file played changes according to php. but what I really nee

  • RTSP streaming and save into mp4 file using VLC 2010-05-22

    let say i am having one RTSP url (rtsp://192.168.0.17/mpeg4). the live camera is setup on the machine which relay live video. i am streaming it using vlc player and i am saving it in mp4 file on some location (i.e. c:\temp.mp4). Now i am opening anot

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.485 (s). 13 q(s)