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

Rendering to H.264 no longer working.

Tags: None
(comma "," separated)
DerIng
Registered Member
Posts
12
Karma
0

Rendering to H.264 no longer working.

Mon Jan 16, 2012 11:22 pm
I am using the kdenlive build-script from Dan (http://www.mltframework.org/twiki/bin/view/MLT/BuildScripts) which was and is working fine.

To update to latest version I re-run this script today again.

I have tried to compile with ENABLE_SWFDEC=1 and ENABLE_SWFDEC=0 (both are working).

In december I was able to render to H.264 but now it is always crashing (even with videos which where working fine in december).



The error log:

Rendering of /Data/kdenlive/Aegypten/test.mp4 crashed
[swscaler @ 0x9ef8080] Warning: data is not aligned! This can lead to a speedloss
[NULL @ 0x992a520] [Eval @ 0xb7233938] Invalid chars '.6' at the end of expression '0.6' [NULL @ 0x992a520] Unable to parse option value "0.6"
[NULL @ 0x92db560] Codec is experimental but experimental codecs are not enabled, see -strict -2 consumer_avformat.c: Unable to encode audio - disabling audio output.
[mp4 @ 0x8e08ac0] track 1: codec frame size is not set

lsb_release:
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04


Could you please point me to a solution?

Many thanks to all the developers!

Regards,

Markus
pinguin_drupal
Registered Member
Posts
49
Karma
0
Maybe would like to try a preset like this, it works for me:

acodec=libmp3lame ab=256k ar=44100 ac=2 vcodec=libx264 vpre=medium crf=20 threads=1

Don't forget to enter as extension mkv, or whatever you want.
DerIng
Registered Member
Posts
12
Karma
0
Thanks pinguin!

Indeed - after changing the presets the rendering is now working.
The reason for the crash is obviously the audiocodec.

If I use
acodec=aac
it crashes.

With
   acodec=libmp3lame
it is working fine.

So to get rendering working again I just changed

share/apps/kdenlive/export/profiles.xml

<group name="H.264" renderer="avformat" extension="mp4" type="av">
   ... acodec=libmp3lame ...
</group>

and everything is okay.

Just wondering why the aac-audiocodec is no longer working ... ??!! Any ideas?

Thanks.

Markus
FishB8
Registered Member
Posts
53
Karma
0
The "aac" codec is a very experimental ffmpeg codec that is not yet very usable. If you want to encode aac, use "libfaac" as the audio codec. (ffmpeg has to be built with support for libfaac) It's an older aac encoder library that doesn't sound the greatest, but it works.
pinguin_drupal
Registered Member
Posts
49
Karma
0
Today I tried to create a 3gp-file and was forced to use "-strict experimental", but then it worked without hearing problems.


ffmpeg -i "$1" -strict experimental -vcodec h263 -s 176x144 -qscale 2 -acodec aac -ab 32k -ar 11025 "$GPFILE"
GrouchyGaijin
Registered Member
Posts
10
Karma
0
I hope this thread isn't dead.
I tried the above fix
[CODE]acodec=libmp3lame ab=256k ar=44100 ac=2 vcodec=libx264 vpre=medium crf=20 threads=1[/CODE]
and still have my problem.

I get audio fine, but no video.
I can use the libx264 codec in the command line with ffmpeg, just not in kdenlive.
j-b-m
Registered Member
Posts
804
Karma
1
@GrouchyGaijin: We need more infos to help you:

* which distro
* How did you install MLT / Kdenlive (distro packages, build script,...)
* Which FFmpeg / MLT / Kdenlive version

You can also try to create a render script (from the render dialog) and then try starting this script from a terminal, it could give you more infos.
GrouchyGaijin
Registered Member
Posts
10
Karma
0
Hi I'm running Ubuntu 12.04.
I installed:
Kdenlive
Version 0.9.2
Using KDE Development Platform 4.8.5 (4.8.5)
from the sunab repository: Installed version 0.9.2-0ubuntu0~sunab~precise2

MLT is listed as libmlt++3, libmlt-data, melt, libmlt5 all are listed as 0.8.2-0ubuntu0~sunab~precise2

ffmpeg is the dev version:
ffmpeg version git-2013-01-02-e4f14c3 Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 2 2013 18:16:31 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 85.100 / 54. 85.100
libavformat 54. 59.100 / 54. 59.100
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.102 / 3. 30.102
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100

One note, if I run an ffmpeg command from the command line I can encode using libx264, but not from within kdenlive. From kdenlive I get a video that is black. I had the same problem, using the repo version of ffmpeg as well.
yellow_drupal
Registered Member
Posts
748
Karma
0
Try changing libavcodec 54 to libavcodec-54-extra. Delete your kdenliverc file in /home/.../.kde/share/config and rerun kdenlive config process at startup.

Not sure whether kdenlive from git is built against dev version of ffmpeg, you may get compatibility problems?
GrouchyGaijin
Registered Member
Posts
10
Karma
0
Here is a copy of my kdenliverc file if that helps:

[Colors]
CurrentPalette=* Custom Colors *

[DownloadDialog Settings]
Height 800=400
Width 1280=700

[KFileDialog Settings]
Height 800=510
Recent Files[$e]=foo.mpg,/media/Elements/Video Staging/defication dance.MOV,$HOME/Videos/3-jan-2012-mpegs/foo.mpg
Width 1280=816

[MainWindow]
Height 800=801
State=AAAA/wAAAAD9AAAAAQAAAAIAAATPAAABVvwBAAAAC/wAAAAAAAABCQAAAIcA////+gAAAAABAAAAAvsAAAAYAHAAcgBvAGoAZQBjAHQAXwB0AHIAZQBlAQAAAAD/////AAAAhwD////7AAAAGABuAG8AdABlAHMAXwB3AGkAZABnAGUAdAEAAAAA/////wAAAE8A/////AAAAQ8AAAIJAAABKwD////8AgAAAAL7AAAAGABlAGYAZgBlAGMAdABfAHMAdABhAGMAawAAAAAmAAAAgwAAAIMA/////AAAACYAAAFWAAAAzQEAABn6AAAAAQEAAAAC+wAAABYAZQBmAGYAZQBjAHQAXwBsAGkAcwB0AQAAAAD/////AAAAggD////7AAAAFAB0AHIAYQBuAHMAaQB0AGkAbwBuAQAAAAD/////AAABKwD////7AAAAFgBWAGUAYwB0AG8AcgBzAGMAbwBwAGUAAAAAAP////8AAAEcAP////sAAAAQAFcAYQB2AGUAZgBvAHIAbQAAAAAA/////wAAAJgA////+wAAABQAUgBHAEIAIABQAGEAcgBhAGQAZQAAAAAA/////wAAAJIA////+wAAABIASABpAHMAdABvAGcAcgBhAG0AAAAAAP////8AAAFJAP////sAAAAWAGEAdQBkAGkAbwBzAGkAZwBuAGEAbAAAAAAA/////wAAAE8A////+wAAABoAQQB1AGQAaQBvAFMAcABlAGMAdAByAHUAbQAAAAAA/////wAAAUgA////+wAAABYAUwBwAGUAYwB0AHIAbwBnAHIAYQBtAAAAAAD/////AAABRAD////8AAADHgAAAbEAAAErAP////oAAAAAAQAAAAP7AAAAGABjAGwAaQBwAF8AbQBvAG4AaQB0AG8AcgEAAAAA/////wAAAE8A////+wAAAB4AcAByAG8AagBlAGMAdABfAG0AbwBuAGkAdABvAHIBAAAAAP////8AAABPAP////
sAAAAcAHIAZQBjAG8AcgBkAF8AbQBvAG4AaQB0AG8AcgEAAAAA/////wAAASsA////+wAAABgAdQBuAGQAbwBfAGgAaQBzAHQAbwByAHkAAAAAAP////8AAABPAP///wAABM8AAAFiAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAAAAAAGABlAHgAdAByAGEAVABvAG8AbABCAGEAcgEAAAHd/////wAAAAAAAAAA
ToolBarsMovable=Disabled
Width 1280=1281

[Project Tree]
columns=\x00\x00\x00ÿ\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x04\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00d\x00\x00\x03H\x00\x00\x00\x04\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00dÿÿÿÿ\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x02?\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00d\x00\x00\x00\x01\x00\x00\x00\x00

[Recent Dirs]
clipfolder[$e]=file:///media/Elements/Video%20Staging/,file://$HOME/Videos/3-jan-2012-mpegs/,file://$HOME/kdenlive/
projectfolder[$e]=file://$HOME/Videos/mastermp4s/,file://$HOME/kdenlive/,$HOME/Documents

[Scope_AudioSpectrum]
autoRefresh=true
dBmax=0
dBmin=-70
freqMax=0
realtime=false
showMax=true
trackMouse=true
windowFunction=0
windowSize=0

[Scope_Histogram]
autoRefresh=true
bEnabled=true
gEnabled=true
rEnabled=true
realtime=false
rec601=false
sEnabled=false
yEnabled=true

[Scope_RGB Parade]
autoRefresh=true
axis=false
gradref=false
paintmode=0
realtime=false

[Scope_Spectrogram]
autoRefresh=true
dBmax=0
dBmin=-70
drawGrid=true
freqMax=0
highlightPeaks=true
realtime=false
trackMouse=true
windowFunction=0
windowSize=0

[Scope_Vectorscope]
75PBox=false
autoRefresh=true
axis=false
backgroundmode=0
colorspace_ypbpr=false
gain=1
iqlines=false
paintmode=0
realtime=false

[Scope_Waveform]
autoRefresh=true
paintmode=0
realtime=false
rec601=false

[Scope_audioSignal]
autoRefresh=true
realtime=false

[TitleWidget]
background_alpha=252
background_color=0,0,0
font_alpha=255
font_color=255,255,0
font_family=Ubuntu,-1,32,5,50,0,0,0,0,0
font_italic=false
font_outline=0
font_outline_alpha=255
font_outline_color=invalid
font_pixel_size=45
font_underlined=false
font_weight=50
rect_background_alpha=255
rect_background_color=0,0,0
rect_foreground_alpha=255
rect_foreground_color=0,0,0
rect_line_width=0

[capture]
decklink_capturedevice=4294967295
decklink_extension=mov
decklink_parameters=vcodec=dnxhd vb=145000k acodec=pcm_s16le threads=%threads
detectedv4ldevices=4294967295
dvgrab_path=/usr/bin/dvgrab
rmd_path=/usr/bin/recordmydesktop
v4l_extension=mpg
v4l_parameters=f=mpeg acodec=mp2 ab=128k ar=48000 vcodec=mpeg2video minrate=0 vb=4000k

[env]
defaultaudioapp=/usr/bin/audacity
defaultimageapp=/usr/bin/gimp
defaultplayerapp=totem
mltpath[$e]=/usr/share/mlt/profiles/
rendererpath[$e]=/usr/bin/melt

[project]
profiles_list=37
proxyextension=ts
proxyparams=-f mpegts -acodec libmp3lame -ac 2 -ab 128k -ar 48000 -vcodec mpeg2video -g 5 -deinterlace -s 480x270 -vb 400k
videotracks=25

[sdl]
blackmagic_output_device=-1

[shuttle]
shuttlebuttons=button0=monitor_pause;button1=add_clip;button2=add_clip;button3=add_clip;button4=add_clip;button5=add_clip

[unmanaged]
audiocodecs=aac,ac3,ac3_fixed,alac,eac3,flac,mp2,nellymoser,real_144,vorbis,wmav1,wmav2,roq_dpcm,adpcm_adx,g722,g726,adpcm_ima_qt,adpcm_ima_wav,adpcm_ms,adpcm_swf,adpcm_yamaha,libfaac,libgsm,libgsm_ms,libmp3lame,libopencore_amrnb,libspeex,libvo_aacenc,libvo_amrwbenc,libvorbis,pcm_s16le,pcm_s16be
current_profile=sdi_486i_5994
default_profile=sdi_486i_5994
defaultrescaleheight=216
monitor_audio=false
producerslist=frei0r.ising0r,frei0r.lissajous0r,frei0r.nois0r,frei0r.onecol0r,frei0r.partik0l,frei0r.plasma,frei0r.test_pat_B,frei0r.test_pat_C,frei0r.test_pat_G,frei0r.test_pat_I,frei0r.test_pat_L,frei0r.test_pat_R,framebuffer,vorbis,qimage,kdenlivetitle,pango,pixbuf,avformat,avformat-novalidate,decklink,abnormal,color,colour,consumer,hold,loader,melt,melt_file,noise,ppm,kino,libdv,pgm,xml,xml-string,slowmotion
project_display_ratio=1.33333333333333
project_fps=29.97002997003
rescalekeepratio=true
supportedformats=a64,ac3,adts,adx,aiff,amr,asf,****,asf_stream,au,avi,avm2,cavsvideo,crc,daud,dirac,dnxhd,dts,dv,eac3,ffm,ffmetadata,filmstrip,flac,flv,framecrc,framemd5,g722,gif,gxf,h261,h263,h264,image2,image2pipe,ipod,ivf,latm,m4v,md5,matroska,matroska,mjpeg,mlp,mmf,mov,mp2,mp3,mp4,mpeg,vcd,mpeg1video,dvd,svcd,mpeg2video,vob,mpegts,mpjpeg,mxf,mxf_d10,null,nut,ogg,oma,alaw,mulaw,f64be,f64le,f32be,f32le,s32be,s32le,s24be,s24le,s16be,s16le,s8,u32be,u32le,u24be,u24le,u16be,u16le,u8,psp,rawvideo,rm,RoQ,rso,rtp,rtsp,sap,segment,smjpeg,sox,spdif,srt,swf,3g2,3gp,truehd,rcv,voc,wav,webm,yuv4mpegpipe,alsa,oss
videocodecs=a64multi,a64multi5,asv1,asv2,bmp,cljr,dnxhd,dpx,dvvideo,ffv1,ffvhuff,flashsv,flv,gif,h261,h263,h263p,huffyuv,jpegls,ljpeg,mjpeg,mpeg1video,mpeg2video,mpeg4,msmpeg4v2,msmpeg4,pam,pbm,pcx,pgm,pgmyuv,png,ppm,qtrle,rawvideo,roqvideo,rv10,rv20,sgi,snow,svq1,targa,tiff,v210,v410,wmv1,wmv2,zlib,zmbv,libdirac,libschroedinger,libtheora,libvpx,libx264,libxvid

[version]
version=0.9.2
GrouchyGaijin
Registered Member
Posts
10
Karma
0
My system doesn't have libavcodec 54 installed. I have libavcodec-extra-53 from mediabuntu.
54 doesn't seem to be an option.

I don't think the problem is due to the dev version of ffmpeg because I had the same problem using the standard version of ffmpeg from the Ubuntu repository.
yellow_drupal
Registered Member
Posts
748
Karma
0
Two posts up you list libavcodec 54 from the dev version of ffmpeg. Mixing ffmpeg versions can cause problems, ffmpeg is such a moving target and you have it from mediabuntu repo rather than vanilla Ubuntu repos, this could cause compatibility problems being out of sync with kdenlive/MLT versions.

If you can't encode to x264 from kdenlive then the extra package missing is usually the reason.
GrouchyGaijin
Registered Member
Posts
10
Karma
0
I feel like an idiot. I put the Ubuntu repository version of ffmpeg back and changed the render profile to use mp3 instead of aac and now my problem is solved.
yellow_drupal
Registered Member
Posts
748
Karma
0
That's good news. You should be able to use aac audio as well though.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]