Bug 4274

Summary: libxvid support?
Product: Fedora Reporter: leigh scott <leigh123linux>
Component: ffmpegAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: RESOLVED FIXED    
Severity: enhancement CC: belegdol, kwizart
Priority: P1    
Version: unspecified   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description leigh scott 2016-10-01 13:28:50 CEST
Why does ffmpeg have no lixvid support?
Comment 1 Nicolas Chauvet 2016-10-01 13:53:48 CEST
I guess you mean libxvid ? According to build.log, there is support ?
Do you have a different output ?
Comment 2 Nicolas Chauvet 2016-10-01 13:57:14 CEST
Actually I've checked the f23 ffmpeg 2.8 build.log and it's there.
But not in f26's ffmpeg 3.1. There is still a --enable-libxvid in ffmpeg git.
Comment 3 leigh scott 2016-10-01 14:05:26 CEST
libxvid support is also missing in F24 ffmpeg

https://koji.rpmfusion.org/koji/rpminfo?rpmID=43947
Comment 5 Nicolas Chauvet 2016-10-01 14:24:58 CEST
Well, have you checked that it wasn't possible to read a xvid file ?
ffmpeg might have internal xvid decoder, so using the external libxvid might not be required...
Comment 6 leigh scott 2016-10-01 14:47:05 CEST
(In reply to Nicolas Chauvet from comment #5)
> Well, have you checked that it wasn't possible to read a xvid file ?
> ffmpeg might have internal xvid decoder, so using the external libxvid might
> not be required...

I needed the encoder

[leigh@main_pc curlew-0.2.2]$ ffmpeg -encoders |grep xvid
ffmpeg version 3.1.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.1.1 (GCC) 20160621 (Red Hat 6.1.1-3)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --extra-cflags=-I/usr/include/nvenc --enable-openal --enable-opencl --enable-libopencv --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[leigh@main_pc curlew-0.2.2]$


With my commit

[leigh@main_pc curlew-0.2.2]$ ffmpeg -encoders |grep xvid
ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.2.1 (GCC) 20160916 (Red Hat 6.2.1-2)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libfdk-aac --enable-nonfree --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --extra-cflags=-I/usr/include/nvenc --enable-openal --enable-opencl --enable-libopencv --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
 V..... libxvid              libxvidcore MPEG-4 part 2 (codec mpeg4)
Comment 7 Dominik 'Rathann' Mierzejewski 2016-10-03 18:53:48 CEST
(In reply to leigh scott from comment #6)
> (In reply to Nicolas Chauvet from comment #5)
> > Well, have you checked that it wasn't possible to read a xvid file ?
> > ffmpeg might have internal xvid decoder, so using the external libxvid might
> > not be required...
> 
> I needed the encoder

Is there a particular reason to use the xvidcore codec for encoding? The native MPEG-4 part 2 codec is just as good.
Comment 8 Dominik 'Rathann' Mierzejewski 2016-10-03 18:55:28 CEST
(In reply to leigh scott from comment #4)
> This commit seems to disable support
> 
> https://pkgs.rpmfusion.org/cgit/free/ffmpeg.git/commit/
> ?id=1c686737ff9ad8e2fdf08aef3c1216c1d5dc32bd

Yes, that was intentional to trim unnecessary dependencies which don't add any new features.

> I've committed a fix for the issue
> 
> https://pkgs.rpmfusion.org/cgit/free/ffmpeg.git/commit/
> ?id=97cbc703d7e855809b983f1e296e2c98fa1f1676

I'd prefer it if you didn't revert my commits without any discussion.
Comment 9 leigh scott 2016-10-03 19:09:25 CEST
(In reply to Dominik 'Rathann' Mierzejewski from comment #8)
> (In reply to leigh scott from comment #4)
> > This commit seems to disable support
> > 
> > https://pkgs.rpmfusion.org/cgit/free/ffmpeg.git/commit/
> > ?id=1c686737ff9ad8e2fdf08aef3c1216c1d5dc32bd
> 
> Yes, that was intentional to trim unnecessary dependencies which don't add
> any new features.
> 
> > I've committed a fix for the issue
> > 
> > https://pkgs.rpmfusion.org/cgit/free/ffmpeg.git/commit/
> > ?id=97cbc703d7e855809b983f1e296e2c98fa1f1676
> 
> I'd prefer it if you didn't revert my commits without any discussion.

I intend to package curlew and it complained about the missing encoder libxvid https://sourceforge.net/projects/curlew/files/