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

Export/rendering failure [Solved]

Tags: None
(comma "," separated)
espinosa_cz
Registered Member
Posts
118
Karma
0
OS

Re: Export/rendering failure

Fri Jul 06, 2007 3:46 pm

Seems to be fixed with the latest FFmpeg Revision: 9505.

Hooray!

olo
Registered Member
Posts
72
Karma
0

Re: Export/rendering failure

Sat Jul 07, 2007 12:35 pm

Not for me, still crashes like before, FFMPEG revision 9509:




olo@stacja:~/misc/soft/Graphics/KDEnlive/SVN/espinosa$ cd ffmpeg/
olo@stacja:~/misc/soft/Graphics/KDEnlive/SVN/espinosa/ffmpeg$ svn info
Path: .
URL: svn://svn.mplayerhq.hu/ffmpeg/trunk
Repository Root: svn://svn.mplayerhq.hu/ffmpeg
Repository UUID: 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
Revision: 9509
Node Kind: directory
Schedule: normal
Last Changed Author: mru
Last Changed Rev: 9509
Last Changed Date: 2007-07-06 20:41:59 +0200 (pi?, 06 lip 2007)


And gdb debugging:




gdb build/bin/kdenlive_renderer core.12994
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
warning: core file may not match specified executable file.
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libmlt.so.0.2.3...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libmlt.so.0.2.3
Reading symbols from /lib/tls/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/tls/i686/cmov/libc-2.5.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...Reading symbols from /usr/lib/debug/lib/tls/i686/cmov/libm-2.5.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...Reading symbols from /usr/lib/debug/lib/tls/i686/cmov/libdl-2.5.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/tls/i686/cmov/libpthread-2.5.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.5.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltinigo.so...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltinigo.so
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltfezzik.so...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltfezzik.so
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltwestley.so...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltwestley.so
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltavformat.so...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltavformat.so
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libavformat.so.51...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libavformat.so.51
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libavcodec.so.51...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libavcodec.so.51
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libavutil.so.49...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libavutil.so.49
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libswscale.so.0...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libswscale.so.0
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/liba52-0.7.4.so...done.
Loaded symbols for /usr/lib/liba52-0.7.4.so
Reading symbols from /usr/lib/libmp3lame.so.0...done.
Loaded symbols for /usr/lib/libmp3lame.so.0
Reading symbols from /usr/lib/libtheora.so.0...done.
Loaded symbols for /usr/lib/libtheora.so.0
Reading symbols from /usr/lib/libvorbis.so.0...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /usr/lib/libvorbisenc.so.2...done.
Loaded symbols for /usr/lib/libvorbisenc.so.2
Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltcore.so...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltcore.so
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltxine.so...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltxine.so
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltgtk2.so...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltgtk2.so
Reading symbols from /usr/lib/libgtk-x11-2.0.so.0...done.
Loaded symbols for /usr/lib/libgtk-x11-2.0.so.0
Reading symbols from /usr/lib/libgdk-x11-2.0.so.0...done.
Loaded symbols for /usr/lib/libgdk-x11-2.0.so.0
Reading symbols from /usr/lib/libatk-1.0.so.0...done.
Loaded symbols for /usr/lib/libatk-1.0.so.0
Reading symbols from /usr/lib/libgdk_pixbuf-2.0.so.0...done.
Loaded symbols for /usr/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/lib/libpangocairo-1.0.so.0...done.
Loaded symbols for /usr/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXinerama.so.1...done.
Loaded symbols for /usr/lib/libXinerama.so.1
Reading symbols from /usr/lib/libXi.so.6...done.
Loaded symbols for /usr/lib/libXi.so.6
Reading symbols from /usr/lib/libXrandr.so.2...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/libpango-1.0.so.0...done.
Loaded symbols for /usr/lib/libpango-1.0.so.0
Reading symbols from /usr/lib/libcairo.so.2...done.
Loaded symbols for /usr/lib/libcairo.so.2
Reading symbols from /usr/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/lib/libgobject-2.0.so.0
Reading symbols from /usr/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/lib/libgmodule-2.0.so.0
Reading symbols from /usr/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/lib/libglib-2.0.so.0
Reading symbols from /usr/lib/libpangoft2-1.0.so.0...done.
Loaded symbols for /usr/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libexpat.so.1...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltresample.so...done.
Loaded symbols for /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/share/mlt/modules/libmltresample.so
Reading symbols from /usr/lib/libsamplerate.so.0...done.
Loaded symbols for /usr/lib/libsamplerate.so.0
Reading symbols from /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
Core was generated by `kdenlive_renderer /tmp/kde-olo/kdenlivedYsnna.westley real_time=0 resize=hyper'.
Program terminated with signal 6, Aborted.
#0 0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x45a72df0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0x45a74641 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0x45a6c43b in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7b74c73 in ff_rate_estimate_qscale () from /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libavcodec.so.51
#5 0x08244338 in ?? ()
#6 0x0824a3c0 in ?? ()
#7 0x45b85ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#8 0x00000000 in ?? ()
(gdb) thread apply all bt
Thread 2 (process 12994):
#0 0xb7f62770 in generate_hash (name=0xb7f74837 "on") at mlt_properties.c:162
#1 0xb7f62812 in mlt_properties_find (this=0x80790d8, name=0xb7f74830 "_position") at mlt_properties.c:277
#2 0xb7f633f1 in mlt_properties_get_position (this=0x80790d8, name=0xb7f74830 "_position") at mlt_properties.c:662
#3 0xb7f66e34 in mlt_producer_position (this=0x80790d8) at mlt_producer.c:274
#4 0x08048bcc in transport (producer=0x80790d8, consumer=0x8083b80) at /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/kdenlive/renderer/kdenlive_renderer.c:43
#5 0x08048fb4 in main (argc=31, argv=0xbfdbe6d4) at /home/opt/soft/Graphics/KDEnlive/SVN/espinosa/kdenlive/renderer/kdenlive_renderer.c:147
Thread 1 (process 12995):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x45a72df0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0x45a74641 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0x45a6c43b in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7b74c73 in ff_rate_estimate_qscale () from /home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build/lib/libavcodec.so.51
#5 0x08244338 in ?? ()
#6 0x0824a3c0 in ?? ()
#7 0x45b85ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#8 0x00000000 in ?? ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0xffffe3f0 to 0xffffe430:
0xffffe3f0: add %al,(%eax)
0xffffe3f2: add %al,(%eax)
0xffffe3f4: add %al,(%eax)
0xffffe3f6: add %al,(%eax)
0xffffe3f8: add %al,(%eax)
0xffffe3fa: add %al,(%eax)
0xffffe3fc: add %al,(%eax)
0xffffe3fe: add %al,(%eax)
0xffffe400 <__kernel_vsyscall+0>: push %ecx
0xffffe401 <__kernel_vsyscall+1>: push %edx
0xffffe402 <__kernel_vsyscall+2>: push %ebp
0xffffe403 <__kernel_vsyscall+3>: mov %esp,%ebp
0xffffe405 <__kernel_vsyscall+5>: sysenter
0xffffe407 <__kernel_vsyscall+7>: nop
0xffffe408 <__kernel_vsyscall+8>: nop
0xffffe409 <__kernel_vsyscall+9>: nop
0xffffe40a <__kernel_vsyscall+10>: nop
0xffffe40b <__kernel_vsyscall+11>: nop
0xffffe40c <__kernel_vsyscall+12>: nop
0xffffe40d <__kernel_vsyscall+13>: nop
0xffffe40e <__kernel_vsyscall+14>: jmp 0xffffe403 <__kernel_vsyscall+3>
0xffffe410 <__kernel_vsyscall+16>: pop %ebp
0xffffe411 <__kernel_vsyscall+17>: pop %edx
0xffffe412 <__kernel_vsyscall+18>: pop %ecx
0xffffe413 <__kernel_vsyscall+19>: ret
0xffffe414 <_fini+1226892672>: nop
0xffffe415 <_fini+1226892673>: nop
0xffffe416 <_fini+1226892674>: nop
0xffffe417 <_fini+1226892675>: nop
0xffffe418 <_fini+1226892676>: nop
0xffffe419 <_fini+1226892677>: nop
0xffffe41a <_fini+1226892678>: nop
0xffffe41b <_fini+1226892679>: nop
0xffffe41c <_fini+1226892680>: nop
0xffffe41d <_fini+1226892681>: nop
0xffffe41e <_fini+1226892682>: nop
0xffffe41f <_fini+1226892683>: nop
0xffffe420 <__kernel_sigreturn+0>: pop %eax
0xffffe421 <__kernel_sigreturn+1>: mov $0x77,%eax
0xffffe426 <__kernel_sigreturn+6>: int $0x80
0xffffe428 <_fini+1226892692>: nop
0xffffe429 <_fini+1226892693>: nop
0xffffe42a <_fini+1226892694>: nop
0xffffe42b <_fini+1226892695>: nop
0xffffe42c <_fini+1226892696>: nop
0xffffe42d <_fini+1226892697>: nop
0xffffe42e <_fini+1226892698>: nop
0xffffe42f <_fini+1226892699>: nop
End of assembler dump.
(gdb) info all-registers
eax 0x0 0
ecx 0x32c3 12995
edx 0x6 6
ebx 0x32c2 12994
esp 0xb7855e80 0xb7855e80
ebp 0xb7855e98 0xb7855e98
esi 0xb7855f38 -1215996104
edi 0x45b85ff4 1169711092
eip 0xffffe410 0xffffe410 <__kernel_vsyscall+16>
eflags 0x200202 [ IF ID ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
st0 (raw 0xffff0000000000000000)
st1 0 (raw 0x00000000000000000000)
st2 153.1888888888888970996049465611577 (raw 0x400699305b05b05b0800)
st3 21609509.142857141792774200439453125 (raw 0x4017a4de129249249000)
st4 1.25 (raw 0x3fffa000000000000000)
st5 0 (raw 0x00000000000000000000)
st6 -0.09014438092708587646484375 (raw 0xbffbb89d9e0000000000)
st7 -0.09014438092708587646484375 (raw 0xbffbb89d9e0000000000)
fctrl 0x37f 895
fstat 0x120 288
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm2 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
mm0 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm1 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm2 {uint64 = 0x99305b05b05b0800, v2_int32 = {0xb05b0800, 0x99305b05}, v4_int16 = {0x800, 0xb05b, 0x5b05, 0x9930}, v8_int8 = {0x0, 0x8, 0x5b, 0xb0, 0x5,
0x5b, 0x30, 0x99}}
mm3 {uint64 = 0xa4de129249249000, v2_int32 = {0x49249000, 0xa4de1292}, v4_int16 = {0x9000, 0x4924, 0x1292, 0xa4de}, v8_int8 = {0x0, 0x90, 0x24, 0x49, 0x92,
---Type to continue, or q to quit---
0x12, 0xde, 0xa4}}
mm4 {uint64 = 0xa000000000000000, v2_int32 = {0x0, 0xa0000000}, v4_int16 = {0x0, 0x0, 0x0, 0xa000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa0}}
mm5 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm6 {uint64 = 0xb89d9e0000000000, v2_int32 = {0x0, 0xb89d9e00}, v4_int16 = {0x0, 0x0, 0x9e00, 0xb89d}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x9e, 0x9d, 0xb8}}
mm7 {uint64 = 0xb89d9e0000000000, v2_int32 = {0x0, 0xb89d9e00}, v4_int16 = {0x0, 0x0, 0x9e00, 0xb89d}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x9e, 0x9d, 0xb8}}
(gdb) list
50 nanosleep( &tm, NULL );*/
51 }
52 fprintf( stderr, "\n" );
53 }
54 }
56 int main( int argc, char **argv )
57 {
58 int i;
59 mlt_consumer consumer = NULL;
(gdb) quit
olo@stacja:~/misc/soft/Graphics/KDEnlive/SVN/espinosa$



Backtrace shows that there are still failed assertions in ff_rate_estimate_qscale(). Gdb init shows that correct libavcodec libraries (SVN version) are loaded.



olo
Registered Member
Posts
72
Karma
0

Re: Export/rendering failure

Sat Jul 07, 2007 1:00 pm

Also, no changes related to this problem can be seen in FFMPEG SVN repository during last 2 weeks:



ffmpeg$ svn log -v -r '{2007-06-20}' 
------------------------------------------------------------------------
r9371 | gpoirier | 2007-06-19 23:34:04 +0200 (wto, 19 cze 2007) | 7 lines
Changed paths:
M /trunk/libavcodec/h264.c

Decouple bit context from h264 context in decode_ref_pic_marking()
(done in order to implement slice-level parallel decoding)
Patch by Andreas Öman % andreas olebyn nu %
Original thread:
Date: Jun 15, 2007 10:10 PM
Subject: [FFmpeg-devel] [PATCH] h264 parallelized, (was: Parallelized h264 proof-of-concept)

------------------------------------------------------------------------

$ svn diff -r '{2007-06-20}' libavcodec/ratecontrol.c
Index: libavcodec/ratecontrol.c
===================================================================
--- libavcodec/ratecontrol.c (revision 9371)
+++ libavcodec/ratecontrol.c (working copy)
@@ -184,7 +184,7 @@

//FIXME maybe move to end
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) {
-#ifdef CONFIG_XVID
+#ifdef CONFIG_LIBXVID
return ff_xvid_rate_control_init(s);
#else
av_log(s->avctx, AV_LOG_ERROR, "XviD ratecontrol requires libavcodec compiled with XviD support\n");
@@ -260,7 +260,7 @@
ff_eval_free(rcc->rc_eq_eval);
av_freep(&rcc->entry);

-#ifdef CONFIG_XVID
+#ifdef CONFIG_LIBXVID
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID)
ff_xvid_rate_control_uninit(s);
#endif
@@ -676,7 +676,7 @@
Picture * const pic= &s->current_picture;
emms_c();

-#ifdef CONFIG_XVID
+#ifdef CONFIG_LIBXVID
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID)
return ff_xvid_rate_estimate_qscale(s, dry_run);
#endif



So I don't think FFMPEG devs have reacted to this problem yet.



olo
Registered Member
Posts
72
Karma
0

Re: Export/rendering failure

Sat Jul 07, 2007 8:45 pm

Jean Baptiste, I'm puzzled by one strange thing:



Using this script I'm capturing the kdenlive_rederer job that's in progress:

http://kdenlive-dev-helpers.googlecode.com/svn/trunk/capture_kdenlive_renderer_testcase.sh



It generates (among others) a script that should launch kdenlive_renderer with identical arguments, with the exception of paths to the temporary files (which are saved in a permanent location by the capture script).



But when I launch the generated script, the result differs extensively in quality. A DVD-quality timeline export from KDEnlive looks OK, but when I re-run it from the captured script, all video is very blocky - like if the MPEG-2 bitrate has been set to extremely low value.



Also, I can see that kdenlive_renderer, when launched by main KDEnlive process, sends standard error to some socket and standard output to the same destination that main KDEnlive process.



But when I run renderer from my script, it outputs the produced video data on standard output and no data on standard error!



Why does kdenlive_renderer produce different results? Is the problem in environment variables? Or something else?



How do KDEnlive and kdenlive_renderer interface during export?



olo
Registered Member
Posts
72
Karma
0

Re: Export/rendering failure

Sat Jul 07, 2007 9:26 pm

Here's the difference between two video files produced by kdenlive_renderer launched from KDEnlive and from generated script (shown by mplayer):



Video from KDEnlive




VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 8000.0 kbps (1000.0 kbyte/s)
...
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)


Video from script




VIDEO: MPEG1 720x576 (aspect 8) 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
...
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)


And the source of the script:




#!/bin/sh
export PATH="/home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build.2007-07-07_19_05/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/NX/bin:~/bin"
export LD_LIBRARY_PATH=/home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build.2007-07-07_19_05/lib
/home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build.2007-07-07_19_05/bin/kdenlive_renderer /home/olo/Movies_temp/Pawlik/render_scripts/2007-03-02/2007-07-07_22_07_53.westley real_time=0 resize=hyper in=0 out=23538 -consumer avformat /home/olo/Movies_temp/Pawlik/Pawlik_2007-03-02_12dni-pierwszy_miesiac/output/Pawlik_2007-03-02_12dni-pierwszy_miesiac.vob real_time=0 stats_on=1 qscale=0 display_ratio=1.33333 format=dvd aspect=4:3 vcodec=mpeg2video acodec=ac3 video_bit_rate=6500000 video_rc_max_rate=8000000 video_rc_min_rate=0 video_rc_buffer_size=1835008 mux_packet_size=2048 mux_rate=10080000 audio_bit_rate=192000 audio_sample_rate=48000 frame_size=720x576 frame_rate=25 gop_size=15 me_range=63 ildct=1 ilme=1 > /home/olo/Movies_temp/Pawlik/render_scripts/2007-03-02/2007-07-07_22_07_53_untitled-test_run.vob



Looks like the command line arguments have been evidently ignored by kdenlive renderer (video_rc_max_rate=8000000, audio_bit_rate=192000). This would also explain why the renderer doesn't crash when run like that - it doesn't take the "qscale=0" argument into account!



espinosa_cz
Registered Member
Posts
118
Karma
0
OS

Re: Export/rendering failure

Sun Jul 08, 2007 10:46 am

Could you revert snv revision 9505? Just to be sure they didn't break it again.

There was a discussion about it in mail list, there seems to be problem ffmpeg behaving non reliably in extreme low or high bitrates when encoding mpeg4.

So try to lower the bitrate a little bit and make it variable.

But mpe4 generally seems not to be much designed for high bitrates uset mpeg2 instead or try other formats, theora? x264?

Try to set lower GOP size??

olo
Registered Member
Posts
72
Karma
0

Re: Export/rendering failure

Sun Jul 08, 2007 3:45 pm

Thanks, I'll try 9505.



But note that I _am_ using MPEG2. Actually I didn't even test MPEG4 export.



olo
Registered Member
Posts
72
Karma
0

Re: Export/rendering failure

Wed Jul 11, 2007 7:53 pm

Nope, FFMPEG rev 9505 crashes with assert as usual in the same place.



neilbrown
Registered Member
Posts
43
Karma
0

Re: Export/rendering failure

Thu Jul 12, 2007 6:21 am

olo: You have

-consumer avformat /some/file/name

This should be

-consumer avformat:/some/file/name



i.e. a ':' (colon) should separate 'avformat' from the path name, not a space.

when kdenlive_renderer runs, it zeros out the 'colon' so the one argument looks like two.

So when you use 'ps' you don't see the colon. But it needs to be there when you run the program.



olo
Registered Member
Posts
72
Karma
0

Re: Export/rendering failure

Thu Jul 12, 2007 8:54 pm

You were right!



I've checked in a new version of capture script, could you test it how it works? I've captured a DVD export successfully and it runs fine.



Here's where it's located:



http://kdenlive-dev-helpers.googlecode.com/svn/trunk/capture_kdenlive_renderer_testcase.sh



And I've been able to at last see what error does kdenlive_renderer crash with.



It's:




...
Current Position: 73
Current Position: 76
kdenlive_renderer: ratecontrol.c:756: ff_rate_estimate_qscale: Assertion `q>0.0' failed.


