备忘

q1、编译facc-1.28,提示与string的函数定义冲突

mpeg4ip.h:126:58: error: new declaration ‘char* strcasestr(const char*, const char*)’
In file included from mpeg4ip.h:107:0,
                 from mp4common.h:29,
                 from 3gp.cpp:28:
/usr/include/string.h:369:26: error: ambiguates old declaration ‘const char* strcasestr(const char*, const char*)’

解决:

将common/mp4v2/mpeg4ip.h进行修改

修改前:
#ifdef __cplusplus
extern "C" {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif

修改后:
#ifdef __cplusplus
extern "C++" {
#endif
const char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif

q2. ffmpeg下载历史版本的代码

想下载2.6.2的版本

直接在http://ffmpeg.org/download.html下只有2.5.5和2.6.9的版本

在http://ffmpeg.org/releases/下有详细的各种历史版本

在官网主页的wiki下,有ffmpeg的编译指南,有相应x264 aac等原码和编译方法

q3、用top查看某个进程的信息

top -p 进程号

q4、查看进程文件句柄

ls -l /proc/`pidof avslicemain.bin`/fd

保存到文件的方式

ls -l /proc/`pidof avslicemain.bin`/fd > file



你可能感兴趣的:(备忘)