This forum has been archived. All content is frozen. Please use KDE Discuss instead.

No Audio when Rendering to File

Tags: None
(comma "," separated)
User avatar
apollothethird
Registered Member
Posts
9
Karma
0
OS

No Audio when Rendering to File

Mon Jan 12, 2015 4:55 am
My projects play perfect when playing via the timeline, even after rendering. However, when I use the option to render to a file I don't get any audio.

My setup is:

Code: Select all
Ubuntu 14.10
Kdenlive installed via the lastest PPA
Kdenline (About) Version 0.9.10


When I click on Render I select, in this case, MP4. Then I have the following select-able options:

Code: Select all
H.264/AAC High Profile
H.264/AAC (CBR)
MPEG-4/MP3 Advanced Simple Profile
MPEG-4/MP3 (CBR)


I have tried each of the selections. I don't get an error from either when rendering. The resulting file shows excellent video, but the sound is missing.

I have also tried each of the options of the "Export audio" check box. They include:
Export audio (automitic) (Shaded checkbox)
Export audio (Shaded checkbox with checkmark)
Export audio (Checkbox without shade and without checkmark)

I'm sure the next thing to do will be to start installing available audio codecs. But at this point I don't know where to start. My apt-cache search shows hundreds.

Thanks in advance for anyone who can suggest to me what I can do to add audio rendering (to file) to my installation, or any test I can perform to identify why it's not currently working.

-- L. James

--
L. D. James
ljames@apollo3.com
http://www.apollo3.com/~ljames
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS

Re: No Audio when Rendering to File

Mon Jan 12, 2015 8:57 am
The export audio options are explained here - you should use "Export audio (automatic)"

If you want to investigate audio codecs pick on a particular target in your rendering.
If you choose the H.264/AAC High Profile render option this is using the AAC audio codec Advanced Audio Coding. So that would be the codec that you want to make sure you have. But it should "just work"

What version of linux are you on?

