Hi,
I am doing a cut operation on a mpeg-4 file ( with H264 , AAC ) using GES and using smart coding for this and it seems that there is loss of audio in the begining of the cut file. From preliminary analysis it seems that if the file is being cut from X to Y , video frames start from the nearest iframe to X, but however, audio frames are taken at a point after X. Would like to know if anybody has faced this problem and any suggestions in solving this. Thanks. --vineeth _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I am not an expert here.
But I think that the reason is that the sampling rate of audio does not much the frames ideally. I mean the beginning of the audio sample does not much the beginning of the I-frame. Maybe you need to resample the audio?
2011/5/27 vineeth <[hidden email]> Hi, -- Your Sincerely Michal Joachimiak _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Vineeth-2
Hello,
On 27 May 2011 08:15, vineeth <[hidden email]> wrote: > I am doing a cut operation on a mpeg-4 file ( with H264 , AAC ) using GES > and using smart coding for this and it seems that there is loss of audio in > the begining of the cut file. > From preliminary analysis it seems that if the file is being cut from X > to Y , video frames start from the nearest iframe to X, but however, audio > frames are taken at a point after X. > Would like to know if anybody has faced this problem and any suggestions > in solving this. My guess would be that the video is taken from the first I-frame at or before X and the audio from the first audio packet at or before X. The I-frame could be well before X but the audio packet would be either the current or previous packet. Perhaps in smart mode the audio should be taken from close to the I-frame too. Not really a bug, just a behaviour that could be quite easily adjusted I would think, depending on what is deemed 'the right way'. Else an option could be added to toggle the behaviour. Regards, Rob _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |