ffmpeg main函数
来源:互联网 发布:mac桌面文件放哪里 编辑:程序博客网 时间:2024/06/05 03:52
int main(int argc, char **argv){ int64_t ti; av_log_set_flags(AV_LOG_SKIP_REPEATED); parse_loglevel(argc, argv, options); avcodec_register_all();#if CONFIG_AVDEVICE avdevice_register_all();#endif#if CONFIG_AVFILTER avfilter_register_all();#endif av_register_all(); avformat_network_init(); avio_set_interrupt_cb(decode_interrupt_cb); init_opts(); show_banner(); av_log(NULL, AV_LOG_WARNING, "*** THIS PROGRAM IS DEPRECATED ***\n" "This program is only provided for compatibility " "and will be removed in a future release. Please " "use avconv instead.\n"); /* parse options */ parse_options(NULL, argc, argv, options, opt_output_file); if(nb_output_files <= 0 && nb_input_files == 0) { show_usage(); fprintf(stderr, "Use -h to get full help or, even better, run 'man ffmpeg'\n"); exit_program(1); } /* file converter / grab */ if (nb_output_files <= 0) { fprintf(stderr, "At least one output file must be specified\n"); exit_program(1); } if (nb_input_files == 0) { fprintf(stderr, "At least one input file must be specified\n"); exit_program(1); } ti = getutime(); if (transcode(output_files, nb_output_files, input_files, nb_input_files, stream_maps, nb_stream_maps) < 0) exit_program(1); ti = getutime() - ti; if (do_benchmark) { int maxrss = getmaxrss() / 1024; printf("bench: utime=%0.3fs maxrss=%ikB\n", ti / 1000000.0, maxrss); } exit_program(0); return 0;}
接下来就开始逐行阅读,随着代码阅读的过程,会逐渐的完善注释
0 0
- ffmpeg main函数
- ffmpeg main函数
- ffmpeg源码分析二:main函数和transcode函数
- FFmpeg Android 移植,改 main 函数JNI调用
- FFmpeg For Android (三) 移植main函数到安卓上执行ffmpeg命令
- ffmpeg源码分析二:main函数和transcode函数 (转2)
- main()函数
- main函数
- main函数
- main函数
- main函数
- main函数
- main()函数
- main函数
- main函数
- main()函数
- main函数
- main函数
- Highcharts X轴文字竖排
- javascript 数据结构 之 单链表
- libxml使用记录
- Android开发---001:开发环境搭建及HelloWorld
- CentOS6.3文字界面下使用yum安装Gnome桌面
- ffmpeg main函数
- SQL Server 2005 行号、合并、分组
- 对easyui datagrid 进行扩展拉动滚动条到底部自动加载数据《二》
- TRILL技术及其组网模型
- Windows Phone8 使用组播通信
- Python用subprocess的Popen来调用系统命令
- about cache
- 我开始泡面了——判断一个数是否是质数
- asp.net调用接收存储过程返回值