Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
01-08-2014, 11:58 AM
#1
LQ Newbie
Registered: Apr 2006
Location: Boulder, CO
Distribution: RHEL, CentOS, Ubuntu
Posts: 21
Rep:
Problems with ffmpeg and libvpx
Hi all,
I'm trying to use ffmpeg on CentOS 6 to transcode video, but it's hanging up on vpx libraries. Most of the stock CentOS or EPEL stuff was too old so I had to install from source. Here is the output I'm getting:
Quote:
[user@server bin]# ./ffmpeg -i input.mov -acodec libvorbis -vcodec libvpx test.webm
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 8 2014 12:17:05 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-libvpx --enable-libtheora --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png --enable-decoder=vp8
avutil configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png
avcodec configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png
avformat configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png
avdevice configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png
avfilter configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png
swscale configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png
swresample configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png
postproc configuration: --enable-gpl --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-postproc --disable-debug --enable-shared --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaac --enable-encoder=png --enable-decoder=png
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1c76900] decoding for stream 0 failed
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2014-01-07 03:04:53
Duration: 02:49:10.24, start: 0.000000, bitrate: 119 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1368x768 [SAR 1:1 DAR 57:32], 61 kb/s, 0.65 fps, 600 tbr, 600 tbn, 1200 tbc (default)
Metadata:
creation_time : 2014-01-07 03:04:53
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 49 kb/s (default)
Metadata:
creation_time : 2014-01-07 03:04:53
handler_name : Apple Alias Data Handler
Stream #0:2(eng): Data: none (rtp / 0x20707472), 6 kb/s
Metadata:
creation_time : 2014-01-07 03:04:53
handler_name : Apple Alias Data Handler
Stream #0:3(und): Data: none (rtp / 0x20707472), 2 kb/s
Metadata:
creation_time : 2014-01-07 03:04:53
handler_name : Apple Alias Data Handler
Unknown encoder 'libvpx'
As you can see, I did compile ffmpeg with the --enable-libvpx option, so I'm stumped on why it's telling me that the libvpx encoder is unknown. I did compile libvpx from source from the latest snapshot, v1.2.0. Any suggestions? Thanks!
01-08-2014, 06:29 PM
#2
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Rep:
try 'ffmpeg -codecs | grep vpx'
i think you have only decode options available
01-09-2014, 08:36 AM
#3
LQ Newbie
Registered: Apr 2006
Location: Boulder, CO
Distribution: RHEL, CentOS, Ubuntu
Posts: 21
Original Poster
Rep:
Hmmm, you're right. I wonder why the ffmpeg site lists vpx as a supported codec? Looks like I have some more digging to do, thanks.
01-09-2014, 12:25 PM
#4
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Rep:
ok, i installed libvpx-1.2.0 from git snapshot, installed with
Code:
CFLAGS="-O2 -fPIC -march=corei7 -pipe" ./configure --prefix=/usr --libdir=/usr/lib64 --enable-shared --disable-static
then recompiled ffmpeg with
Code:
CFLAGS="-O2 -fPIC -march=corei7 -pipe" CXXFLAGS="-O2 -fPIC -march=corei7 -pipe" ./configure --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --enable-gpl --enable-version3 --enable-nonfree --disable-static --enable-shared --enable-x11grab --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-openssl --enable-avresample --disable-debug
(just adding --enable-libvpx to be sure); now, my ffmpeg says
Code:
~/work/ffmpeg-2.1.1$ ffmpeg -codecs | grep "vpx"
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 9 2014 19:16:47 with gcc 4.8.2 (GCC)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --enable-gpl --enable-version3 --enable-nonfree --disable-static --enable-shared --enable-x11grab --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-openssl --enable-avresample --disable-debug
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
DEV.L. vp8 On2 VP8 (decoders: vp8 libvpx ) (encoders: libvpx )
check if /usr/lib*/libvpx.so.1.2.0 exists (but ffmpeg should notice it)
Code:
~/work/ffmpeg-2.1.1$ ldd /usr/bin/ffmpeg | grep "vpx"
libvpx.so.1 => /usr/lib64/libvpx.so.1 (0x00007f86fce39000)
Last edited by gengisdave; 01-09-2014 at 12:26 PM .
01-10-2014, 09:07 AM
#5
LQ Newbie
Registered: Apr 2006
Location: Boulder, CO
Distribution: RHEL, CentOS, Ubuntu
Posts: 21
Original Poster
Rep:
I was able to get it to work by re-ordering the options in the configure script. Thanks for your input, and thanks to Carl on the ffmpeg-user list that gave me the solution. If anyone wants to see the thread, it's here:
http://ffmpeg.org/pipermail/ffmpeg-u...ry/019292.html
For the morbidly curious, here are the options I used:
Quote:
--enable-gpl --enable-libx264 --enable-libvorbis --enable-libvpx --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libxvid --enable-pthreads --enable-postproc --disable-debug --enable-shared
Marking thread as solved.
Last edited by lancherider; 01-10-2014 at 09:09 AM .
All times are GMT -5. The time now is 08:18 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News