[mythtv-users] Nuvexport - mythtranscode std::bad_alloc

Björn Gustafsson bjorne-g at telia.com
Mon Sep 14 18:47:12 UTC 2009


Hi

I have trouble with nuvexport. What happens is that i try to export a 
myth recording to an avi xvid file.
During the run I can see the memory used by mythtranscode increase more 
and more during the run. Eventually it aborts with a :

terminate called after throwing an instance of 'std::bad_alloc'
   what():  std::bad_alloc
Aborted

The recording is a 45 min 4:3 show. It aborts about when it has done apx 
20% of the file.

This is what I do:

Where would you like to export the files to? [.]
Enable Myth cutlist? [Yes]
Enable noise reduction (slower, but better results)? [No]
Enable deinterlacing? [Yes]
Crop broadcast overscan border (0-5%) ? [1.5]
Audio bitrate? [128]
Variable bitrate video? [Yes]
Multi-pass (slower, but better quality)? [Yes] No
VBR quality/quantisation (1-31)? [6]
Video bitrate? [768]
Default resolution based on requested dimensions.
Width? [720]
Height? [576]

--------------------------------
To encode:  Spanarna på Hill Street:  Del 4 av 17 säsong 1981
Use the following commands:

system call:
mkdir -m 0755 /tmp/fifodir_20665/

forking:
/usr/bin/nice -n19 /usr/local/bin/mythtranscode --showprogress -p '0' -c 
'1064' -s '2009-09-11T14:15:00' -f "/tmp/fifodir_20665/" --honorcutlist 2>&1

forking:
/usr/bin/nice -n19 ffmpeg -threads 2 -y -f s16le -ar 48000 -ac 2 -i 
/tmp/fifodir_20665/audout -f rawvideo -pix_fmt yuv420p -s 720x576 
-aspect 1.33333333333333 -r 25.000 -i /tmp/fifodir_20665/vidout -aspect 
1.33333333333333 -r 25.000 -deinterlace -croptop    8 -cropright 10 
-cropbottom 8 -cropleft  10 -s 720x576  -vcodec libxvid -b '768k' 
-minrate '32' -maxrate '1536k' -bt '32k' -bufsize 65535 -flags 
+mv4+loop+aic+cgop -trellis 1 -mbd 1 -cmp 2 -subcmp 2 -b_qfactor '150' 
-b_qoffset '100' -bf '1' -qmax 31 -qmin 6 -acodec libmp3lame -async 1 
-ab '128k' -f avi './Spanarna på Hill Street - Del 4 av 17 säsong 
1981.4.avi' 2>&1

Mythtv is the latest trunc. ffmpeg is from marillat:

FFmpeg version SVN-r19468, Copyright (c) 2000-2009 Fabrice Bellard, et al.
   configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache 
cc' --libdir='${prefix}/lib' --shlibdir='${prefix}/lib' 
--bindir='${prefix}/bin' --incdir='${prefix}/include/ffmpeg' 
--enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad 
--mandir='${prefix}/share/man' --enable-libvorbis --enable-pthreads 
--enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab 
--enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libx264 --enable-libtheora --enable-libdc1394 --enable-libspeex 
--enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac 
--disable-decoder=libdirac --enable-libschroedinger 
--disable-encoder=libschroedinger --enable-avfilter-lavf 
--enable-libopenjpeg --enable-version3 --disable-altivec 
--disable-armv5te --disable-armv6 --disable-vis
   libavutil     50. 3. 0 / 50. 3. 0
   libavcodec    52.32. 0 / 52.32. 0
   libavformat   52.36. 0 / 52.36. 0
   libavdevice   52. 2. 0 / 52. 2. 0
   libavfilter    0. 5. 0 /  0. 5. 0
   libswscale     0. 7. 1 /  0. 7. 1
   libpostproc   51. 2. 0 / 51. 2. 0
   built on Jul 20 2009 22:23:31, gcc: 4.3.3


Do I need another version of ffmpeg? Or is this a bug in mythtranscode?

Regards

Björn Gustafsson




More information about the mythtv-users mailing list