LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-08-2014, 11:58 AM   #1
lancherider
LQ Newbie
 
Registered: Apr 2006
Location: Boulder, CO
Distribution: RHEL, CentOS, Ubuntu
Posts: 21

Rep: Reputation: 0
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!
 
Old 01-08-2014, 06:29 PM   #2
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
try 'ffmpeg -codecs | grep vpx'

i think you have only decode options available
 
Old 01-09-2014, 08:36 AM   #3
lancherider
LQ Newbie
 
Registered: Apr 2006
Location: Boulder, CO
Distribution: RHEL, CentOS, Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
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.
 
Old 01-09-2014, 12:25 PM   #4
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
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.
 
Old 01-10-2014, 09:07 AM   #5
lancherider
LQ Newbie
 
Registered: Apr 2006
Location: Boulder, CO
Distribution: RHEL, CentOS, Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
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.
 
  


Reply

Tags
centos6, ffmpeg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg libc problems funkyslacker Linux - Software 2 12-09-2013 04:16 PM
[slackbuilds.org, slack14.0]: libvpx compile failed h-warp Slackware 2 10-21-2012 08:39 AM
Installing ffmpeg problems awww Linux - Software 11 11-10-2010 12:32 AM
Error when cross-compile libvpx 0.9.1 for ARM - Contex A9 on QEMU hero132 Linux - Distributions 0 08-27-2010 09:23 AM
ffmpeg-php problems ulver Linux - Software 0 12-17-2008 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration