Nux!


Home » Repos » Report a problem or request a package » ffmpeg update with webm support (ffmpeg update with webm support for centos 7 x86_64)
ffmpeg update with webm support [message #3038] Sun, 22 February 2015 16:13 Go to next message
tjcarol is currently offline  tjcarol
Messages: 3
Registered: February 2015
Junior Member
I installed ffmpeg from your repo but it does not seem to have support for webm files
Re: ffmpeg update with webm support [message #3039 is a reply to message #3038] Sun, 22 February 2015 17:25 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1645
Registered: January 2012
Senior Member
Administrator

Hello,

What exactly have you tried?
Re: ffmpeg update with webm support [message #3040 is a reply to message #3039] Tue, 24 February 2015 13:17 Go to previous messageGo to next message
tjcarol is currently offline  tjcarol
Messages: 3
Registered: February 2015
Junior Member
just something simple like

ffmpeg -i some-movie.avi some-movie.webm

this is what's output
ffmpeg version 2.3.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Dec 4 2014 09:23:21 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)
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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --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-runtime-cpudetect
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libavresample 1. 3. 0 / 1. 3. 0
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, avi, from 'some-movie.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.2 (build 2540/release)
Duration: 01:39:09.99, start: 0.000000, bitrate: 987 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 656x272 [SAR 1:1 DAR 41:17], 828 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 146 kb/s
Output #0, webm, to 'some-movie.webm':
Metadata:
encoder : VirtualDubMod 1.5.10.2 (build 2540/release)
Stream #0:0: Video: vp8, q=2-31, 128 kb/s
Stream #0:1: Audio: vorbis, 0 channels, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> ? (?))
Stream #0:1 -> #0:1 (mp3 (native) -> vorbis (libvorbis))
Encoder (codec vp8) not found for output stream #0:0

I have the codec installed

[root@titan ~]# yum install libvpx.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirror.rafal.ca
* centosplus: mirror.csclub.uwaterloo.ca
* epel: mirror.csclub.uwaterloo.ca
* extras: centos.mirror.rafal.ca
* nux-dextop: mirror.li.nux.ro
* updates: mirror.netflash.net
Package libvpx-1.3.0-5.el7_0.x86_64 already installed and latest version
Nothing to do

The same command will work on my fedora 20 laptop

Re: ffmpeg update with webm support [message #3041 is a reply to message #3038] Wed, 25 February 2015 08:50 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1645
Registered: January 2012
Senior Member
Administrator

Roger that, I'll try to fix this, thanks for reporting.

In the meanwhile you can use the ffmpeg static builds at
http://johnvansickle.com/ffmpeg/ or
http://ffmpeg.gusari.org/static/
Re: ffmpeg update with webm support [message #3042 is a reply to message #3041] Wed, 25 February 2015 14:21 Go to previous messageGo to next message
tjcarol is currently offline  tjcarol
Messages: 3
Registered: February 2015
Junior Member
perfect thanks

and thank you for your excellent service and work!
Re: ffmpeg update with webm support [message #3043 is a reply to message #3038] Wed, 25 February 2015 16:49 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1645
Registered: January 2012
Senior Member
Administrator

Hey, thanks.
I've issued an updated version with support for vpx enabled. Worked in my tests.
Re: ffmpeg update with webm support [message #3823 is a reply to message #3043] Sun, 23 April 2017 10:28 Go to previous messageGo to next message
neek is currently offline  neek
Messages: 2
Registered: April 2017
Junior Member
I know this is an old thread but the subject is still the same. Please see my comment at https:<slashslash>www.centos.org/forums/viewtopic.php?p=262553#p262548

I found the nux ffmpeg package didn't have vpx support. I have ended up building my own from sources, without using nux.

TrevorH replied to my post saying I should post here, so here I am Smile Has libvpx support been removed from nux ffmpeg for some reason (or accidentally)?

Thanks!
Nick
Re: ffmpeg update with webm support [message #3824 is a reply to message #3038] Sun, 23 April 2017 12:45 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1645
Registered: January 2012
Senior Member
Administrator

Hi Nick,

I build ffmpeg without libvpx because libvpx in CentOS is too old for ffmpeg to recognise and use.
The solution would be to ship a libvpx that would overwrite Base package, which is a no-no in my book.
How did you build yours? I'm open to suggestions.

Generally my recommendation to people who just want an up to date binary is to use those from here:
https://johnvansickle.com/ffmpeg/
icon14.gif  Re: ffmpeg update with webm support [message #3834 is a reply to message #3043] Sat, 20 May 2017 07:13 Go to previous message
neek is currently offline  neek
Messages: 2
Registered: April 2017
Junior Member
Hi nux, sorry for late reply, only just saw your reply.

I ended up building everything from source following one of the guides like https:<slashslash>trac.ffmpeg.org/wiki/CompilationGuide/Centos (I can't remember exactly which guide, there are a few that basically have the same steps). I would much rather use a packaged version of everything, but at least this way my libraries are more up to date than whatever is shipped with CentOS.

I don't have any better solutions for the libvpx problem, and I'm quite out of date with my *nix build skills. Perhaps you could compile just that library in statically, or otherwise include it in your ffmpeg package, just for the troublesome CentOS platform? It's a shame they're out of date.

I will be moving to CentOS 7 on a new server soon, from 6.9, I wonder if 7 will have more up to date libraries and not have this libvpx issue?

Weirdly, just a few days ago i started getting this when encoding webm:

[libvorbis @ 0x40ea860] encoder setup failed
Error initializing output stream 0:1 -- Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height


I finally found that removing '-b:a 128k' from the command line causes it to work. I don't know why this switch has worked fine the past few weeks.

For the record, my command line now looks like:

ffmpeg -i hd_video.mp4 -codec:v libvpx -cpu-used 0 -b:v 500k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1000k -threads 4 -vf scale=-1:480 -codec:a libvorbis out.mp4


Thanks for the link to the static binaries .. I'll certainly keep that in mind if we run into further trouble with our setup.

Cheers
Nick
Previous Topic: VLC 2.2.2 Weatherwax on CentOS 7
Next Topic: Request update for deluge package to version 1.3.15 for EPL7
Goto Forum:
  


Current Time: Tue Jan 22 21:47:56 GMT 2019

Total time taken to generate the page: 0.03419 seconds