olo
Registered Member
Posts
72
Karma
0

Re: Export/rendering failure

Mon Jul 16, 2007 12:36 am

The thread about this has started on FFMPEG-devel mailing list: http://lists.mplayerhq.hu/pipermail/ffm ... 32779.html



imported4-DRAGSTER_TUNER
Registered Member
Posts
6
Karma
0

Re: Export/rendering failure

Mon Jul 23, 2007 7:04 pm

Hi guys...i'm having this problem:



I can't render anything...



With ffmpeg...with mencoder...with k9copy...and now, with kdenlive...



Sometime ago, i rip dvd9 to dvd5 well in k9copy...but in this days, the k9copy and the kdenlive are hanging/freezing my system...and ffmpeg and mencoder give a segmentation failure in the videos wiling rendering...



What's it could be?? I think it could be a problem of others here too...



Some clue?

ddennedy
Registered Member
Posts
1315
Karma
1

Re: Export/rendering failure

Tue Jul 24, 2007 4:15 am

To help ffmpeg debug, make a custom render profile in kdenlive with a .jpg extension and with no avformat parameters. Then, use a filename like kdenlive-%06d.jpg. Render. You can then use the images in ffmpeg ala:

ffmpeg -r 25 -i kdenlive-%06d.jpg -pix_fmt yuv420p ...

