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

Dan Dennedy dan at dennedy.org
Sun May 3 22:06:26 UTC 2009


On Sun, May 3, 2009 at 1:36 PM, sean darcy <seandarcy2 at gmail.com> wrote:
> We have two issues - the seg faults only happen if I'm ssh'ing from my

Please don't tell me you are trying to edit HD video on a X session
forwarded over ssh.

> portable. Why it doesn't happen if I'm playing the .mts clip is really
> strange.
>
> But even on the server, the two converted clips don't play well.

What does 'on the server' mean?

> So I got  canon-hf-100-1080p-psf.mts from
> http://www.kdenlive.org/video-editor/canon-eos-5d-markii
>
> Then converted them as follows:
>
> ffmpeg -i canon-hf-100-1080p-psf.mts -s 1920x1080 -r ntsc -b 220000k
> -threads 0 -vcodec dnxhd -acodec copy dnxdh.mov
>
> Input #0, mpegts, from 'canon-hf-100-1080p-psf.mts':
>   Duration: 00:00:45.12, start: 0.820067, bitrate: 15789 kb/s
>   Program 1
>     Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR
> 16:9], 50 tbr, 90k tbn, 50 tbc

This is a 50Hz video stream, so you probably should use '-r pal' when
converting them. I used -r pal in my test.

>     Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
> Output #0, mov, to 'dnxdh.mov':
>     Stream #0.0: Video: dnxhd, yuv422p, 1920x1080 [PAR 1:1 DAR 16:9],
> q=2-31, 220000 kb/s, 30k tbn, 29.97 tbc
>     Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
> Stream mapping:
>   Stream #0.0 -> #0.0
>   Stream #0.1 -> #0.1
> Press [q] to stop encoding
> [h264 @ 0x234f2b0]missing picture in access unit7.20
> bitrate=220236.6kbits/s
> frame= 1125 fps= 26 q=1.0 Lsize= 1009421kB time=37.54
> bitrate=220291.1kbits/s
> video:1008000kB audio:1410kB global headers:0kB muxing overhead 0.001110%
>
> and:
>
> ffmpeg -i canon-hf-100-1080p-psf.mts -s 1920x1080 -r ntsc -b 220000k
> -threads 0 -vcodec rawvideo -acodec copy rawvideo.avi
>
> Input #0, mpegts, from 'canon-hf-100-1080p-psf.mts':
>   Duration: 00:00:45.12, start: 0.820067, bitrate: 15789 kb/s
>   Program 1
>     Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR
> 16:9], 50 tbr, 90k tbn, 50 tbc
>     Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
> Output #0, avi, to 'rawvideo.avi':
>     Stream #0.0: Video: rawvideo, yuv420p, 1920x1080 [PAR 1:1 DAR
> 16:9], q=2-31, 220000 kb/s, 29.97 tbn, 29.97 tbc
>     Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
> Stream mapping:
>   Stream #0.0 -> #0.0
>   Stream #0.1 -> #0.1
> Press [q] to stop encoding
> [h264 @ 0x15ed2b0]missing picture in access unit7.37
> bitrate=746018.0kbits/s
> frame= 1125 fps= 17 q=0.0 Lsize= 3418658kB time=37.54
> bitrate=746071.2kbits/s
> video:3417188kB audio:1410kB global headers:0kB muxing overhead 0.001776%
>
> As before, kdenlive has now problem playing in clip monitor the original
> .mts file.

I assume you meant "no" instead of "now."

> The dnxdh.mov file plays as flat gray - no figures, no motion. Just
> gray. FWIW, mplayer won't play it either.

It works for me in ffplay, inigo, and kdenlive using the same source
file canon-hf-100-1080p-psf.mts and converted in the same manner. I
originally developed and tested this dnxhd conversion routine using
some other AVCHD on my Ubuntu 9.04 system at work. Then, I tried with
this canon hf100 sample at home using my Arch Linux workstation. Both
worked fine and with different versions of ffmpeg on each. I am using
FFmpeg SVN-r17923 on my Arch Linux box.

-- 
+-DRD-+




More information about the Kdenlive mailing list