unsupported audio decoder: libmp3lame, or unsupported video decoder: libx264??

Hi, there!

On the Rendering(export) dialog, I clicke some export format, the warning messages is like the following:
unsupported audio decoder: libmp3lame, or unsupported video decoder: libx264

How to solve the problem?

Thanks a lot!

Forums:

Which version of Kdenlive/MLT and Linux Distro are you using? Without this info it's difficult for anyone to offer help. Cheers

Linux Mint 13, Kdenlive 0.9.2

Thanks!

I've never used Mint so perhaps a Mint user could step in and help here. One thing you haven't mentioned though, are they both installed?

I have installed libmp3lame-dev,libx264-dev,libavcodec-extra-53, but the problems are the same.

Maybe it is because of Linux Mint.

You might need to run the Kdenlive config Wizard that does the codec detection. From Kdenlive's menu:

Settings > Run Config Wizard

Complete the wizard, then restart Kdenlive, it might solve your problem.
Also, you can check that your ffmpeg/libav install has libx264 encoding:

avconv -codecs | grep x264

You should see:

EV libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10

I just installed kdenlive today and I'm having the same problem too. Following J-B-M's advice, I entered avconv -codecs | grep x264 and here is what I get:

~/.kde/share/config$ avconv -codecs | grep x264
avconv version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:50:25 with gcc 4.6.3

libmp3lame is installed.

ls -l /usr/lib/i386-linux-gnu/libmp3*
lrwxrwxrwx 1 root root 19 Dec 26 2011 /usr/lib/i386-linux-gnu/libmp3lame.so.0 -> libmp3lame.so.0.0.0
-rw-r--r-- 1 root root 332596 Dec 26 2011 /usr/lib/i386-linux-gnu/libmp3lame.so.0.0.0

Not sure how to tell kdenlive how to find the codec.

Here's what is in my kdenlivetranscoderc file:
[Transcoding]
DNxHD 1080i 25 fps 120 Mb/s=-s 1920x1080 -r pal -top -1 -flags +ilme+ildct -vb 120000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 1080i 25 fps 185 Mb/s=-s 1920x1080 -r pal -top -1 -flags +ilme+ildct -vb 185000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 1080i 30 fps 145 Mb/s=-s 1920x1080 -r ntsc -top -1 -flags +ilme+ildct -vb 145000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 1080i 30 fps 220 Mb/s=-s 1920x1080 -r ntsc -top -1 -flags +ilme+ildct -vb 220000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 1080p 25 fps 120 Mb/s=-s 1920x1080 -r 25 -vb 120000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 1080p 25 fps 185 Mb/s=-s 1920x1080 -r 25 -vb 185000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 1080p 30 fps 145 Mb/s=-s 1920x1080 -r 30 -vb 145000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 1080p 30 fps 220 Mb/s=-s 1920x1080 -r 30 -vb 220000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 720p 23.976 fps 60 Mb/s=-s 1280x720 -r 24000/1001 -vb 60000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 720p 23.976 fps 90 Mb/s=-s 1280x720 -r 24000/1001 -vb 90000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 720p 50 fps 115 Mb/s=-s 1280x720 -r 50 -vb 175000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 720p 50 fps 175 Mb/s=-s 1280x720 -r 50 -vb 175000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 720p 59.94 fps 145 Mb/s=-s 1280x720 -r 60000/1001 -vb 145000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
DNxHD 720p 59.94 fps 220 Mb/s=-s 1280x720 -r 60000/1001 -vb 220000k -threads 2 -vcodec dnxhd -acodec copy %1.mov;High quality encoding
Fix MPEG-1=-sameq -acodec copy -vcodec mpeg1video %1.mpg;Fix unplayable MPEG-1 files;vcodec=mpeg1video
Fix Ogg Theora=-sameq -vcodec libtheora -acodec copy %1.ogv;Fix unplayable OGG Theora files;vcodec=theora
Lossless Matroska=-sn -vcodec huffyuv -acodec flac %1.mkv;High quality lossless encoding
Remux MPEG-2 PS/VOB=-vcodec copy -acodec copy %1.mpg;Fix audio sync in MPEG-2 vob files;vcodec=mpeg2video
Remux with MKV=-vcodec copy -acodec copy -sn %1.mkv
Wav 48000Hz=-vn -ar 48000 %1.wav;Extract audio as WAV file

Seems like I should have some other data there to match the render options available on the GUI, but I'm not sure how to add them or if I'm even right about this being the problem (I'm just guessing).

Finally, when I run the configuration wizard and inspect the available codecs, I don't see libmp3lame under the available audio codecs, nor do I see the libx264 or libxvid options listed under the video codecs.

Recommended next steps are appreciated.

Ensure you have libavcodec-53-extra installed, delete the kdenliverc file from /home/.../.kde/share/config and rerun kdenlive config again. I think that may be the solution for this problem.

That worked! Thank you.

I was concerned because when I install libavcodec-53-extra, it said that two other codecs must be removed:
libavcodec53
libavutil51

Removing libavcode53 brings up a warning that I must then remove:
audacity
gstreamer0.10-ffmpeg
libav-tools
libavdevice53
libavfilter2
libavformat53
libmlt4
libopencv-highgui2.3
libquicktime2
vlc
vlc-nox

Of course, I was worried about what cascading remove requirements that may trigger, but I decided to take the 'install anyway' option. After installing, I noticed that the two codecs it said must be removed had been removed.

Problem solved. Thanks again!

Thanks a lot! you guys, thanks, j-b-m!

It works.

only one item: AVI DV unsupported audio decoder:pcm_s16le

what should I install to support pcm_s16le?

Thanks!

How do you ensure that libavcodec-53-extras is installed and what do you do if it is not?

And the kdenliverc file does not exist on my computer.

@Yora, have a look in your package manager see what you have installed.

kdenliverc will exist if you've completed the kdenlive config process at first start up.

@Yora
Make sure to show hidden files in your file browser as .kde starts with a dot and thus is a hidden directory.

Hi,there.

when I run "ffmpeg -codecs", pcm_s16le is on the list.

but on kdenlive the error still exists : unsupported audio codec pcm_s16le.

why?

thanks for your help!

It's not enough to have a codec listed, it has to be capable of encoding too.

$ avconv -codecs|grep pcm_s16le
avconv version 0.8.5-4:0.8.5-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Jan 24 2013 18:01:36 with gcc 4.6.3
D A D pcm_s16le PCM signed 16-bit little-endian
D A D pcm_s16le_planar PCM 16-bit little-endian planar

In the above example (on my machine) I don't have encoding capabilities for pcm_s16le.

Codecs:
D..... = Decoding supported
.E.... = Encoding supported
..V... = Video codec
..A... = Audio codec
..S... = Subtitle codec
...S.. = Supports draw_horiz_band
....D. = Supports direct rendering method 1
.....T = Supports weird frame truncation

$ avconv -codecs | grep x264
avconv version 0.8.5-4:0.8.5-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Jan 24 2013 18:01:36 with gcc 4.6.3
EV libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10

The above example shows a machine that can encode x264.

Pages