You will need to map all the mlt parameters of the render profile you are testing to ffmpeg's options. (In a future version of mlt, I am going to try to adopt ffmpeg's option parsing approach.)



neilbrown
Registered Member
Posts
43
Karma
0

Re: Export/rendering failure

Thu Jul 26, 2007 12:20 pm

I think I (almost) know what is going on.

There are some magic numbers used to guide mpeg compession. Two of them are i_qfactor and i_qoffset.

There is a 'quantisation factor' that is meant to range from 0.5 to 55 (I think) that guides how much

to 'quantize' various numbers in the image stream. The more you 'quantise', the lower your quality.

The qfactor for one frame is derived in part from the qfactor of previous frames, and sometimes the

calculation will be

        oldqfactor * abs(i_qfactor) + i_qoffset


ffpmeg sets the default for these two values to


i_qfactor = -0.8
i_qoffset = 0.0


mlt, in comsumer_avformat.c sets


mlt_properties_set_double( properties, "video_i_qfactor", 1.25 );
mlt_properties_set_double( properties, "video_i_qoffset", -0.8 );


They both have a -0.8, but for different values - odd..

Anyway, if 'oldqfactor' is small, and the above formula is applied, then adding

a qoffset of -0.8 makes the new qfactor negative. This causes the problem.



While I really don't know how these numbers are used, or what you achieve by setting them,

it seems quite clear from the code that a negative qoffset is a dangerous thing.



I think the best solution to our problem is to get rid of it. either change the MLT source,

or get kdenlive to pass video_i_qfactor=-0.8 video_i_qoffset=0 to MLT.



I seems sensible to choose the same defaults that ffmpeg chooses.



It really seems a strange co-incidence that both use -0.8, but at different places.

I wonder if it was a typo...



neilbrown
Registered Member
Posts
43
Karma
0

Re: Export/rendering failure

Tue Jul 31, 2007 7:51 am

Just for the record, this problem has been fixing in the MLT SVN. So if you build from SVN,

rendering mpeg files shouldn't crash any more.





Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]