Replace outdated references to ffmpeg tool with avconv.

pull/2/head
Diego Biurrun 13 years ago
parent 124e28847b
commit 20566eb0f0
  1. 2
      avplay.c
  2. 6
      avserver.c
  3. 2
      libavcodec/adxenc.c
  4. 6
      libavcodec/libxvidff.c
  5. 2
      libavformat/cutils.c
  6. 4
      libavformat/http.c
  7. 2
      libavformat/movenc.h
  8. 6
      libavformat/nsvdec.c

@ -2997,7 +2997,7 @@ static const OptionDef options[] = {
#endif #endif
{ "rdftspeed", OPT_INT | HAS_ARG| OPT_AUDIO | OPT_EXPERT, {(void*)&rdftspeed}, "rdft speed", "msecs" }, { "rdftspeed", OPT_INT | HAS_ARG| OPT_AUDIO | OPT_EXPERT, {(void*)&rdftspeed}, "rdft speed", "msecs" },
{ "default", HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" }, { "default", HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" },
{ "i", 0, {NULL}, "ffmpeg compatibility dummy option", ""}, { "i", 0, {NULL}, "avconv compatibility dummy option", ""},
{ NULL, }, { NULL, },
}; };

@ -223,8 +223,8 @@ typedef struct FFStream {
char title[512]; char title[512];
char copyright[512]; char copyright[512];
char comment[512]; char comment[512];
pid_t pid; /* Of ffmpeg process */ pid_t pid; /* of avconv process */
time_t pid_start; /* Of ffmpeg process */ time_t pid_start; /* of avconv process */
char **child_argv; char **child_argv;
struct FFStream *next; struct FFStream *next;
unsigned bandwidth; /* bandwidth, in kbits/s */ unsigned bandwidth; /* bandwidth, in kbits/s */
@ -474,7 +474,7 @@ static void start_children(FFStream *feed)
slash = pathname; slash = pathname;
else else
slash++; slash++;
strcpy(slash, "ffmpeg"); strcpy(slash, "avconv");
http_log("Launch commandline: "); http_log("Launch commandline: ");
http_log("%s ", pathname); http_log("%s ", pathname);

@ -145,7 +145,7 @@ static int adx_encode_frame(AVCodecContext *avctx,
/* /*
input data size = input data size =
ffmpeg.c: do_audio_out() avconv.c:do_audio_out()
frame_bytes = enc->frame_size * 2 * enc->channels; frame_bytes = enc->frame_size * 2 * enc->channels;
*/ */

@ -137,7 +137,7 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) {
xvid_enc_create_t xvid_enc_create; xvid_enc_create_t xvid_enc_create;
xvid_enc_plugin_t plugins[7]; xvid_enc_plugin_t plugins[7];
/* Bring in VOP flags from ffmpeg command-line */ /* Bring in VOP flags from avconv command-line */
x->vop_flags = XVID_VOP_HALFPEL; /* Bare minimum quality */ x->vop_flags = XVID_VOP_HALFPEL; /* Bare minimum quality */
if( xvid_flags & CODEC_FLAG_4MV ) if( xvid_flags & CODEC_FLAG_4MV )
x->vop_flags |= XVID_VOP_INTER4V; /* Level 3 */ x->vop_flags |= XVID_VOP_INTER4V; /* Level 3 */
@ -191,7 +191,7 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) {
break; break;
} }
/* Bring in VOL flags from ffmpeg command-line */ /* Bring in VOL flags from avconv command-line */
x->vol_flags = 0; x->vol_flags = 0;
if( xvid_flags & CODEC_FLAG_GMC ) { if( xvid_flags & CODEC_FLAG_GMC ) {
x->vol_flags |= XVID_VOL_GMC; x->vol_flags |= XVID_VOL_GMC;
@ -669,7 +669,7 @@ static int xvid_ff_2pass_create(xvid_plg_create_t * param,
/* This is because we can safely prevent a buffer overflow */ /* This is because we can safely prevent a buffer overflow */
log[0] = 0; log[0] = 0;
snprintf(log, BUFFER_REMAINING(log), snprintf(log, BUFFER_REMAINING(log),
"# ffmpeg 2-pass log file, using xvid codec\n"); "# avconv 2-pass log file, using xvid codec\n");
snprintf(BUFFER_CAT(log), BUFFER_REMAINING(log), snprintf(BUFFER_CAT(log), BUFFER_REMAINING(log),
"# Do not modify. libxvidcore version: %d.%d.%d\n\n", "# Do not modify. libxvidcore version: %d.%d.%d\n\n",
XVID_VERSION_MAJOR(XVID_VERSION), XVID_VERSION_MAJOR(XVID_VERSION),

@ -24,7 +24,7 @@
/* add one element to a dynamic array */ /* add one element to a dynamic array */
void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem) void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem)
{ {
/* see similar ffmpeg.c:grow_array() */ /* see similar avconv.c:grow_array() */
int nb, nb_alloc; int nb, nb_alloc;
intptr_t *tab; intptr_t *tab;

@ -1,5 +1,5 @@
/* /*
* HTTP protocol for ffmpeg client * HTTP protocol for avconv client
* Copyright (c) 2000, 2001 Fabrice Bellard * Copyright (c) 2000, 2001 Fabrice Bellard
* *
* This file is part of Libav. * This file is part of Libav.
@ -31,7 +31,7 @@
#include "url.h" #include "url.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
/* XXX: POST protocol is not completely implemented because ffmpeg uses /* XXX: POST protocol is not completely implemented because avconv uses
only a subset of it. */ only a subset of it. */
/* used for protocol handling */ /* used for protocol handling */

@ -35,7 +35,7 @@
#define MODE_MOV 0x02 #define MODE_MOV 0x02
#define MODE_3GP 0x04 #define MODE_3GP 0x04
#define MODE_PSP 0x08 // example working PSP command line: #define MODE_PSP 0x08 // example working PSP command line:
// ffmpeg -i testinput.avi -f psp -r 14.985 -s 320x240 -b 768 -ar 24000 -ab 32 M4V00001.MP4 // avconv -i testinput.avi -f psp -r 14.985 -s 320x240 -b 768 -ar 24000 -ab 32 M4V00001.MP4
#define MODE_3G2 0x10 #define MODE_3G2 0x10
#define MODE_IPOD 0x20 #define MODE_IPOD 0x20

@ -71,7 +71,11 @@
* so the header seems to not be mandatory. (for streaming). * so the header seems to not be mandatory. (for streaming).
* *
* index slice duration check (excepts nsvtrailer.nsv): * index slice duration check (excepts nsvtrailer.nsv):
* for f in [^n]*.nsv; do DUR="$(ffmpeg -i "$f" 2>/dev/null | grep 'NSVf duration' | cut -d ' ' -f 4)"; IC="$(ffmpeg -i "$f" 2>/dev/null | grep 'INDEX ENTRIES' | cut -d ' ' -f 2)"; echo "duration $DUR, slite time $(($DUR/$IC))"; done * for f in [^n]*.nsv; do
* DUR="$(avconv -i "$f" 2> /dev/null | grep 'NSVf duration' | cut -d ' ' -f 4)"
* IC="$(avconv -i "$f" 2> /dev/null | grep 'INDEX ENTRIES' | cut -d ' ' -f 2)"
* echo "duration $DUR, slite time $(($DUR/$IC))"
* done
*/ */
/* /*

Loading…
Cancel
Save