小编don*_*ome的帖子

FFmpeg:对av_frame_alloc()的未定义引用

我想进入FFmpeg开发,我开始关注这些示例教程:这里

我从第一个教程 - tutorial01.c开始 - 但我遇到了这个'未定义的av_frame_alloc()'引用.

我在Ubuntu 12.04 LTS上.

这是我的计划:

/* 
 * File:   main.c
 * Author: dontrythisathome
 *
 * Created on 3 giugno 2014, 23.02
 */

#include <stdio.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/frame.h>
#include <libswscale/swscale.h>
/*
 *
 */
void SaveFrame(AVFrame *pFrame, int width, int height, int iFrame)
    {
        FILE   *pFile;
        char  szFilename[32];
        int       y;

        //Apre il file
        sprintf(szFilename, "frame%d.ppm", iFrame);
        pFile=fopen(szFilename, "wb");
        if(pFile==NULL)
        {return; }

        //Scrive l'intestazione del file ( Larghezza x Altezza su video)
        fprintf(pFile, "P6\n%d %d\n255\n", …
Run Code Online (Sandbox Code Playgroud)

c ubuntu ffmpeg compilation

10
推荐指数
2
解决办法
2万
查看次数

标签 统计

c ×1

compilation ×1

ffmpeg ×1

ubuntu ×1