• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
热爱我的热爱
博客园    首页    新随笔    联系   管理    订阅  订阅
04 2012 档案
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS)

摘要:引发Unable to create the overlay! 原因 待查 阅读全文
posted @ 2012-04-28 15:47 soniclq 阅读(3660) 评论(0) 推荐(0)
使用dlopen和dlsym来使用C++中的类

摘要:转载自http://hi.baidu.com/aaronmagic/blog/item/caae9d54706d1650d10906dd.html原文链接http://www.isotton.com/devel/docs/C++-dlopen-mini-HOWTO/一般来说,dlopen和dlsym是来处理C库中的函数的,对于C++中存在的name mangle问题,类的问题就不易处理,看下文你会有所收获。转载自:http://www.linuxsir.org/bbs/printthread.php?t=266890C++ dlopen mini HOWTO 中译版 [原创]C++ dlope 阅读全文
posted @ 2012-04-24 10:40 soniclq 阅读(8797) 评论(0) 推荐(0)
ffmpeg 的log 获取办法

摘要:以前在jni 下调试 ffmpeg 都是加andoird 的 LOGE,今天看别人的播放器里这么用的,av_log_set_callback 设置一个回调,错误信息就可以抛上来了。good~ 阅读全文
posted @ 2012-04-23 10:01 soniclq 阅读(548) 评论(0) 推荐(0)
ndk-build 概述

摘要:英文文档见android-ndk-r5b的documentation.html属于Android Native Development Kit (NDK)的一部分见http://developer.android.com/sdk/ndk/(需要代理)翻译仅个人见解-----------------'ndk-build' Overviewndk-build概述I. Usage:一、使用方法:---------The Android NDK r4 introduced a new tiny shell script, named 'ndk-build', to si 阅读全文
posted @ 2012-04-19 16:26 soniclq 阅读(452) 评论(0) 推荐(0)
错误:expected class-name before ‘{’ token

摘要:转自http://yongshengfree.blog.163.com/blog/static/3525246520081023255997/刚开始以为头文件语法写错了 经常碰到,记录一下不过在查阅网上资料的时候也意外的收获了一些答案, 在此把它贴出来, 以示警醒:You can get the errorexpected class-name before ‘{’ tokenif you try to define a class as a subclass, and the superclass isn't defined in the local scope.WRONG clas 阅读全文
posted @ 2012-04-13 14:25 soniclq 阅读(1599) 评论(0) 推荐(0)
随笔

摘要:ffmpeg对于输入的视频文件采用的是probe的方法。每一种封装格式在注册是的时候都会提供probe函数。ffmpeg首先读取文件的探测数据,一般是2-3k的头数据,然后遍历调用所有注册的probe函数,从中选出一个得分最高的封装格式。然后在调用该格式的reed_head等函数,确定具体的音视频的编码格式,从而调用相应的codec。总之,ffmpeg判定封装格式及编码格式是在demuxer中进行的,不是codec。具体的你可以看libavformat中的源代码。对于输出文件,如无特殊指定,一般是根据扩展名判断编码格式。 阅读全文
posted @ 2012-04-11 17:12 soniclq 阅读(128) 评论(0) 推荐(0)
avcodec_decode_video2 第三个参数 got_picture_ptr 的含义

摘要:ffmpeg 文档中这样描述got_picture_ptr Zero if no frame could be decompressed, otherwise, it is nonzero.ask :(ffmpeg avcodec_decode_video) what does the value got_picture_ptr mean ,i found it is a random num after function avcodec_decode_video()answer;for almost codecs:*got_picture_ptr = sizeof(AVFrame);It i 阅读全文
posted @ 2012-04-06 12:05 soniclq 阅读(2900) 评论(0) 推荐(0)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3