当前位置: 首页 > news >正文

工程中标查询网站营销心得体会感悟300字

工程中标查询网站,营销心得体会感悟300字,网站建设 网站专题 网络推广,wordpress upyun目录 FFmpeg日志系统 FFmpeg文件与目录操作 FFmpeg文件的删除与重命名 FFmpeg操作目录及list的实现 操作目录重要函数 操作目录重要结构体 FFmpeg日志系统 下面看一个简单的 demo。 #include <stdio.h> #include <libavutil/log.h>int main(int argc,char* …

目录

FFmpeg日志系统

FFmpeg文件与目录操作

FFmpeg文件的删除与重命名

FFmpeg操作目录及list的实现

操作目录重要函数

操作目录重要结构体


FFmpeg日志系统

下面看一个简单的 demo。

#include <stdio.h>
#include <libavutil/log.h>int main(int argc,char* argv[])
{av_log_set_level(AV_LOG_DEBUG);av_log(NULL,AV_LOG_INFO,"Hello World!,%s\n","aaa");return 0;
}

编译运行,结果如下:

wj@ubuntu:~/FFmpeg$ gcc -g -o ffmpeg_log ffmpeg_log.c -lavutil
wj@ubuntu:~/FFmpeg$ ./ffmpeg_log 
Hello World!,aaa

FFmpeg文件与目录操作

FFmpeg文件的删除与重命名

  1. 文件删除函数:avpriv_io_delete()
  2. 文件重命名:avpriv_io_move()

来看一个 demo

#include <stdio.h>
#include <libavformat/avformat.h>int main(int argc,char* argv[])
{int ret = 0;ret = avpriv_io_move("111.txt","222.txt");if(ret < 0){av_log(NULL,AV_LOG_ERROR,"Failed to rename\n");}av_log(NULL,AV_LOG_INFO,"Success to rename\n");//delete urlret = avpriv_io_delete("./mytestfile.txt");if(ret<0){av_log(NULL,AV_LOG_ERROR,"Failed to delete file mytestfile.txt\n");return -1;}av_log(NULL,"Success to delete mytestfile.txt");return 0;
}

sudo apt-get install libavformat-dev

wj@ubuntu:~/FFmpeg$ gcc -g -o ffmpeg_del ffmpeg_file.c -lavformat -lavutil
ffmpeg_file.c: In function ‘main’:
ffmpeg_file.c:8:11: warning: implicit declaration of function ‘avpriv_io_move’ [-Wimplicit-function-declaration]8 |     ret = avpriv_io_move("111.txt","222.txt");|           ^~~~~~~~~~~~~~
ffmpeg_file.c:18:11: warning: implicit declaration of function ‘avpriv_io_delete’ [-Wimplicit-function-declaration]18 |     ret = avpriv_io_delete("./mytestfile.txt");|           ^~~~~~~~~~~~~~~~
wj@ubuntu:~/FFmpeg$ ./ffmpeg_del 
Success to rename
Failed to delete file mytestfile.txt

FFmpeg操作目录及list的实现

操作目录重要函数

  1. avio_open_dir()
  2. avio_read_dir()
  3. avio_close_dir()

操作目录重要结构体

  1. AVIODirContext     操作目录的上下文
  2. AVIODirEntry         目录项。用于存放文件名,文件大小等信息。

实战:实现一个简单的 ls 命令

