On Mon, Jan 24, 2011 at 2:05 AM, Dan Dennedy <d...@dennedy.org> wrote: > On Sun, Jan 23, 2011 at 11:19 PM, Carl Karsten <c...@personnelware.com> wrote: >> On Mon, Jan 24, 2011 at 12:47 AM, Carl Karsten <c...@personnelware.com> >> wrote: >>> I could use some help tracking down why melt is eating memory and >>> getting killed. >>> >>> It is about the same parameters as I used a week ago to encode 2 1 >>> hour videos. The main difference is I am currently using pal, the 1 >>> hour videos were ntsc. > > I cannot see how that should make a difference. > >>> I am using 0.6.0 from ppa:kxstudio-team/ppa and ffmpeg > > I am using 0.6.1 from source on KXStudio and the ffmpeg version it > installs (0.6-2ubuntu6.2) > >>> libavcodec-extra-52 libavdevice-extra-52 libavfilter-extra-1 >>> libavformat-extra-52 libavutil-extra-50 libpostproc-extra-51 from >>> packages.medibuntu.org >>> > [...] >> >> Oh yeah, and here is the command >> >> >> melt -progress -profile square_pal welcome.mlt -consumer >> avformat:welcome.flv progressive=1 acodec=libfaac ab=96k ar=44100 >> vcodec=libx264 -b=240k vpre=/usr/share/ffmpeg/libx264-hq.ffpreset > > should be b=240k, but at least your vpre is still picked up.. > >> >> /usr/share/ffmpeg/libx264-hq.ffpreset: [ ref=1, coder=1, flags=+loop, >> cmp=+chroma, partitions=+parti8x8+parti4x4+partp8x8+partb8x8, >> me_method=umh, subq=8, me_range=16, g=250, keyint_min=25, >> sc_threshold=40, i_qfactor=0.71, b_strategy=2, qcomp=0.6, qmin=10, >> qmax=51, qdiff=4, bf=3, refs=4, directpred=3, trellis=1, >> flags2=+wpred+mixed_refs+dct8x8+fastpskip, wpredp=2 ] > > I did not reproduce the problem. My RESident memory stays at 204m, but > I do not have welcome.mlt. Some simple things to test: > Does it play with SDL or -consumer null without over-consuming memory?
It plays fine, memory fine: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4483 juser 20 0 602m 31m 2424 R 42 1.6 8:12.48 melt # no memleak: # melt -progress -profile square_pal "2011-01-24/09:06:13.dv" > If you use a video file as input instead of xml, does it leak mem? > yes. # melt -progress -profile square_pal "2011-01-24/09:06:13.dv" -consumer avformat:welcome.flv progressive=1 acodec=libfaac ab=96k ar=44100 vcodec=libx264 b=240k vpre=/usr/share/ffmpeg/libx264-hq.ffpreset I got it to leaking with the following; echo test1>source.txt melt -verbose \ -profile dv_ntsc \ -audio-track \ -producer noise \ out=30000 \ -video-track \ source.txt \ out=30000 \ meta.attr.titles=1 \ meta.attr.titles.markup=#timecode# \ -attach data_show dynamic=1 \ -consumer avformat:test.flv progressive=1 acodec=libfaac ab=96k ar=44100 vcodec=libx264 b=240k vpre=/usr/share/ffmpeg/libx264-hq.ffpreset +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ |1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10| +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +---------------------------------------------------------------------+ | H = back 1 minute, L = forward 1 minute | | h = previous frame, l = next frame | | g = start of clip, j = next clip, k = previous clip | | 0 = restart, q = quit, space = play | +---------------------------------------------------------------------+ /usr/share/ffmpeg/libx264-hq.ffpreset: [ ref=1, coder=1, flags=+loop, cmp=+chroma, partitions=+parti8x8+parti4x4+partp8x8+partb8x8, me_method=umh, subq=8, me_range=16, g=250, keyint_min=25, sc_threshold=40, i_qfactor=0.71, b_strategy=2, qcomp=0.6, qmin=10, qmax=51, qdiff=4, bf=3, refs=4, directpred=3, trellis=1, flags2=+wpred+mixed_refs+dct8x8+fastpskip, wpredp=2 ] [libx264 @ 0x21ed000]using SAR=8/9 [libx264 @ 0x21ed000]using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x21ed000]profile High, level 2.2 [libx264 @ 0x21ed000]264 - core 98 Ubuntu_2:0.98.1653+git88b90d9-3ubuntu2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=1 ref=4 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=2 b_bias=0 direct=3 weightb=1 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=240 ratetol=16.7 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41 aq=1:1.00 ./go.sh: line 17: 4628 Killed melt -verbose -profile dv_ntsc -audio-track -producer noise out=30000 -video-track source.txt out=30000 meta.attr.titles=1 meta.attr.titles.markup=#timecode# -attach data_show dynamic=1 -consumer avformat:test.flv progressive=1 acodec=libfaac ab=96k ar=44100 vcodec=libx264 b=240k vpre=/usr/share/ffmpeg/libx264-hq.ffpreset Carl K ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel