首页 \ 问答 \ 使用FFMPEG与Visual Studio 2013 Express的链接器错误(Linker error using FFMPEG with Visual Studio 2013 Express)

使用FFMPEG与Visual Studio 2013 Express的链接器错误(Linker error using FFMPEG with Visual Studio 2013 Express)

我正在尝试使用FFMPEG库编写程序。 我在这个链接中读到了。 我从http://ffmpeg.zeranoe.com/builds/下载了Shared和Devs文件。

我创建了一个控制台项目,这是配置:

其他图书馆目录 在此处输入图像描述

附加包含目录 在此处输入图像描述

这是我的代码:

#include "stdafx.h"
#pragma comment (lib, "avformat.lib")
#pragma comment (lib, "avcodec.lib")
#pragma comment (lib, "avutil.lib")

extern "C"
{
    #ifndef __STDC_CONSTANT_MACROS
    #define __STDC_CONSTANT_MACROS
    #endif
    #include <libavcodec\avcodec.h>
    #include <libavformat\avformat.h>
    #include <libswscale\swscale.h>
    #include <libavutil\avutil.h>
}
int _tmain(int argc, _TCHAR* argv[])
{
    av_register_all();
    return 0;
}

我得到的错误是这样的:

错误1错误LNK2019:函数_wmain中引用的未解析的外部符号_av_register_all C:\ Users \ Andres \ Documents \ Visual Studio 2013 \ Projects \ PruebaFFMPEG \ PruebaFFMPEG \ PruebaFFMPEG.obj PruebaFFMPEG

错误2错误LNK1120:1个未解析的外部C:\ Users \ Andres \ Documents \ Visual Studio 2013 \ Projects \ PruebaFFMPEG \ Debug \ PruebaFFMPEG.exe PruebaFFMPEG

我错过了什么?


I am trying to write a program using FFMPEG libraries. I read about in this link. I downloaded Shared and Devs files from http://ffmpeg.zeranoe.com/builds/.

I created a console project and this is the configuration:

Additional Libraries Directories enter image description here

Additional Include Directories enter image description here

And here is my code:

#include "stdafx.h"
#pragma comment (lib, "avformat.lib")
#pragma comment (lib, "avcodec.lib")
#pragma comment (lib, "avutil.lib")

extern "C"
{
    #ifndef __STDC_CONSTANT_MACROS
    #define __STDC_CONSTANT_MACROS
    #endif
    #include <libavcodec\avcodec.h>
    #include <libavformat\avformat.h>
    #include <libswscale\swscale.h>
    #include <libavutil\avutil.h>
}
int _tmain(int argc, _TCHAR* argv[])
{
    av_register_all();
    return 0;
}

And the error I am getting is this:

Error 1 error LNK2019: unresolved external symbol _av_register_all referenced in function _wmain C:\Users\Andres\Documents\Visual Studio 2013\Projects\PruebaFFMPEG\PruebaFFMPEG\PruebaFFMPEG.obj PruebaFFMPEG

Error 2 error LNK1120: 1 unresolved externals C:\Users\Andres\Documents\Visual Studio 2013\Projects\PruebaFFMPEG\Debug\PruebaFFMPEG.exe PruebaFFMPEG

What am I missing?


原文:https://stackoverflow.com/questions/20672777
更新时间:2022-12-12 10:12

最满意答案

使用当前配额,您每天可以上传近660个视频。 如果你接近这个数字,你可以填写一个长形式的表格,你需要两杯咖啡,可能需要2个多小时才能完成。 如果您的应用与“服务条款”兼容,他们会在大约48小时内发送结果并批准结果。 它是免费的。

干杯。

编辑

它没有在任何地方记录,但最近(几乎从我回答这个问题的那天起),YouTube已经改变了数据api,每天它接受50个视频,之后它每15分钟只接受一个视频。 并且因为它仅在未经YouTube记录或解释的情况下应用,我们无法预测将会有什么限制。


With the current quota, you can upload near 660 videos a day. If you get close to that number you can fill that form which is a long form and you need two cups of coffee and perhaps more than 2 hours to do it. In around 48 hours, they will send the result and will approve it, if your app behaves compatible with "terms of service". And it's free.

Cheers.

Edit

It is not documented anywhere, but very recently (almost since the day I answered this question), YouTube has changed the data-api, that each day it accepts 50 videos, and afterward it accepts only one video per 15 minutes. And because it is just applied without being documented nor explained by YouTube, we cannot anticipate what the limitation is going to be.

相关问答

更多

相关文章

更多

最新问答

更多
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的
  • SimplePie问题(SimplePie Problem)
  • 在不同的任务中,我们可以同时使用多少“上下文”?(How many 'context' we can use at a time simultaneously in different tasks?)
  • HTML / Javascript:从子目录启用文件夹访问(HTML/Javascript: Enabling folder access from a subdirectory)
  • 为什么我会收到链接错误?(Why do I get a linker error?)
  • 如何正确定义析构函数(How to properly define destructor)
  • 垂直切换菜单打开第3级父级。(Vertical toggle menu 3rd level parent stay opened. jQuery)
  • 类型不匹配 - JavaScript(Type mismatch - JavaScript)
  • 为什么当我将模型传递给我的.Net MVC 4控制器操作时,它坚持在部分更新中使用它?(Why is it that when I pass a Model to my .Net MVC 4 Controller Action it insists on using it in the Partial Update?)
  • 在使用熊猫和statsmodels时拉取变量名称(Pulling variable names when using pandas and statsmodels)
  • 如何开启mysql计划事件
  • 检查数组的总和是否大于最大数,反之亦然javascript(checking if sum of array is greater than max number and vice versa javascript)
  • 使用OpenGL ES绘制轮廓(Drawing Outline with OpenGL ES)
  • java日历格式(java Calendar format)
  • Python PANDAS:将pandas / numpy转换为dask数据框/数组(Python PANDAS: Converting from pandas/numpy to dask dataframe/array)
  • 如何搜索附加在elasticsearch索引中的文档的内容(How to search a content of a document attached in elasticsearch index)
  • LinQ to Entities:做相反的查询(LinQ to Entities: Doing the opposite query)
  • 从ExtJs 4.1商店中删除记录时会触发哪些事件(Which events get fired when a record is removed from ExtJs 4.1 store)
  • 运行javascript后如何截取网页截图[关闭](How to take screenshot of a webpage after running javascript [closed])
  • 如何使用GlassFish打印完整的堆栈跟踪?(How can I print the full stack trace with GlassFish?)
  • 如何获取某个exe应用程序的出站HTTP请求?(how to get the outbound HTTP request of a certain exe application?)
  • 嗨,Android重叠背景片段和膨胀异常(Hi, Android overlapping background fragment and inflate exception)
  • Assimp详细说明typedef(Assimp elaborated type refers to typedef)
  • 初始化继承类中不同对象的列表(initialize list of different objects in inherited class)
  • 使用jquery ajax在gridview行中保存星级评分(Save star rating in a gridview row using jquery ajax)
  • Geoxml3 groundOverlay zIndex(Geoxml3 groundOverlay zIndex)