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

[SOLVED] What's wrong with audio? (.avi file) HELP

Tags: None
(comma "," separated)
User avatar
vylaern
Registered Member
Posts
157
Karma
0
Hi,

Bellow is an effect of a small project.

[1] Here is original rendering:
http://youtu.be/3H966l4OI_U

[2] and here is the SAME project with options "Render using proxy clips"
http://youtu.be/jXlKnwvWYDM

As you can see (and hear) version with using proxy clips [2] looks 100% OK, but in proper rendering [1] there is an terrible audio out of sync mixed probably from different parts of the movie.

I was trying different setting but after cutting a movie into a smaller parts I have such artefacts, so I cannot do anything in kdenlive (apart rendering proxy movies)...

What to do? Help

p.s. I use kdenlive 0.8 & mlt 0.7.2

User avatar
vylaern
Registered Member
Posts
157
Karma
0

Re: What's wrong? HELP

Thu Jul 28, 2011 11:37 pm
After some times and testing it looks like the problem (for kdenlive) is with .avi container or audio codec, bellow info from ffmpeg:

Input #0, avi, from 'DSC_0073.AVI':
Metadata:
maker : NIKON CORPORATION
model : NIKON D90
creation_time : 2011-07-21 18:38:15
Duration: 00:01:11.99, start: 0.000000, bitrate: 22416 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 1280x720, 24 tbr, 24 tbn, 24 tbc
Stream #0.1: Audio: pcm_s16le, 11025 Hz, 1 channels, s16, 176 kb/s


Changing from .avi into eg. mp4 with different sound codec inside fixed the problem. I can even say than fixing file from D90 by:
http://www.epsilonic.com/d90fix/
...helped, but I need to do somoe more tests to fully confirm this, for the moment, change audio codec and should be fine.
ddennedy
Registered Member
Posts
1315
Karma
1

Re: What's wrong? HELP

Tue Aug 02, 2011 5:33 am
You should also try to simply remux to mkv or mov (mp4 is not really appropriate for mjpeg even it it works) without encoding the audio:
ffmpeg -i some.avi -vcodec copy -acodec copy -sn out.mkv


User avatar
vylaern
Registered Member
Posts
157
Karma
0

Re: What's wrong? HELP

Tue Aug 02, 2011 9:30 am
Many thanks ddennedy!

This is what I was looking for! I have an original file quality (audio & video) in different container, which works perfectly well in kdenlive. :) [SOLVED]

What do you think cause the problem? Avi container? About 4 years ago I've made similar project with similair .avi file from photo camera (mjpeg + pcm), and I had the same audio artefacts. I though that time it was because of early and unstable version of kdenlive, so I stoped using kdenlive. If I have known it is a problem with container, not with kdenlive, I could be a kdenlive master now :)))))

Again, many thanks!



p.s. It is possible to render all project above as matroska mkv file? I would like to keep original audio and video parameters.
ddennedy
Registered Member
Posts
1315
Karma
1
This is a classic inter-operability problem with multimedia due to the proliferation of formats, tools, and devices. Thank goodness there is some consolidation around FFmpeg and gstreamer in the open source world.





Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft