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)
882 stars 420 forks source link

Only audio, no video #26

Open alex-hryzak opened 13 years ago

alex-hryzak commented 13 years ago

I managed to compile the debug Branch and I could play videos, but I get no video - only audio is working. The libraries are loaded and also no other errors in LogCat, except "AV_LOG_WARNING: No accelerated colorspace conversion found from %s to %s", but I think that's ok.

Device: HTC Desire OS: Android 2.2 Already tried it with Windows/cygwin and Linux - both with ndk-r4 and ndk-r5 - makes no difference.

Any ideas? Thanks!!! (sorry for my buggy english)

havlenapetr commented 13 years ago

sorry I don't know it should work, try put some LOGCAT into native code, something you must see there

2011/5/14 alex-hryzak < reply@reply.github.com>

I managed to compile the debug Branch and I could play videos, but I get no video - only audio is working. The libraries are loaded and also no other errors in LogCat, except "AV_LOG_WARNING: No accelerated colorspace conversion found from %s to %s", but I think that's ok.

Device: HTC Desire OS: Android 2.2 Already tried it with Windows/cygwin and Linux - both with ndk-r4 and ndk-r5 - makes no difference.

Any ideas? Thanks!!! (sorry for my buggy english)

Reply to this email directly or view it on GitHub: https://github.com/havlenapetr/FFMpeg/issues/26

Yours faithfully Havlena Petr

dextorer commented 13 years ago

alex, I'm facing exactly the same situation as you are. Some videos do play, but the video track is too fast, like two times faster than normal, while others have no video track displayed; the audio works fine for every video I've tested so far.

I honestly don't know what the problem might be. Methods are correctly invoked but no chance to get the video all the times! Also, some methods invocations don't affect the player at all (like setFrameSkip(), ..). Any clue on that? Wondering if other people, other than havlena, succeded in this..

Mobiloitte commented 13 years ago

same issue i am also facing here,Please help me.Here video file audio is working but video is not available on sureface.

08-24 14:39:17.207: ERROR/FFMpegMediaPlayer(2371): AV_LOG_WARNING: No accelerated colorspace conversion found from %s to %s.

see my complete Logcat here:

08-24 14:39:13.437: INFO/FFMpegPlayer-JNI(2371): native_init 08-24 14:39:13.437: INFO/FFMpegPlayer-JNI(2371): native_setup 08-24 14:39:13.437: INFO/FFMpegMediaPlayer(2371): setListener 08-24 14:39:13.437: INFO/FFMpegPlayer-JNI(2371): setDataSource: path /sdcard/watch/movie.mp4 08-24 14:39:13.437: INFO/FFMpegMediaPlayer(2371): setDataSource(/sdcard/watch/movie.mp4) 08-24 14:39:17.167: INFO/ActivityManager(1374): Displayed activity cz.havlena.ffmpeg.ui/.FFMpegPlayerActivity: 3979 ms (total 3979 ms) 08-24 14:39:17.207: INFO/SurfaceWrapper(2371): registering video surface 08-24 14:39:17.207: INFO/SurfaceWrapper(2371): registered 08-24 14:39:17.207: INFO/AudioTrackWrapper(2371): registering audio track 08-24 14:39:17.207: INFO/AudioTrackWrapper(2371): registered 08-24 14:39:17.207: INFO/FFMpegMediaPlayer(2371): prepareVideo 08-24 14:39:17.207: ERROR/FFMpegMediaPlayer(2371): AV_LOG_WARNING: No accelerated colorspace conversion found from %s to %s. 08-24 14:39:17.207: INFO/SurfaceWrapper(2371): getting surface's pixels 512x232 08-24 14:39:17.207: INFO/SurfaceWrapper(2371): getted 08-24 14:39:17.207: INFO/FFMpegMediaPlayer(2371): prepareAudio 08-24 14:39:17.317: INFO/AudioTrackWrapper(2371): setting audio track 08-24 14:39:17.377: INFO/FFMpegMediaPlayer(2371): starting main player thread 08-24 14:39:17.377: INFO/FFMpegMediaPlayer(2371): playing 512x232 08-24 14:39:17.377: INFO/FFMpegThread(2371): starting thread 08-24 14:39:17.377: INFO/FFMpegVideoDecoder(2371): decoding video 08-24 14:39:17.387: INFO/FFMpegThread(2371): starting thread 08-24 14:39:17.387: INFO/FFMpegAudioDecoder(2371): decoding audio 08-24 14:39:17.437: INFO/FFMpegThread(2371): thread ended

Please help me, i am takful of you...

Mobiloitte commented 13 years ago

Hi developers,

Now i am able to play approx 50MB video by using ffmpeg codec interface when playing approx 200mb or 1gb video then only audio works video not on surface.

Please help what need change in code.why i am not able to play long video. what are the limitations on android large video mp4 file.

Mobiloitte commented 13 years ago

waiting for response but not getting response back so wasting time for this issue.

Mobiloitte commented 13 years ago

I wait for long time for response , now closing this issue.