When you say you installed from latest PPA - is the stable PPA (https://launchpad.net/~sunab/+archive/kdenlive-release) or the testing PPA (https://launchpad.net/~sunab/+archive/kdenlive-svn)?

There is some issue with avconv/melt/kdenlive compatibility recently on some flavours of linux - see this thread

I might suggest you install a daily build version. These can run in their own sandbox and do not effect any other packages. They install their own kdenliver, melt and ffmpeg. Might fix your issue.

https://userbase.kde.org/Kdenlive/Manua ... ily_builds
User avatar
apollothethird
Registered Member
Posts
9
Karma
0
OS

Re: No Audio when Rendering to File

Mon Jan 12, 2015 10:33 am
ttguy wrote:The export audio options are explained here - you should use "Export audio (automatic)"


Thanks. I did use automatic. That was the first one I tested. I actually used all of them.

If you want to investigate audio codecs pick on a particular target in your rendering.
If you choose the H.264/AAC High Profile render option this is using the AAC audio codec Advanced Audio Coding. So that would be the codec that you want to make sure you have. But it should "just work"


The target I picked (as indicated in my post above is MP4.

I also tried a number of the other targets. But for the sake of having a focused example for this question with suggestions on what I can do to actually get it to work I'm using my preferred target, MP4.
What version of linux are you on?

As indicated in my post, I'm running Ubuntu version 14.10.

When you say you installed from latest PPA - is the stable PPA (https://launchpad.net/~sunab/+archive/kdenlive-release) or the testing PPA (https://launchpad.net/~sunab/+archive/kdenlive-svn)?


I started out using the one from the default repository of Ubuntu 14.10. When that didn't work, I browsed the forum and found a suggestion to use the lasted released version. The link suggested: "deb http://ppa.launchpad.net/sunab/kdenlive-release/ubuntu utopic main".

Are you saying there is a problem with that version?

There is some issue with avconv/melt/kdenlive compatibility recently on some flavours of linux - see this thread

I might suggest you install a daily build version. These can run in their own sandbox and do not effect any other packages. They install their own kdenliver, melt and ffmpeg. Might fix your issue.

https://userbase.kde.org/Kdenlive/Manua ... ily_builds


I read somewhere that the problem with "no-audio" is usually the result of not having the proper audio codec installed. I'm almost certain that is the case. There i a good chance that if I install all 28 audio codec from the distro repository, the audio will start to work. However, I prefer not to have to result to bloating my system with a lot of packages that won't be used. Do you have any idea of which specific codec I should check and verify should be installed to export an MP4 video with sound?

Thanks in advance for your thoughts on this (an anyone else).

-- L. James

--
L. D. James
ljames@apollo3.com
http://www.apollo3.com/~ljames
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS
apollothethird wrote:The target I picked (as indicated in my post above is MP4.


Yes but then you need to choose between the options that are in the mp4 category. And these options have different audio codecs. So like I said in my post If you choose the H.264/AAC High Profile render option (in the mp4 category) this is using the AAC audio codec Advanced Audio Coding.

Are you saying there is a problem with that version?

Possibly. Does your version of melt come from that ppa too? Because, the reported issue was with incorrect melt version being distributed with ubuntu 14.10
Kdenlive/melt/ffmpeg/avconv all need to work nicely together to have a proper functioning kdenlive.

A quick running of a daily build version might answer the question.

I read somewhere that the problem with "no-audio" is usually the result of not having the proper audio codec installed. I'm almost certain that is the case. There i a good chance that if I install all 28 audio codec from the distro repository, the audio will start to work. However, I prefer not to have to result to bloating my system with a lot of packages that won't be used. Do you have any idea of which specific codec I should check and verify should be installed to export an MP4 video with sound?


The following libraries support AAC audio encoding via ffmpeg. And kdenlive uses ffmpeg/avconv for encoding.
aac, libfaac, libfdk_aac, libvo_aacenc.

I have libfaac and libfdk_aac on my 14.04 ubuntu - from Libraries (multiverse)
and libvo-aacenc0 from universe

The chances are high you will already have these.
User avatar
apollothethird
Registered Member
Posts
9
Karma
0
OS

Re: No Audio when Rendering to File

Tue Jan 13, 2015 6:23 pm
ttguy wrote:
apollothethird wrote:The target I picked (as indicated in my post above is MP4.


Yes but then you need to choose between the options that are in the mp4 category. And these options have different audio codecs. So like I said in my post If you choose the H.264/AAC High Profile render option (in the mp4 category) this is using the AAC audio codec Advanced Audio Coding.

I had indicated this in my original post. I had mentioned that I choose MP4. I listed all the options in that category and said I tried all of them. So, yes. I had done this. I was trying to find something that was missing. So I mentioned everything that I had done. I appreciate all the input. But you're naming the things that I specified in my original post that I had done... suggesting for me to do those.
Are you saying there is a problem with that version?

Possibly. Does your version of melt come from that ppa too? Because, the reported issue was with incorrect melt version being distributed with ubuntu 14.10
Kdenlive/melt/ffmpeg/avconv all need to work nicely together to have a proper functioning kdenlive.

A quick running of a daily build version might answer the question.

Thanks. I wasn't immediately running the Kdenlive from Ubuntu. As I mentioned in my original post I was running the distributed PPA release version from Kdenlive. I'm trying to clarify these details for the developers and others who might have a similar problem.

I hadn't starting running the daily build version at the time. I was trying to identify (if possible) what it was in my installation, specially, pertaining to audio that needed to be checked, or installed. I didn't fully understand how to pick a specific codec to install and test.

I did notice that ffmpeg wasn't installed on my default 14.10 installation and installed that. That didn't cure the problem. Now I see that you are referring to, not only, ffmpeg but also melt and avconv. I wouldn't expect for the Kdenlive installation to be a problem because the installation I was using was the one distributed by Kdenlive as released. Not the one distributed in the Ubuntu 14.10 repository.

Anyway, I did continue with your suggestion to add the daily built ppa. Adding that and upgrading Kdenlive cured the "no audio" problem.

I read somewhere that the problem with "no-audio" is usually the result of not having the proper audio codec installed. I'm almost certain that is the case. There i a good chance that if I install all 28 audio codec from the distro repository, the audio will start to work. However, I prefer not to have to result to bloating my system with a lot of packages that won't be used. Do you have any idea of which specific codec I should check and verify should be installed to export an MP4 video with sound?


The following libraries support AAC audio encoding via ffmpeg. And kdenlive uses ffmpeg/avconv for encoding.
aac, libfaac, libfdk_aac, libvo_aacenc.

I have libfaac and libfdk_aac on my 14.04 ubuntu - from Libraries (multiverse)
and libvo-aacenc0 from universe

The chances are high you will already have these.


Yes. That is kind of what I was looking to get at. Finding out one by one which libraries should be installed and how to test if they were functioning properly. I wanted to, hopefully, actually be able to have the released version working so that I could recommend it to my clients and friends. It doesn't appear to be the same to recommend a non-stabled (daily built for testing) version for my clients who are looking for something stable for a production environment.

I held back on the daily-built because I wanted to figure out how to fix (or properly configure) the release (stable) version.

Anyway, I couldn't get that done, and was anxious to actually see Kdenlive operate, so I installed the daily build. Now it works.

Personally, I feel this is kind of haphazard to recommend to the next person.

I'll keep performing fresh installs of Ubuntu from time to time and trying to figure out what has to be done to make the released version work and come back and update this thread when I get it figured out. In the meantime, I really appreciate all your suggestions and your assistance in getting my installation to working.

Thanks!

I'll try to find out how I can communicate with the actually developers and maybe get a feature request of a stability or validation check that will help a user to identify which codecs are missing or not functioning properly.

-- L. James

--
L. D. James
ljames@apollo3.com
http://www.apollo3.com/~ljames
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS

Re: No Audio when Rendering to File

Tue Jan 13, 2015 8:15 pm
apollothethird wrote:Anyway, I did continue with your suggestion to add the daily built ppa. Adding that and upgrading Kdenlive cured the "no audio" problem.


Just so I am clear for the next person with this issue - are you using the "daily builds" (http://builds.meltytech.com/kdenlive/latest.rss) or sunabs bleeding edge PPA ( launchpad.net - kdenlive-git (unstable).Testing only! )?

Because what we call "daily builds" is not a PPA. The daily builds really are built daily from git sources. But the bleeding edge ppa is built from sources at an adhoc frequency.

So it is unclear how you have solved this.

apollothethird wrote:Anyway, I couldn't get that done, and was anxious to actually see Kdenlive operate, so I installed the daily build. Now it works.

Personally, I feel this is kind of haphazard to recommend to the next person.

I agree that this is not ideal. However, this is the price you sometimes pay for FOSS. If you can not handle a few issues like this open source is not for you or your clients.

apollothethird wrote:I'll try to find out how I can communicate with the actually developers and maybe get a feature request of a stability or validation check that will help a user to identify which codecs are missing or not functioning properly.


As I have said repeatedly in this thread (and as you discovered experimentally) this was not a codec issue but a version missmatch issue. The developers are aware of this issue - vpinion is the person that publicised it.
User avatar
apollothethird
Registered Member
Posts
9
Karma
0
OS

Re: No Audio when Rendering to File

Tue Jan 13, 2015 11:29 pm
ttguy wrote:
apollothethird wrote:Anyway, I did continue with your suggestion to add the daily built ppa. Adding that and upgrading Kdenlive cured the "no audio" problem.


Just so I am clear for the next person with this issue - are you using the "daily builds" (http://builds.meltytech.com/kdenlive/latest.rss) or sunabs bleeding edge PPA ( launchpad.net - kdenlive-git (unstable).Testing only! )?

Because what we call "daily builds" is not a PPA. The daily builds really are built daily from git sources. But the bleeding edge ppa is built from sources at an adhoc frequency.

So it is unclear how you have solved this.

It appears that I mistook your "testing" PPA for the same context as your reference to daily built. It's the testing PPA that I added which resolved the no-audio problem in my environment. I got the impression from your message:
ttguy wrote:When you say you installed from latest PPA - is the stable PPA (https://launchpad.net/~sunab/+archive/kdenlive-release) or the testing PPA (https://launchpad.net/~sunab/+archive/kdenlive-svn)?

There is some issue with avconv/melt/kdenlive compatibility recently on some flavours of linux - see this thread

I might suggest you install a daily build version. These can run in their own sandbox and do not effect any other packages. They install their own kdenliver, melt and ffmpeg. Might fix your issue.

https://userbase.kde.org/Kdenlive/Manua ... ily_builds

apollothethird wrote:Anyway, I couldn't get that done, and was anxious to actually see Kdenlive operate, so I installed the daily build. Now it works.

Personally, I feel this is kind of haphazard to recommend to the next person.

I agree that this is not ideal. However, this is the price you sometimes pay for FOSS. If you can not handle a few issues like this open source is not for you or your clients.

I'm glad to see that you agree that it's not ideal. The reference to what isn't ideal isn't a complaint. It's feedback from someone using and appreciating what is contributed to the open source user community.

Open source is totally for me and my clients. It's also the best thing available for people who don't appreciate and won't use it. It's just that they don't realize it yet.

I can handle a few issues. I can actually handle lots of issues. With my experience, open source becomes even more ideal for people who have problems with issues.

It might just be the my choice of which open source applications I use, but I have found the developers of my preferred applications are open to and invite feedback. They use it to make their products better. I have experienced the feedback more welcomed in the open source community than many of the payware communities.

apollothethird wrote:I'll try to find out how I can communicate with the actually developers and maybe get a feature request of a stability or validation check that will help a user to identify which codecs are missing or not functioning properly.


As I have said repeatedly in this thread (and as you discovered experimentally) this was not a codec issue but a version missmatch issue. The developers are aware of this issue - vpinion is the person that publicised it.


Actually I hadn't discovered, yet, that the problem was not codec. I actually thought that was what the problem was. Again, I may have misread your initial response, but I had gotten the impression that the testing ppa would actually install the needed codecs. So I'm still learning. I'm also posting my impressions of what I'm learning so that I can get feedback and clarification.

I hope to be able to eventually become fluent enough, as I have mentioned repeated in this thread, in such that I can provide support for the released version in Ubuntu and the users will be able to use it in a production environment, in lieu of Final Cut and the Premiere Pro (which I had formally used and promoted).

-- L. James

--
L. D. James
ljames@apollo3.com
http://www.apollo3.com/~ljames
Mr Bean
Registered Member
Posts
5
Karma
0

Re: No Audio when Rendering to File

Fri Jan 23, 2015 8:58 pm
Hello,

sorry for jumping into this thread. But I have exactly the same issue. After rendering there is no Audio output in the video. I`m rendering only to a Audio file, there is no problem and I can hear the sound. So I think there is no problem with the codecs.
I also tried to install from the testing ppa. But unfortunately this didn`t solve my problem. :-(
Do you have any other tips for me? kdenlive is running under Ubuntu 12.04.

Hope for any tips.

regards!
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS

Re: No Audio when Rendering to File

Sat Jan 24, 2015 6:02 am
I recomend you try the "daily build" version as described above. This will provide you kdenlive and its helper applications in its own sandbox. And this should fix any kdenlive - avconv/ffmpeg incompatibility issues.
Mr Bean
Registered Member
Posts
5
Karma
0

Re: No Audio when Rendering to File

Sat Jan 24, 2015 10:19 am
Hey ttguy,

thanks for your replay. Sorry for that stupid question. But I didn`t understand how to install "daily build".
Can you please discribe that in some words?
Do I have to uninstall my current kdenlive installation?

Thanks in advance!

regards!
Mr Bean
Registered Member
Posts
5
Karma
0

Re: No Audio when Rendering to File

Sat Jan 24, 2015 11:15 am
Hello again,

I downloaded the daily build .tar.bz2. But when I try to open kdenlive with the start_kdenlive script, I get the following error on the terminal:

Code: Select all
kdenlive: error while loading shared libraries: libkdeui.so.5: wrong ELF class: ELFCLASS64


What can I do next?

regards!
Mr Bean
Registered Member
Posts
5
Karma
0

Re: No Audio when Rendering to File

Sat Jan 24, 2015 11:39 am
Hello,

ok, I have a running installatio... :-) with sound. ;-)

First I updated my system to Ubuntu 14.04, then I installed the daily build. But there I got the problem described above.
Then I tried the 12.04 daily build version. That one works fine.... :-)

Thanks!

regards!
User avatar
apollothethird
Registered Member
Posts
9
Karma
0
OS

Re: No Audio when Rendering to File

Sat Jan 24, 2015 12:24 pm
Mr Bean wrote:Hello,

ok, I have a running installatio... :-) with sound. ;-)

First I updated my system to Ubuntu 14.04, then I installed the daily build. But there I got the problem described above.
Then I tried the 12.04 daily build version. That one works fine.... :-)

Thanks!

regards!


Hi, Mr. Bean. For your information, I'm certain that upgrading your Ubuntu to 14.04 was what did the trick. Every since your post I installed Ubuntu 12.04 LTS on one of my machines and was working with it to identify the problem. I experienced the problem with 12.04. I was still studying the resolution for 12.04 for the released version. I didn't immediately suggest upgrading Ubuntu because 12.04 is still supported. Idealistically Kdenlive (the released version) will work with all supported versions of Ubuntu.

I'm glad you have a working version of Kdenlive. I'm sure it's good for the community to have people testing their daily updates. But I'll try to be available to have with the problems with the actual pulbished released version which so far has worked on every installation of Ubuntu except for 12.04. The resolution that I had for 14.04 was to uninstall/purge the one from the distro repository and reinstall from the kdenlive release ppa.

Hopefully the developers will appreciate knowing their lastest release hasn't failed with the lasted Ubuntu release. Again, uninstall and reinstall was the key on one of my machines.

As I mentioned in a previous post, I'll keep the thread updated with the simplest tested solution as I learn more.

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames
Mr Bean
Registered Member
Posts
5
Karma
0

Re: No Audio when Rendering to File

Sun Jan 25, 2015 1:53 pm
Hello,

yes, I`m more a user than a coder, so I think the official release should work with all the LTS variants of Ubuntu.
But I also can imagine how hard it is to support all the diffrent distros and versions of the additional libs...

Anyway, I`m little confused, because at the moment I`m using the 12.04 daily build version of kdenlive under Ubuntu 14.04.
The 14.04 daily build version doesnt`t start. I posted the error message above. Eventually ther is a 32/64Bit incompatibility...!? ???

Hope all the kdenlive coders continue there greate work to make kdenlive better every release. ;-)

Thanks!

Regards!
User avatar
apollothethird
Registered Member
Posts
9
Karma
0
OS

Re: No Audio when Rendering to File

Sun Jan 25, 2015 2:20 pm
Mr Bean wrote:Hello,

yes, I`m more a user than a coder, so I think the official release should work with all the LTS variants of Ubuntu.
But I also can imagine how hard it is to support all the diffrent distros and versions of the additional libs...

Anyway, I`m little confused, because at the moment I`m using the 12.04 daily build version of kdenlive under Ubuntu 14.04.
The 14.04 daily build version doesnt`t start. I posted the error message above. Eventually ther is a 32/64Bit incompatibility...!? ???

Hope all the kdenlive coders continue there greate work to make kdenlive better every release. ;-)

Thanks!

Regards!


It's my impression that if you want tested consistency, to try to use the released version, which by the very name, implies that it's tested and supported.

Out of my appreciation to the availability of the project I'll give whatever support I can to the community by putting working with the released version to identify any problems with it working. To me, this might not be as easy to give support for something that changes every day. Of course it's a big world, and I'm sure there are users that would prefer to work with versions that changes daily and deal with those issues that might crop up.

By the way, the description that I gave you, that always works with the 14.04 LTS gave me audio in the 12.04, but I lost video (for the mp4 render to file). I'm still trying to figure out how to get the video so that I can post the resolution to having 12.04 LTS work with the latest release. If I get it working, I'll thoroughly test it and post the steps for using it on 12.04. At present, it's not easy.

But again, I would be interested if you experience any problems with Kdenlive with 14.04 after adding the PPA release and performing the following:

Code: Select all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get --purge remove kdenlive
sudo apt-get install kdenlive


If you get any errors with your apt-get commands try cleaning them up with:

Code: Select all
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get upgrade


I would be extremely interested to hear of any problems with kdenlive and auto/video export to file after those commands.

While I don't like to cave in to not being able to support a supported version of Ubuntu, currently I'll have to advise a user that is using 12.04 LTS that they would have to upgrade to the latest LTS to have full compatibility with Kdenlive.

Since 12.04 is still officially have a supported life for the next two years, I'll actually spend all of this time trying to figure out how to make it work with Kdenlive release.

I don't blame Kdenlive for not being able to be compatible to every release and flavor of Linux. I don't mind being a part of the community to try to adapt my flavor of Linux to my favorite applications and sharing the resources.

All in all, I'm glad you are "basically" up and running, and didn't mind upgrading your Ubuntu to the latest LTS.

-- L. James

--
L. D. James
ljames@apollo3.com
http://www.apollo3.com/~ljames


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]