Open FatPaper opened 8 years ago
@tcking 能,log显示,貌似是没有解码器
目前用的是lite
配置进行编译的,有些格式会不支持,你可能需要使用config/module-default.sh
来进行编译,参考ijkplayer,搜索If you prefer more codec/format
按说明重新进行编译
@tcking 我现在添加解码器编译过了 视频能播放了 但是x86和x86_64的so却生成不了,
@tcking 还有就是,如果我要添加截图的功能,要怎么修改代码哦
app确定需要为x86和x86_64添加abi支持吗?这样可能会让你的app变得很大,而且x86类型的机器占比不会很高的(除非面向的是平板)所以需要权衡,如果不需要,则添加arm的支持即可,x86也是能跑的。
@tcking 好的,那就剩下截图了
截图可以考虑从native层获取某贞的内容(需要native提供支持,看ijkplayer上是否有类似的需求)或者从surfaceview获取内容,不过我并没去尝试过
@tcking 截图我现在利用TextureView实现,找资料的时候找到了这个https://github.com/jgfntu/ijkplayer/commit/b1efc14f88cc792ed1c221b9f4e257e27175762a,这个是在native层获取当前帧的方法,试了一下没编译成功,不会jni和c很蛋疼,大神你可以看看,看能不能弄下,看comment好像这个还有点问题,不全面
@tcking 看comment好像这个方法不全面,因为不会jni和c的我没有编译成功
07-15 14:05:54.491 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_reset 07-15 14:05:54.491 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_release 07-15 14:05:54.491 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_android_surface(surface=0x0) 07-15 14:05:54.491 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ffpipeline_set_surface() 07-15 14:05:54.491 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_android_surface(surface=0x0)=void 07-15 14:05:54.491 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_shutdown_l() 07-15 14:05:54.491 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: wait for read_tid 07-15 14:05:54.499 24615-24769/tcking.github.com.giraffeplayer D/IJKMEDIA: message_loop exit 07-15 14:05:54.499 24615-24769/tcking.github.com.giraffeplayer I/IJKMEDIA: SDL_JNI_DetachThreadEnv: [24769] 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: Statistics: 283 bytes read, 0 seeks 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: wait for video_refresh_tid 07-15 14:05:54.499 24615-24770/tcking.github.com.giraffeplayer I/IJKMEDIA: SDL_JNI_DetachThreadEnv: [24770] 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_shutdown_l()=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_native_setup 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: av_version_info: ff3.0--ijk0.5.0--dev0.4.5--rc11 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ffpipeline_create_from_android() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_inject_opaque(0x1d400462) 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_inject_opaque()=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ffpipeline_set_mediacodec_select_callback 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback()=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_dec_ref(): ref=0 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_shutdown_l() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_shutdown_l()=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_release 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_android_surface(surface=0x0) 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ffpipeline_set_surface() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_android_surface(surface=0x0)=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_shutdown_l() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_shutdown_l()=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_dec_ref(): ref=0 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_shutdown_l() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_shutdown_l()=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_native_setup 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: av_version_info: ff3.0--ijk0.5.0--dev0.4.5--rc11 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ffpipeline_create_from_android() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_inject_opaque(0x1d500462) 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_inject_opaque()=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ffpipeline_set_mediacodec_select_callback 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback()=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_native_setLogLevel(3) 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: moncleanup 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setOptionLong 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/tv.danmaku.ijk.media.player.IjkMediaPlayer: Couldn't open file on client side, trying server side 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setDataSourceAndHeaders 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer V/IJKMEDIA: setDataSource: path http://192.168.1.11:8080/live/ppfuns_456.m3u8 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_data_source(url="http://192.168.1.11:8080/live/ppfuns_456.m3u8") 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_data_source(url="http://192.168.1.11:8080/live/ppfuns_456.m3u8")=0 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_setVideoSurface 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_android_surface(surface=0x3910001d) 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ffpipeline_set_surface() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_set_android_surface(surface=0x3910001d)=void 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: IjkMediaPlayer_prepareAsync 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_prepare_async() 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: ===== versions ===== 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: FFmpeg : ff3.0--ijk0.5.0--dev0.4.5--rc11 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: libavutil : 55.17.103 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: libavcodec : 57.24.102 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: libavformat : 57.25.100 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: libswscale : 4.0.100 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: libswresample: 2.0.101 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: ===== options ===== 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: player-opts : mediacodec = 0 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: player-opts : opensles = 0 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: player-opts : overlay-format = 842225234 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: player-opts : framedrop = 1 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: player-opts : start-on-prepared = 0 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: format-opts : ijkinject-opaque = 491783266 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: format-opts : ijkapplication = -1200407488 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: format-opts : http-detect-range-support = 0 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: format-opts : timeout = 10000000 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: format-opts : reconnect = 1 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: codec-opts : skip_loop_filter = 48 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer I/IJKMEDIA: =================== 07-15 14:05:54.499 24615-24615/tcking.github.com.giraffeplayer D/IJKMEDIA: ijkmp_prepare_async()=0 07-15 14:05:54.499 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: SDL_RunThread: [27043] ff_read 07-15 14:05:54.499 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto' 07-15 14:05:54.499 24615-27042/tcking.github.com.giraffeplayer I/IJKMEDIA: SDL_RunThread: [27042] ff_vout 07-15 14:05:54.499 24615-27041/tcking.github.com.giraffeplayer I/IJKMEDIA: SDL_RunThread: [27041] ff_msg_loop 07-15 14:05:54.499 24615-27041/tcking.github.com.giraffeplayer D/IJKMEDIA: message_loop 07-15 14:05:54.499 24615-27041/tcking.github.com.giraffeplayer D/IJKMEDIA: FFP_MSG_FLUSH: 07-15 14:05:54.579 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: Format hls,applehttp probed with size=2048 and score=100 07-15 14:05:54.579 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: HLS request for url 'http://192.168.1.11:8060/diskj/ppfuns_456/146856274.ts', offset 0, playlist 0 07-15 14:05:54.583 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: Format mpegts probed with size=2048 and score=100 07-15 14:05:54.583 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: stream=0 stream_type=2 pid=100 prog_reg_desc= 07-15 14:05:54.583 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: stream=1 stream_type=3 pid=101 prog_reg_desc= 07-15 14:05:54.583 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: Before avformat_find_stream_info() pos: 0 bytes read:10020 seeks:0 07-15 14:05:54.583 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: parser not found for codec mpeg2video, packets or times may be invalid. 07-15 14:05:54.587 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: parser not found for codec mpeg2video, packets or times may be invalid. 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: max_analyze_duration 5000000 reached at 5039967 microseconds st:0 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 24.916667 0.015007 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 25.000000 0.000000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 25.000000 0.000000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 25.083333 0.014860 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 25.083333 0.014860 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 50.000000 0.000000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 50.000000 0.000000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: Setting avg frame rate based on r frame rate 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer W/IJKMEDIA: Could not find codec parameters for stream 0 (Video: mpeg2video, 1 reference frame ([2][0][0][0] / 0x0002), none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: After avformat_find_stream_info() pos: 2329696 bytes read:2333728 seeks:0 frames:339 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer E/IJKMEDIA: Option http-detect-range-support not found. 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: Before avformat_find_stream_info() pos: 283 bytes read:283 seeks:0 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: max_analyze_duration 5000000 reached at 5039967 microseconds st:0 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 24.916667 0.015007 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 25.000000 0.000000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 25.000000 0.000000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 25.083333 0.014860 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 25.083333 0.014860 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 50.000000 0.000000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: rfps: 50.000000 0.000000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: Setting avg frame rate based on r frame rate 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer W/IJKMEDIA: Could not find codec parameters for stream 0 (Video: mpeg2video, 1 reference frame ([2][0][0][0] / 0x0002), none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: After avformat_find_stream_info() pos: 283 bytes read:283 seeks:0 frames:339 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: max_frame_duration: 10.000 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: Input #0, hls,applehttp, from 'http://192.168.1.11:8080/live/ppfuns_456.m3u8': 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: Duration: 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: N/A 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: , start: 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: 31481.970811 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: , bitrate: 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: N/A 07-15 14:05:54.779 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: Program 0 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: Metadata: 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: variant_bitrate : 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: 0 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: Stream #0:0 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: , 128, 1/90000 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: : Video: mpeg2video, 1 reference frame ([2][0][0][0] / 0x0002), none 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: , 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: 25 fps, 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: 25 tbr, 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: 90k tbn, 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: 90k tbc 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: Stream #0:1 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer D/IJKMEDIA: , 211, 1/90000 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: : Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 64 kb/s 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer W/IJKMEDIA: No codec could be found with id 86016 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer W/IJKMEDIA: No codec could be found with id 2 07-15 14:05:54.783 24615-27043/tcking.github.com.giraffeplayer A/IJKMEDIA: Failed to open file 'http://192.168.1.11:8080/live/ppfuns_456.m3u8' or configure filtergraph 07-15 14:05:54.783 24615-27041/tcking.github.com.giraffeplayer D/IJKMEDIA: FFP_MSG_ERROR: 0 07-15 14:05:54.783 24615-24615/tcking.github.com.giraffeplayer E/tv.danmaku.ijk.media.player.IjkMediaPlayer: Error (-10000,0) 07-15 14:05:54.791 24615-27043/tcking.github.com.giraffeplayer I/IJKMEDIA: SDL_JNI_DetachThreadEnv: [27043]