bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.59k stars 8.14k forks source link

Android 播放视频无声音 #878

Closed ghost closed 8 years ago

ghost commented 8 years ago

播放一个m3u8视频无声音,测试了一个ts视频有声音,提供测试源如下: http://gslb.otvcloud.com/otv/yfy/6/10/7F/00000001172/index.m3u8 http://huan.mediacdn.cedock.net/ts/ceshi20151014/ceshi1.ts

具体无声音log信息如下: 01-26 10:42:19.098 10425-10425/? D/dalvikvm: Late-enabling CheckJNI 01-26 10:42:19.198 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;) 01-26 10:42:19.198 10425-10425/tv.danmaku.ijk.media.sample I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.internal.view.WindowCallbackWrapper.onSearchRequested 01-26 10:42:19.198 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to resolve interface method 16645: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z 01-26 10:42:19.198 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 01-26 10:42:19.198 10425-10425/tv.danmaku.ijk.media.sample I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.internal.view.WindowCallbackWrapper.onWindowStartingActionMode 01-26 10:42:19.198 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to resolve interface method 16649: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode; 01-26 10:42:19.198 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 01-26 10:42:19.238 10425-10425/tv.danmaku.ijk.media.sample I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations 01-26 10:42:19.238 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to resolve virtual method 439: Landroid/content/res/TypedArray;.getChangingConfigurations ()I 01-26 10:42:19.238 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 01-26 10:42:19.248 10425-10425/tv.danmaku.ijk.media.sample I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType 01-26 10:42:19.248 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to resolve virtual method 461: Landroid/content/res/TypedArray;.getType (I)I 01-26 10:42:19.248 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 01-26 10:42:19.278 10425-10425/tv.danmaku.ijk.media.sample I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.internal.widget.ResourcesWrapper.getDrawable 01-26 10:42:19.278 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to resolve virtual method 402: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable; 01-26 10:42:19.278 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 01-26 10:42:19.278 10425-10425/tv.danmaku.ijk.media.sample I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.internal.widget.ResourcesWrapper.getDrawableForDensity 01-26 10:42:19.278 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to resolve virtual method 404: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable; 01-26 10:42:19.278 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 01-26 10:42:19.408 10425-10425/tv.danmaku.ijk.media.sample I/Adreno-EGL: : EGL 1.4 QUALCOMM build: YWEN_+PATCH[ES]_msm8974_refs/tags/AU_LINUX_ANDROID_LNX.LA.3.5.2.2.1_RB1.04.04.04.090.059__release_ENGG () OpenGL ES Shader Compiler Version: E031.24.00.15 Build Date: 11/04/15 Wed Local Branch: tip Remote Branch: quic/kk_3.5_1 Local Patches: 14b1eae272f4a5ed345b2294a1c76becd9b27371 rb: re-work change "ES2.0 Fix for shadow cached VBO validation" c63208cf6c1fe92a04d7ed7e26be44f2f51c94e9 Revert "Fix for perf regression from "ES2.0 Fix for shadow cached VBO validation"" 01-26 10:42:19.458 10425-10425/tv.danmaku.ijk.media.sample D/OpenGLRenderer: Enabling debug mode 0 01-26 10:42:19.728 10425-10425/tv.danmaku.ijk.media.sample I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@42e5d0c8 time:176743116 01-26 10:42:39.078 10425-10425/tv.danmaku.ijk.media.sample I/Timeline: Timeline: Activity_launch_request time:176762462 01-26 10:42:39.168 10425-10425/tv.danmaku.ijk.media.sample I/dalvikvm: Could not find method android.widget.FrameLayout., referenced from method tv.danmaku.ijk.media.sample.widget.media.IjkVideoView. 01-26 10:42:39.168 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to resolve direct method 17033: Landroid/widget/FrameLayout;. (Landroid/content/Context;Landroid/util/AttributeSet;II)V 01-26 10:42:39.168 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: VFY: replacing opcode 0x70 at 0x0003 01-26 10:42:39.188 10425-10425/tv.danmaku.ijk.media.sample I/dalvikvm: Could not find method android.view.SurfaceView., referenced from method tv.danmaku.ijk.media.sample.widget.media.SurfaceRenderView. 01-26 10:42:39.188 10425-10425/tv.danmaku.ijk.media.sample W/dalvikvm: VFY: unable to resolve direct method 16225: Landroid/view/SurfaceView;. (Landroid/content/Context;Landroid/util/AttributeSet;II)V 01-26 10:42:39.188 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: VFY: replacing opcode 0x70 at 0x0000 01-26 10:42:39.228 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: Trying to load lib /data/app-lib/tv.danmaku.ijk.media.sample-1/libijkffmpeg.so 0x42e62ba0 01-26 10:42:39.228 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: Added shared lib /data/app-lib/tv.danmaku.ijk.media.sample-1/libijkffmpeg.so 0x42e62ba0 01-26 10:42:39.228 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: No JNI_OnLoad found in /data/app-lib/tv.danmaku.ijk.media.sample-1/libijkffmpeg.so 0x42e62ba0, skipping init 01-26 10:42:39.228 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: Trying to load lib /data/app-lib/tv.danmaku.ijk.media.sample-1/libijksdl.so 0x42e62ba0 01-26 10:42:39.238 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: Added shared lib /data/app-lib/tv.danmaku.ijk.media.sample-1/libijksdl.so 0x42e62ba0 01-26 10:42:39.238 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'android.os.Build$VERSION' loaded 01-26 10:42:39.238 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'android.os.Build' loaded 01-26 10:42:39.238 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'java.nio.Buffer' loaded 01-26 10:42:39.238 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'java.nio.ByteBuffer' loaded 01-26 10:42:39.238 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'java.util.ArrayList' loaded 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample I/J4A: API-Level: 19 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'android.media.AudioTrack' loaded 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'android.media.MediaCodec$BufferInfo' loaded 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'android.media.MediaCodec' loaded 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'android.media.MediaFormat' loaded 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample W/J4A: J4ALoader: Ignore: 'android.media.PlaybackParams' need API 19 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'android.os.Bundle' loaded 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'tv.danmaku.ijk.media.player.misc.IMediaDataSource' loaded 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/J4A: J4ALoader: OK: 'tv.danmaku.ijk.media.player.IjkMediaPlayer' loaded 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: Trying to load lib /data/app-lib/tv.danmaku.ijk.media.sample-1/libijkplayer.so 0x42e62ba0 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/dalvikvm: Added shared lib /data/app-lib/tv.danmaku.ijk.media.sample-1/libijkplayer.so 0x42e62ba0 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_native_profileBegin 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/aprof-fake: fake-monstartup libijkplayer.so 01-26 10:42:39.248 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: monstartup: libijkplayer.so 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_native_init 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_native_setup 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: av_version_info: ff2.8--ijk0.4.1.1--dev0.3.3--rc4 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffpipeline_create_from_android() 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_set_inject_opaque(0x1d2004ee) 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_set_inject_opaque()=void 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback() 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffpipeline_set_mediacodec_select_callback 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback()=void 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_native_setLogLevel(3) 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: moncleanup 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setOptionLong 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setOptionLong 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setOptionLong 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setOptionLong 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setOptionLong 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setOptionLong 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setOptionLong 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/tv.danmaku.ijk.media.player.IjkMediaPlayer: Couldn't open file on client side, trying server side 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setDataSourceAndHeaders 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample V/IJKMEDIA: setDataSource: path http://gslb.otvcloud.com/otv/yfy/6/10/7F/00000001172/index.m3u8 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_set_data_source(url="http://gslb.otvcloud.com/otv/yfy/6/10/7F/00000001172/index.m3u8") 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_set_data_source(url="http://gslb.otvcloud.com/otv/yfy/6/10/7F/00000001172/index.m3u8")=0 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_setVideoSurface 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_set_android_surface(surface=0xb6d0001d) 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffpipeline_set_surface() 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_set_android_surface(surface=0xb6d0001d)=void 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_prepareAsync 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_prepare_async() 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: ===== versions ===== 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: FFmpeg : ff2.8--ijk0.4.1.1--dev0.3.3--rc4 01-26 10:42:39.428 10425-10902/tv.danmaku.ijk.media.sample I/IJKMEDIA: SDL_RunThread: [10902] ff_msg_loop 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: libavutil : 54.31.100 01-26 10:42:39.428 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: message_loop 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: libavcodec : 56.60.100 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: libavformat : 56.40.101 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: libswscale : 3.1.101 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: libswresample: 1.2.101 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: ===== options ===== 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: player-opts : mediacodec = 0 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: player-opts : opensles = 0 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: player-opts : overlay-format = 842225234 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: player-opts : framedrop = 1 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: player-opts : start-on-prepared = 0 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: format-opts : ijkinject-opaque = 488637678 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: format-opts : http-detect-range-support = 0 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: codec-opts : skip_loop_filter = 48 01-26 10:42:39.428 10425-10425/tv.danmaku.ijk.media.sample I/IJKMEDIA: =================== 01-26 10:42:39.428 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_FLUSH: 01-26 10:42:39.438 10425-10903/tv.danmaku.ijk.media.sample I/IJKMEDIA: SDL_RunThread: [10903] ff_vout 01-26 10:42:39.438 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_prepare_async()=0 01-26 10:42:39.438 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: SDL_RunThread: [10905] ff_read 01-26 10:42:39.618 10425-10425/tv.danmaku.ijk.media.sample I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@42eeb048 time:176763007 01-26 10:42:42.918 10425-10432/tv.danmaku.ijk.media.sample I/dalvikvm: Total arena pages for JIT: 11 01-26 10:42:42.918 10425-10432/tv.danmaku.ijk.media.sample I/dalvikvm: Total arena pages for JIT: 12 01-26 10:42:45.138 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: Format hls,applehttp probed with size=2048 and score=100 01-26 10:42:45.278 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: Statistics: 1336 bytes read, 0 seeks 01-26 10:42:45.278 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: HLS request for url 'http://42.159.234.194:80/otv/yfy/6/10/7F/00000001172/_4d6a0000_/1000/1172_10000.ts', offset 0, playlist 0 01-26 10:42:45.278 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: No trailing CRLF found in HTTP header. 01-26 10:42:45.408 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: Format mpegts probed with size=2048 and score=100 01-26 10:42:45.408 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: stream=0 stream_type=1b pid=100 prog_reg_desc= 01-26 10:42:45.408 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: stream=1 stream_type=3 pid=101 prog_reg_desc= 01-26 10:42:45.408 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: Before avformat_find_stream_info() pos: 0 bytes read:14055 seeks:0 01-26 10:42:45.548 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: no picture 01-26 10:42:49.168 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: All info found 01-26 10:42:49.168 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: After avformat_find_stream_info() pos: 109604 bytes read:110267 seeks:0 frames:48 01-26 10:42:49.168 10425-10905/tv.danmaku.ijk.media.sample E/IJKMEDIA: Option ijkinject-opaque not found. 01-26 10:42:49.168 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: Before avformat_find_stream_info() pos: 77 bytes read:77 seeks:0 01-26 10:42:49.178 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: no picture 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: All info found 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: After avformat_find_stream_info() pos: 77 bytes read:77 seeks:0 frames:48 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: max_frame_duration: 10.000 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: Input #0, hls,applehttp, from 'http://gslb.otvcloud.com/otv/yfy/6/10/7F/00000001172/index.m3u8': 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: Duration: 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 00:06:06.16 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: , start: 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 1.480000 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: , bitrate: 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 0 kb/s 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: Program 0 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: Metadata: 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: variant_bitrate : 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 1000000 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: Stream #0:0 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: , 21, 1/90000 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: : Video: h264 (High), 2 reference frames ([27][0][0][0] / 0x001B), yuv420p(left), 848x480 [SAR 1:1 DAR 53:30], 1/50 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: , 01-26 10:42:49.218 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 25 fps, 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 25 tbr, 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 90k tbn, 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 50 tbc 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: Metadata: 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: variant_bitrate : 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 1000000 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: Stream #0:1 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: , 27, 1/90000 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: : Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 96 kb/s 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: Metadata: 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: variant_bitrate : 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: 1000000 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: No codec could be found with id 86016 01-26 10:42:49.228 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: detected 4 logical cores 01-26 10:42:49.238 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: VideoCodec: avcodec, h264 01-26 10:42:49.238 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: fps: 25.000000 (normal) 01-26 10:42:49.238 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: fps: 25.000000 (normal) 01-26 10:42:49.238 10425-11156/tv.danmaku.ijk.media.sample I/IJKMEDIA: SDL_RunThread: [11156] ff_video_dec 01-26 10:42:49.238 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_VIDEO_ROTATION_CHANGED: 0 01-26 10:42:49.238 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 10001 ,extra: 0 01-26 10:42:49.238 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_VIDEO_ROTATION_CHANGED: 0 01-26 10:42:49.238 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 848, 480 01-26 10:42:49.238 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_SAR_CHANGED: 1, 1 01-26 10:42:49.238 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_PREPARED 01-26 10:42:49.238 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_PREPARED: 01-26 10:42:49.238 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onPrepared...Duration: 06:06 01-26 10:42:49.268 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: IjkMediaPlayer_start 01-26 10:42:49.268 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_start() 01-26 10:42:49.268 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_start()=0 01-26 10:42:49.268 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START 01-26 10:42:49.268 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START: start on fly 01-26 10:42:49.338 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START 01-26 10:42:49.338 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START: start on fly 01-26 10:42:49.348 10425-11151/tv.danmaku.ijk.media.sample D/IJKMEDIA: no picture 01-26 10:42:49.408 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 848, 480 01-26 10:42:49.408 10425-11156/tv.danmaku.ijk.media.sample D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=848, h=480, fmt=RV32(0x32335652, dp=0x792df5b0) 01-26 10:42:49.408 10425-11156/tv.danmaku.ijk.media.sample D/IJKMEDIA: Video: first frame decoded 01-26 10:42:49.418 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 848, 480 01-26 10:42:49.418 10425-11156/tv.danmaku.ijk.media.sample D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=848, h=480, fmt=RV32(0x32335652, dp=0x792df5b0) 01-26 10:42:49.418 10425-10903/tv.danmaku.ijk.media.sample D/IJKMEDIA: ANativeWindow_setBuffersGeometry: w=848, h=480, f=(0x4) => w=848, h=480, f=RV32(0x32335652) 01-26 10:42:49.418 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_VIDEO_RENDERING_START: 01-26 10:42:49.428 10425-11156/tv.danmaku.ijk.media.sample D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=848, h=480, fmt=RV32(0x32335652, dp=0x792df5b0) 01-26 10:42:49.428 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 848, 480 01-26 10:42:49.438 10425-10425/tv.danmaku.ijk.media.sample I/tv.danmaku.ijk.media.player.IjkMediaPlayer: Info: MEDIA_INFO_VIDEO_RENDERING_START 01-26 10:42:49.438 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 3 ,extra: 0 01-26 10:42:49.448 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_VIDEO_RENDERING_START: 01-26 10:42:50.068 10425-11156/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffp_toggle_buffering_l: start 01-26 10:42:50.068 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_BUFFERING_START: 01-26 10:42:50.068 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 701 ,extra: 0 01-26 10:42:50.068 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_BUFFERING_START: 01-26 10:42:51.068 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffp_toggle_buffering_l: end 01-26 10:42:51.068 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_BUFFERING_END: 01-26 10:42:51.068 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 702 ,extra: 0 01-26 10:42:51.098 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_BUFFERING_END: 01-26 10:42:52.958 10425-11156/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffp_toggle_buffering_l: start 01-26 10:42:52.958 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_BUFFERING_START: 01-26 10:42:52.958 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 701 ,extra: 0 01-26 10:42:52.958 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_BUFFERING_START: 01-26 10:42:58.468 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffp_toggle_buffering_l: end 01-26 10:42:58.468 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_BUFFERING_END: 01-26 10:42:58.468 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 702 ,extra: 0 01-26 10:42:58.488 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_BUFFERING_END: 01-26 10:42:59.638 10425-11156/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffp_toggle_buffering_l: start 01-26 10:42:59.638 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_BUFFERING_START: 01-26 10:42:59.648 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 701 ,extra: 0 01-26 10:42:59.648 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_BUFFERING_START: 01-26 10:43:10.588 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffp_toggle_buffering_l: end 01-26 10:43:10.588 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_BUFFERING_END: 01-26 10:43:10.598 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 702 ,extra: 0 01-26 10:43:10.628 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_BUFFERING_END: 01-26 10:43:13.908 10425-11156/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffp_toggle_buffering_l: start 01-26 10:43:13.908 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_BUFFERING_START: 01-26 10:43:13.908 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 701 ,extra: 0 01-26 10:43:13.928 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_BUFFERING_START: 01-26 10:43:18.908 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: HLS request for url 'http://42.159.234.194:80/otv/yfy/6/10/7F/00000001172/_4d6a0000_/1000/1172_10001.ts', offset 0, playlist 0 01-26 10:43:18.908 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: No trailing CRLF found in HTTP header. 01-26 10:43:20.728 10425-10905/tv.danmaku.ijk.media.sample D/IJKMEDIA: ffp_toggle_buffering_l: end 01-26 10:43:20.728 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: FFP_MSG_BUFFERING_END: 01-26 10:43:20.738 10425-10425/tv.danmaku.ijk.media.sample I/zsq: onInfo... what: 702 ,extra: 0 01-26 10:43:20.798 10425-10425/tv.danmaku.ijk.media.sample D/IjkVideoView: MEDIA_INFO_BUFFERING_END: 01-26 10:43:22.308 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_pause() 01-26 10:43:22.308 10425-10425/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_pause()=0 01-26 10:43:22.308 10425-10902/tv.danmaku.ijk.media.sample D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_PAUSE 01-26 10:43:48.498 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: HLS request for url 'http://42.159.234.194:80/otv/yfy/6/10/7F/00000001172/_4d6a0000_/1000/1172_10002.ts', offset 0, playlist 0 01-26 10:43:48.498 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: No trailing CRLF found in HTTP header. 01-26 10:44:34.808 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: HLS request for url 'http://42.159.234.194:80/otv/yfy/6/10/7F/00000001172/_4d6a0000_/1000/1172_10003.ts', offset 0, playlist 0 01-26 10:44:34.808 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: No trailing CRLF found in HTTP header. 01-26 10:45:27.648 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: HLS request for url 'http://42.159.234.194:80/otv/yfy/6/10/7F/00000001172/_4d6a0000_/1000/1172_10004.ts', offset 0, playlist 0 01-26 10:45:27.648 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: No trailing CRLF found in HTTP header. 01-26 10:46:17.368 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: HLS request for url 'http://42.159.234.194:80/otv/yfy/6/10/7F/00000001172/_4d6a0000_/1000/1172_10005.ts', offset 0, playlist 0 01-26 10:46:17.368 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: No trailing CRLF found in HTTP header. 01-26 10:47:15.858 10425-10905/tv.danmaku.ijk.media.sample I/IJKMEDIA: HLS request for url 'http://42.159.234.194:80/otv/yfy/6/10/7F/00000001172/_4d6a0000_/1000/1172_10006.ts', offset 0, playlist 0 01-26 10:47:15.858 10425-10905/tv.danmaku.ijk.media.sample W/IJKMEDIA: No trailing CRLF found in HTTP header.

bbcallen commented 8 years ago

https://github.com/Bilibili/ijkplayer#before-build

ghost commented 8 years ago

谢谢,我看到log里面Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 不知道应该具体使用哪个module.sh,所以我直接使用了module-default.sh声音问题已解决。 但有个问题想咨询下,如果使用module-default.sh编译导致libijkffmpeg.so增至9M多,请问对应音频mp2在module.sh里面可单独配置以便缩小libijkffmpeg.so的大小吗?如果可以请问mp2对应配置项目是哪个呢?

bbcallen commented 8 years ago

Run this command under ffmpeg's directory

./configure --list-decoders
ghost commented 8 years ago

我直接在module-lite.sh文件中添加了export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=mp2" 并重新编译,已解决,谢谢。