[Ffmpeg-devel] FFmpeg Theora encoding patch

Måns Rullgård mru
Sat Jan 6 22:44:04 CET 2007


"Paul Richards" <paul.richards at gmail.com> writes:

> Hi,
> Attached is my patch to add theora encoding to ffmpeg's libavcodec (by
> using libtheora).  I am requesting help to fix the bug I mention below
> and am seeking general comments before I submit the patch properly.
>
> Files encoded using this encoder have a problem playing in VLC.  The
> files will not play unless "Drop late frames" has been unticked in the
> advanced video settings.  Hopefully someone can tell me where this
> problem comes from.  I am not sure which API (FFmpeg or libtheora) I
> am misusing.
>
> Index: libavcodec/vp3.c
> ===================================================================
> --- libavcodec/vp3.c	(revision 7409)
> +++ libavcodec/vp3.c	(working copy)
> @@ -2643,7 +2643,6 @@
>      NULL
>  };
>  
> -#ifndef CONFIG_LIBTHEORA
>  AVCodec theora_decoder = {
>      "theora",
>      CODEC_TYPE_VIDEO,
> @@ -2656,4 +2655,3 @@
>      0,
>      NULL
>  };
> -#endif

Why?

> +OBJS-$(CONFIG_THEORA_ENCODER)          += theora_enc.o

Personally I'd prefer calling the file libtheoraenc.c or something
similar.  The name theoraenc.c should be reserved for a possible
future native implementation.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list