首页
学习
活动
专区
工具
TVP
发布

悟空被FFmpeg玩

专栏作者
120
文章
201567
阅读量
30
订阅数
查看/sys中的信息
[root@localhost liuqi]# udevinfo -a -p /sys/class/block/sda/ Udevinfo starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A
用户3765803
2019-03-05
8990
设置xfce桌面图标字体背景色味透明
style "xfdesktop-icon-view"{XfdesktopIconView::label-alpha = 0 #设置alphabase[NORMAL] = "#FFFFFF"base[SELECTED] = "#FFFFFF"base[ACTIVE] = "#FFFFFF"fg[NORMAL] = "#000000"fg[SELECTED] = "#000000"fg[ACTIVE] = "#000000"}widget_class "*XfdesktopIconView*" style "
用户3765803
2019-03-05
1.1K0
使用现成的Kernel里的list.h来写用户程序
#ifndef _LINUX_LIST_H #define _LINUX_LIST_H /*  * Simple doubly linked list implementation.  *  * Some of the internal functions ("__xxx") are useful when  * manipulating whole lists rather than single entries, as  * sometimes we already know the next/pre
用户3765803
2019-03-05
9180
Linux系统中,read文件过程分析
然后通过系统调用去read一个文件,为什么man 2 read的时候或者man 2 write的时候的参数与写的驱动的read和write里面定义的函数看上去不同呢?
用户3765803
2019-03-05
2.4K0
查找当前目录下的大于1M的文件的各种实现
感谢小云同学,兰兰同学,以及其他同学的交流 使用find的参数实现 [root@T-bagwell mnt]# find . -maxdepth 1 -size +1000000c ./sys.tar.gz ./install.tar.bz2 ./CTeX_2.9.0.152_Full.exe ./php-5.3.6.tar.gz [root@T-bagwell mnt]# ls -lh total 1.3G -rw-r--r-- 1 root root 1.1G 201
用户3765803
2019-03-05
1.1K0
统计某文件中某关键词出现个数
awk -F "" '{for(i=1;i<=NF;++i) if($i=="a") ++sum}END{print sum}' test.c [root@btg 5906]# awk '{for(i=1;i<=NF;++i) if($i=="test") ++sum}END{print sum}' test.c 6 [root@btg 5906]# cat test.c test test ktest test a test test a l test ltest [r
用户3765803
2019-03-05
5800
glusterfs中xlator的介绍(1)
在Gluster中,所有的操作都围绕着一条主线,那就是xlator,在对应的volume的配置中可以看到
用户3765803
2019-03-05
1.2K0
批量替换文件名
偶尔用到,小记一下 如果有更好的,请提供 点击(此处)折叠或打开 #!/bin/bash for i in `find . -name "*"` do         mv $i "`echo $i | sed 's/nginx/zehttpd/g' `" done
用户3765803
2019-03-05
1.2K0
获得一个结构体做成的表的大小
随便贴点代码,以后没准能用到 点击(此处)折叠或打开 #include <stdio.h> #include <stdlib.h> #include <string.h> struct media_table {         char video_width[8];         char video_bit_rate[8];         char audio_bit_rate[8]; }; struct media_table zetc_table
用户3765803
2019-03-05
4230
获得时间并做成字符串
随便贴点代码,以后没准有用 点击(此处)折叠或打开 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sys/time.h> #include <unistd.h> char *get_time_for_uuid(char *time_string) {         time_t timep;         struct tm *p;
用户3765803
2019-03-05
5440
按照原宽高获得等比新宽高
随便贴代码 点击(此处)折叠或打开 #include <stdio.h> int get_divisor(int x, int y) { int ret = 0; while (x%y != 0) {                 ret = x % y;                 x = y;                 y = ret; }         return ret; } int get_height(int width
用户3765803
2019-03-05
8410
使用FFmpeg新解码API解封装解码音视频(代码实例)
在ffmpeg的源代码中,有新旧版本的编解码接口调用示例,但是demux、mux然后decode、encode的联动起来的接口调用实例并没有,在使用旧版本的编解码接口在编译时会报接口弃用告警信息,所以最好尽快把原有的调用方式切换到新的编解码接口调用方式,告警信息如下:
用户3765803
2019-03-05
1.2K0
P2P RTMFP Server - MonaServer 中事件(Event)的基本使用
当Server的app被创建的时候并且第一次执行到的时候,才会调用这个事件,这个事件的第一个参数是app的path
用户3765803
2019-03-05
8820
没有更多了
社区活动
RAG七天入门训练营
鹅厂大牛手把手带你上手实战,赢鹅厂证书、公仔好礼!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档