Brad - I read another post that talked about the 30 fps spec. Video size is 320x240. I notice that I only get the VideoSize error when I push the file to the emulator after starting my app. If I restart the emulator, then I get the prepare failed error, which is probably the actual issue.
Dave - Not sure what the frame size is or how to tell, sorry, not much video experience. I was guessing that I only had G1 specs. I can't seem to find anything definitive about the emulator. Unfortunately don't have an actual phone right now. I'm creating a demo for my boss, and will hopefully get one out of it if I can demonstrate it has some value. thanks for your time guys. On Jan 9, 7:22 pm, Dave Sparks <[email protected]> wrote: > You left out a key detail - what is the frame size? > > The specs you quoted are for a G1 device - the emulator is probably > not quite that good. In addition to running soft codecs in ARM > emulation, it's also doing color space conversion, scaling, and > rotation in ARM emulation. > > On Jan 9, 4:22 pm, Brad A <[email protected]> wrote: > > > I'm trying to get video functions working on the Android emulator, > > using the MediaPlayer demo apis app. > > I'm having a hard time getting a file that is properly encoded. I > > could use some help understanding the specs and how to meet them. > > > From what I understand, the emulator cannot handle streaming video, > > but you can play video locally from an emulated SD Card. Preferred > > format is H.264 Baseline, which is the same as MPEG-4 AVC. The > > "Baseline" profile seems to be the key, and what is probably giving me > > problems. All I really know is that b frames are not supported in > > that profile. From other information I've seen, looks like you want > > something with 30 fps and max 600 kbps bitrate. > > Does that sound correct? > > > I've created the emulated SD Card and pushed my video to it. I've > > tested other 3gp videos, that at least played (poorly), so I know I > > have that part right. But with my mp4 video, I either get an error > > with getVideoSize returned -1, or prepare failed. > > > The file I'm trying to play was originally sourced from a flash video > > off the web, with ext .f4v. I'm using a program called ImToo FLV > > Converter (any better suggestions?), and setting the target profile as > > MPEG-4 AVC. I've specified 30fps and a Level of 12, which seems to > > correspond to Level 1.2 referenced herehttp://en.wikipedia.org/wiki/H.264. > > It has an "expert" panel where it allows me to enter a b_frames > > value. I put "False", although I don't know if that's what I should > > enter there (other options use "False" keyword I noticed). I have an > > email to their support on that. > > > After conversion I pull up the file in quicktime and check the movie > > stats and it shows the file as a H.264 with 30 fps with a bit rate > > under 600, seems like I'm close to teh specs and the conversion is > > successful. Still no cigar when using in Android though.. > > > Can anyone give me some suggestions? I'll post the file if someone > > has the talent to analze it. > > > Thanks for taking your time to consider my problem! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

