No audio with mpeg

I try to add a MPEG clip into Kdenlive. Video works well, but I don't have audio. What can I do?

Please check the following resolved bugs. It is probably because you either miss the libsdl1.2debian-all package or because your FFmpeg version is not compiled with the correct codecs.


I'm running Ubuntu 7.10 with kdenlive 0.5 from the Ubuntu repository. I checked those bugs, and they did not fully correct the problem for me. I'm able to get sound from some video clips I've downloaded from the web, but the video clips from my Aiptek A-HD camcorder do not have sound. kdenlive shows them as "Mute Video Clip" in the project tree. I verified that I'm running libsdl1.2debian-all. I verified that ffplay is able to play my clips correctly with audio. Here is a snippet from the output of ffplay:

$ ffplay -stats FILE0018.MOV
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2b38cdcc5160]negative ctts, ignoring
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'FILE0018.MOV':
Duration: 00:01:36.7, start: 0.000000, bitrate: 4044 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 29.97 fps(r)
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo
[h264 @ 0x2b38ce363010]AVC: Consumed only 44185 bytes instead of 44188
[h264 @ 0x2b38ce363010]AVC: nal size 0
[h264 @ 0x2b38ce363010]AVC: Consumed only 6641 bytes instead of 6644
[h264 @ 0x2b38ce363010]AVC: nal size 0
[h264 @ 0x2b38ce363010]AVC: Consumed only 8093 bytes instead of 8096
[h264 @ 0x2b38ce363010]AVC: nal size 0
[h264 @ 0x2b38ce363010]AVC: Consumed only 6757 bytes instead of 6760
[h264 @ 0x2b98b4f23010]AVC: Consumed only 10541 bytes instead of 10544
[h264 @ 0x2b98b4f23010]AVC: nal size 0
96.66 A-V: -1.992 aq= 0KB vq= 0KB sq= 0B

Thanks for any advice.


I found the wiki page entry describing that Ubuntu 7.10's package for kdenlive 0.5 has a broken AAC codec. After trying many other Linux video editing solutions and finding that kdenlive seems to have the best combination of easy-to-use features and stability, my solution for now instead of building my own kdenlive package is to transcode my input video files like this:
ffmpeg -i -vcodec copy -acodec pcm_s24le