[Kdenlive-devel] Editing AVCHD h264/AC3 files in kdenlive

Philippe Landau lists at user-land.org
Sat May 2 23:10:14 UTC 2009


Dan Dennedy wrote:
> On Fri, May 1, 2009 at 10:15 AM, Dan Dennedy <dan at dennedy.org> wrote:
>> On Thu, Apr 30, 2009 at 1:52 PM, sean darcy <seandarcy2 at gmail.com> wrote:
>>> sean darcy wrote:
>>>> Dan Dennedy wrote:
>>>>> 2009/4/17 Andre Madeira <amadeirabus at gmail.com>:
>>>>>> Hello kdenlive-devel!
>>>>>>
>>>>>> My goal is to edit AVCHD (h264/AC3) files in kdenlive. The videos are

>>>> So if we want to edit AVCHD, we need to convert them first? What should
>>>> we convert them to ( .avi?)? And how?
>>>>
>>>> googling found this script:
>>>>
>>>> xporthdmv -hn $file 1 1 1 && mv bits0001.mpa $audiofile
>>>> ldecod -i bits0001.mpv -o $videofifo &
>>>> ffmpeg -r 29.97 -s 1440x1080 -i $videofifo -i $audiofile -vcodec mpeg4
>>>> -sameq -acodec copy -aspect 16:9 -b 15000k outfile
>>>>
>>>> which uses xport from http://www.w6rz.net/ and ldecod from
>>>> http://iphome.hhi.de/suehring/tml/download/ .
>>>>
>>>> xporthdmv demultiplexes the .ts file, then ldecod decodes video to YUV (
>>>> 4.2.0?).
>>>>
>>>> Is this how it's done? Can kdenlive now edit the resulting file?
>> Can you not just use ffmpeg? I thought the main remaining issues with
>> ffmpeg were seeking and multi-threaded decode, which a conversion to
>> uncompressed via ffmpeg should be fine.
>>
>>>> sean (a potential new owner of an avchd camcorder)
>>> Actually, if ldecod converts the h264 video to yuv, shouldn't you leave
>>> it alone, and just use ffmpeg to multiplex the audio:
>>>
>>> ffmpeg -i $videofifo -i $audiofile -vcodec copy -acodec copy outfile.avi
>> Sure, and you can use HuffYUV if you want to reduce file size and I/O a little.
> 
> Trying things out here, and I get better (more stable, better
> performing) results with DNxHD:
> 
> ffmpeg -i 00009.MTS -s 1920x1080 -r ntsc -b 220000k -threads 2 -vcodec
> dnxhd -acodec copy 00009.mov

Could this be integrated in Kdenlive as a tool ?
Most potential users have difficulty with CLI.

Until now, i had to do the conversion with Windows apps.

Kind regards     Philippe




More information about the Kdenlive mailing list