AVFormatContext*formatCtx=NULL;formatCtx=avformat_alloc_context();AVDictionary*options=NULL;av_dict_set(&options,"rtsp_transport","tcp",0);avformat_op...
分类:
其他好文 时间:
2015-05-25 18:38:32
阅读次数:
222
#include using namespace std;extern "C" {#include // required headers#include }int main(int argc, char**argv) { av_register_all(); ...
分类:
其他好文 时间:
2015-05-25 16:02:40
阅读次数:
567
Above AverageTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 15028Accepted: 7875DescriptionIt is said that 90% of frosh expect to be above av...
分类:
其他好文 时间:
2015-05-22 08:13:34
阅读次数:
95
malloc.c:3096: sYSMALLOc: Assertion (old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) ...
分类:
其他好文 时间:
2015-05-21 10:57:00
阅读次数:
516
我在调用avformat_open_input的时候,一直返回-13错误,如下代码: const char *url = "/mnt/sdcard/xpg.mp4";
av_register_all();
AVFormatContext *pFormatCtx = NULL;
int ret = avformat_open...
分类:
其他好文 时间:
2015-05-20 11:31:43
阅读次数:
692
在使用ffmpeg解码播放TS流的时候(例如之前写过的UDP组播流),在连接时往往需要耗费大量时间。经过debug发现是av_find_stream_info(已抛弃,现在使用的是avformat_find_stream_info)这个方法十分耗时,而且是阻塞的。av_find_stream_inf...
分类:
其他好文 时间:
2015-05-19 18:05:40
阅读次数:
340
static void Main(string[] args) { string source = @"D:\c\集合.avi"; string target = @"C:\Users\Administrator\Desktop\集合2.av...
分类:
其他好文 时间:
2015-05-19 00:27:12
阅读次数:
170
output_example.c 中AV同步的代码如下(我的代码有些修改),这个实现相当简单,不过挺说明问题。音视频同步方法:选择一个参考时钟,参考时钟上的时间是线性递增的,生成数据流时依据参考时钟上的时间给每个数据块都打上时间戳(一般包括开始时间和结束时间)。在播放时,读取数据块上的时间戳,同时参...
分类:
其他好文 时间:
2015-05-18 20:18:48
阅读次数:
172
故名思意, 如果一个指针是NULL, (NullPtr == NULL), 则 NullPtr->Method() 会产生异常。 但是根据被调用函数不同, 分为 (1)NullPtr->Virtual_Method()(2)NullPtr->Member_Method() 和 // ...
分类:
其他好文 时间:
2015-05-13 21:47:01
阅读次数:
241
1.1传统MVC模式
对于大部分面向最终用户的应用来说,他们都需要具有一个与用户进行交互的可视化UI界面,我们将这个UI称为视图(View)。在早期,我们倾向于将所有与UI相关的操作糅合在一起,这些操作包括UI界面的呈现、用户交互操作的捕捉与响应、业务流程的执行及对数据的存取等,我们将这种设计模式称为自治视图(Autonomuous View , AV)。
1.1....
分类:
Web程序 时间:
2015-05-09 23:39:03
阅读次数:
152