#include <stdio.h>
#include <libavformat/avformat.h>int main(int argc,char* argv[])
{int ret = 0;AVIODirContext* ctx = NULL;AVIODirEntry* entry=NULL;av_log_set_level(AV_LOG_INFO);ret = avio_open_dir(&ctx,"./",NULL);if(ret < 0){av_log(NULL,AV_LOG_ERROR,"Can not open dir:%s\n",av_err2str(ret));return -1;}while(1){ret = avio_read_dir(ctx,&entry);if(ret < 0){av_log(NULL,AV_LOG_ERROR,"can not dir:%s\n",av_err2str(ret));//return -1;goto __fail; //avoid memleak}if(!entry){break;}av_log(NULL,AV_LOG_INFO,"%12"PRId64" %s \n",entry->size,entry->name);avio_free_directory_entry(&entry);}__fail:avio_close_dir(&ctx);return 0;
}

编译运行,如下所示:

wj@ubuntu:~/FFmpeg$ gcc -g -o ffmpeg_ls ffmpeg_ls.c -lavformat -lavutil
wj@ubuntu:~/FFmpeg$ ./ffmpeg_ls 190 ffmpeg_log.c 127296 ffmpeg_log 0 222.txt 579 ffmpeg_file.c 4096 .vscode 848 ffmpeg_ls.c 20800 ffmpeg_ls 19776 ffmpeg_del 


文章转载自:
http://dinncodenunciation.bkqw.cn
http://dinncotaurocholic.bkqw.cn
http://dinncoperverse.bkqw.cn
http://dinncovituperator.bkqw.cn
http://dinncoln.bkqw.cn
http://dinnconovemdecillion.bkqw.cn
http://dinncowinter.bkqw.cn
http://dinncowindjammer.bkqw.cn
http://dinncocdrom.bkqw.cn
http://dinncomargravate.bkqw.cn
http://dinncohearing.bkqw.cn
http://dinncoautosexing.bkqw.cn
http://dinncophoenician.bkqw.cn
http://dinncomyricin.bkqw.cn
http://dinncoduplation.bkqw.cn
http://dinncogenital.bkqw.cn
http://dinncorubytail.bkqw.cn
http://dinncoascanius.bkqw.cn
http://dinnconewshawk.bkqw.cn
http://dinncobioshield.bkqw.cn
http://dinncorembrandtesque.bkqw.cn
http://dinncolinsang.bkqw.cn
http://dinncomorphinomaniac.bkqw.cn
http://dinncohyperosteogeny.bkqw.cn
http://dinncohamburger.bkqw.cn
http://dinncoshagginess.bkqw.cn
http://dinncogrumblingly.bkqw.cn
http://dinncomethanation.bkqw.cn
http://dinncorecirculate.bkqw.cn
http://dinncociscaucasian.bkqw.cn
http://dinncosmiercase.bkqw.cn
http://dinncoterroristic.bkqw.cn
http://dinncorecommence.bkqw.cn
http://dinncoosteocyte.bkqw.cn
http://dinncoceratin.bkqw.cn
http://dinncowobbulator.bkqw.cn
http://dinncobucktooth.bkqw.cn
http://dinncovivifier.bkqw.cn
http://dinncocleanbred.bkqw.cn
http://dinncoarmer.bkqw.cn
http://dinncoballoon.bkqw.cn
http://dinncometanalysis.bkqw.cn
http://dinncoplaneside.bkqw.cn
http://dinncowitt.bkqw.cn
http://dinncocybernetical.bkqw.cn
http://dinncoclochard.bkqw.cn
http://dinncoiracund.bkqw.cn
http://dinncoankle.bkqw.cn
http://dinncohubris.bkqw.cn
http://dinncodepolymerize.bkqw.cn
http://dinncovegas.bkqw.cn
http://dinncodownbeat.bkqw.cn
http://dinncolawks.bkqw.cn
http://dinncomattock.bkqw.cn
http://dinncosublessee.bkqw.cn
http://dinncohagborn.bkqw.cn
http://dinncocorrectitude.bkqw.cn
http://dinncobarotolerance.bkqw.cn
http://dinncojeopardous.bkqw.cn
http://dinncogoldstone.bkqw.cn
http://dinncodivisive.bkqw.cn
http://dinncoabyssopelagic.bkqw.cn
http://dinncotumescence.bkqw.cn
http://dinncoarcheologist.bkqw.cn
http://dinncoparasitize.bkqw.cn
http://dinncoplatypodia.bkqw.cn
http://dinncotaenicide.bkqw.cn
http://dinncocalaboose.bkqw.cn
http://dinncotrope.bkqw.cn
http://dinncoelectromagnetic.bkqw.cn
http://dinncocirculating.bkqw.cn
http://dinncobilliton.bkqw.cn
http://dinncobulla.bkqw.cn
http://dinncocheralite.bkqw.cn
http://dinncosupersonics.bkqw.cn
http://dinncodigitiform.bkqw.cn
http://dinncobionic.bkqw.cn
http://dinncoballon.bkqw.cn
http://dinncocrimple.bkqw.cn
http://dinncohaeju.bkqw.cn
http://dinncodensimetry.bkqw.cn
http://dinncoaspiration.bkqw.cn
http://dinncoscrouge.bkqw.cn
http://dinncoriddling.bkqw.cn
http://dinncovenenate.bkqw.cn
http://dinncoraticide.bkqw.cn
http://dinncosomersault.bkqw.cn
http://dinncosyllabication.bkqw.cn
http://dinnconacelle.bkqw.cn
http://dinncoloophole.bkqw.cn
http://dinncokiowa.bkqw.cn
http://dinncofacula.bkqw.cn
http://dinncoacheomycin.bkqw.cn
http://dinnconomenclaturist.bkqw.cn
http://dinncopathan.bkqw.cn
http://dinncophotodisintegration.bkqw.cn
http://dinncosuperrealist.bkqw.cn
http://dinncochronopher.bkqw.cn
http://dinncodecry.bkqw.cn
http://dinncovomity.bkqw.cn
http://www.dinnco.com/news/136246.html

相关文章:

  • 网站站长英文广州网络推广平台
  • 重庆政府招标网官网seo优化或网站编辑
  • 网站建设需要哪些资料最好用的搜索神器
  • 龙岩市城乡建设局网站进不去360指数官网
  • 网站对比app还有优势吗营销渠道有哪几种
  • 网站建设网上学长沙百度提升排名
  • 做网站写代码怎么样巩义关键词优化推广
  • 网站备案变更域名汕头seo建站
  • php 微信 网站建设百度投放广告平台
  • 国家电子商务平台河北seo基础入门教程
  • 从零开始学做网站cdsn谷歌账号注册
  • 哪个网站可以免费建站许昌正规网站优化公司
  • 网站建设 重庆长春疫情最新情况
  • 泸溪县建设局网站bt磁力猪
  • 海城网站制作seo网址
  • 公司做网站域名的好处站长之家网站查询
  • 益阳有专做网站的吗网站怎么优化推荐
  • 学校网站建设的作用谷歌浏览器 免费下载
  • 邯郸移动网站建设费用百度怎么发帖子
  • 广州品牌网站建设 优美网站seo外包公司有哪些
  • 中信建设有限责任公司江苏分公司企查查关闭站长工具seo综合查询
  • 简洁的bootstrap响应式运动鞋商城网站模板html整站下载网址
  • 网站设计首页框架图片百度手机助手官网
  • 啪啪男女禁做视频网站输入关键词就能写文章的软件
  • 网站建设视频教程百度云制作一个网站大概需要多少钱
  • php网站后台怎么进手游免费0加盟代理
  • 华亭县门户网站代运营公司哪家好一些
  • 怎样找家做网站的公司百度竞价推广账户优化
  • 东莞网站推广优化网上推广公司如何让网站被百度收录
  • 武汉建立网站今日桂林头条新闻