havlenapetr / FFMpeg

this is port of ffmpeg for android (this is app, but in future i will do android lib from it and then system will be able to convert videos automatically)
883 stars 420 forks source link

Playing Formats other than FLV,AVI,WMV,MP4 #51

Open khushank opened 12 years ago

khushank commented 12 years ago

Hi, Thanks Havlena for this wonderful work.I have successfully ported latest FFMPeg on android using your project and successfully tested FLV,WMV,AVI,MP4 files. But since FFMPEG support amny other file formats too.. its not able to play video for MKV,DIVX, RM ,MPG,VOB,MOV. files but audio is played perfectly. Can you please guide me on this. I have made a small change in FFMPeg.java to support these extensions. But somehow only audio play back is coming not the video playback.

havlenapetr commented 12 years ago

sorry i don't have much time(i am porting ics on sgs now), for other formats you need to compile other libs into ffmpeg, like libxvid and others

khushank commented 12 years ago

if possible can u tell some more detail please... like which more libs we need and from where we will get those libs. Does libxvid comes wid ffmpeg

havlenapetr commented 12 years ago

just use google, I don't know every external lib which you need for other formats, libxvid isn't included in ffmpeg, you must download it and compile it into ffmpeg(you must enable every lib by define in ffmpeg's config.h)

sparklets commented 12 years ago

@khushank , @havlenapetr my Os is win7 I compiled the project using ndk and it compiled successfully , I then imported the project in my eclipse , it gave the error that the gen older is not present, if i create the gen folder and place the R.jva file in it then what should be the contents? @khushank will you please tell all the steps you did after downloading to get this project running ? Please answer it I am pretty sure it will help many people to benefit form this great source , thanks

sparklets commented 12 years ago

@khushank even if you did it on linex , please do post all the steps ,thanks again

sparklets commented 12 years ago

I just got able to played it :) awesome project however I changed the frame rates of video from ffmpegConfig but still its not affecting the actual playing rate and other thing is that it plays some videos fast and some slow ... any hints ?

khushank commented 12 years ago

Hey @sparklets im sorry i cudnt reply!!... nice to hear that the project worked for u.... bt r u still able to run all types of formats ... and did u manage to synch the audio and video

sparklets commented 12 years ago

hello @khushank ,I don't need extra formats other then the given, but I still have problem with sync of audio video frames , plus I needed to get the video frames in bitmap array as well as also need to get individual sound frames .

sparklets commented 12 years ago

@havlenapetr you did good job,thanks again , I am hopeful you will get some time to resolve audio video sync issue plus giving opportunity of getting audio video frames