Changeset 3516


Ignore:
Timestamp:
May 25, 2009, 2:16:20 AM (11 years ago)
Author:
Sam Hocevar
Message:

Fix the FFmpeg headers location in example programs.

Location:
libpipi/trunk/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/examples/makemovie.c

    r3413 r3516  
    1919#include <string.h>
    2020
    21 #include <avformat.h>
    22 #include <swscale.h>
     21#include <libavformat/avformat.h>
     22#include <libswscale/swscale.h>
    2323
    2424#include <pipi.h>
     
    4646    pipi_pixels_t *p;
    4747    uint8_t *buffer, *tmp;
    48     int len;
     48    int f, len;
    4949
    5050    if(argc < 2)
     
    7474    ctx->sample_aspect_ratio.num = PAR_NUM;
    7575    ctx->sample_aspect_ratio.den = PAR_DEN;
    76     ctx->codec_id = fmt->oformat->video_codec;
     76    //ctx->codec_id = fmt->oformat->video_codec;
     77    //ctx->codec_id = CODEC_ID_FFV1;
     78    //ctx->codec_id = CODEC_ID_THEORA;
     79    //ctx->codec_id = CODEC_ID_SNOW;
     80    //ctx->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; /* Snow */
     81    ctx->codec_id = CODEC_ID_MJPEG;
    7782    ctx->codec_type = CODEC_TYPE_VIDEO;
    7883    ctx->bit_rate = BITRATE;
     
    115120    av_write_header(fmt);
    116121
    117     for(;;)
     122    for(f = 0; ; f++)
    118123    {
    119124        uint8_t *start;
     
    163168        if(av_interleaved_write_frame(fmt, &packet) < 0)
    164169            return EXIT_FAILURE;
     170
     171        fprintf(stderr, "frame %d\r", f);
    165172    }
     173
     174    fprintf(stderr, "\n");
    166175
    167176    av_write_trailer(fmt);
  • libpipi/trunk/examples/storyboard.c

    r3400 r3516  
    1919#include <string.h>
    2020
    21 #include <avcodec.h>
    22 #include <avformat.h>
    23 #include <swscale.h>
     21#include <libavcodec/avcodec.h>
     22#include <libavformat/avformat.h>
     23#include <libswscale/swscale.h>
    2424
    2525#include <pipi.h>
Note: See TracChangeset for help on using the changeset viewer.