<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<span class="postbody">I use <i>nuvexport</i> mainly to transcode
basketball
games that I record from my DVB-T card. It all was working
alright, usually converting to Xvid with VBR and 1920 Kbps.
<br>
<br>
I had those versions:
<br>
<br>
* Fedora Core 5 on AMD Athlon
<br>
* MythTV 0.20 (SVN code)
<br>
* ffmpeg version CVS, build 3277056
<br>
* nuvexport-0.3-0.20060620.svn (SVN code)
<br>
</span><br>
But then I had to upgrade <i>ffmpeg</i> for another issue, and all of
a sudden my transcodings stopped working. I have made lots of tests
with different recordings and they usually fail on the second pass. If
a use a single pass, then video and audio are not in sync or I find
similar problems.<br>
<br>
At this moment, I have the following versions (no change on MythTV
except for <i>nuvexport</i>):<br>
<span class="postbody"><br>
* ffmpeg version 0.4.9-0.7.20060918.fc5.rf (installed with yum from
Dries repository)<br>
* mjpegtools version 1.9.1-14-cvs20061009.fc5.at </span><span
class="postbody">(installed with yum from ATrpms repository)</span><br>
<span class="postbody">* nuvexport-0.4 0.20070105.svn (Compiled from
SVN code)
<br>
</span><br>
<span class="postbody">I am doing tests with a quite good DVB-T
recording, so I don't blame it on the original MPEG2 file.
<br>
<br>
I am trying a two pass VBR transcoding to XviD with <i>ffmpeg.</i> The
first
pass is OK, but the second pass gets stuck after some minutes.
<br>
<br>
To debug this problem, I am launching in parallel in two terminal
windows the following (output from the --debug option):
<br>
<br>
Terminal 1
<br>
========
<br>
<span style="font-style: italic;">[mythtv@micasa tmp]$ mkdir -m 0755
/tmp/fifodir_11532/
<br>
[mythtv@micasa tmp]$ /bin/nice -n19 /usr/local/bin/mythtranscode
--showprogress -p autodetect -c 1523 -s 2007-01-06-22-00-00 -f
"/tmp/fifodir_11532/" --honorcutlist 2>&1
<br>
2007-01-12 20:24:33.513 Using runtime prefix = /usr/local
<br>
2007-01-12 20:24:33.587 New DB connection, total: 1
<br>
2007-01-12 20:24:33.594 Enabled verbose msgs: important
<br>
2007-01-12 20:24:33.598 New DB connection, total: 2
<br>
2007-01-12 20:24:33.662 Using protocol version 30
<br>
[mpegts @ 0x1854f0]Parser not found for Codec Id: 94211 !
<br>
0: start_time: 5890.703 duration: 808.337
<br>
1: start_time: 5890.674 duration: 808.344
<br>
2: start_time: 5890.684 duration: 808.319
<br>
3: start_time: 5890.675 duration: 808.336
<br>
4: start_time: 5890.684 duration: -9223372036854.775
<br>
5: start_time: 5890.675 duration: -9223372036854.775
<br>
stream: start_time: 65451.937 duration: 8981.842 bitrate=4820 kb/s
<br>
2007-01-12 20:24:40.393 Processed: 24 of 224525 frames(0 seconds)
<br>
2007-01-12 20:24:45.402 Processed: 109 of 224525 frames(4 seconds)
<br>
2007-01-12 20:24:50.439 Processed: 239 of 224525 frames(9 seconds)
<br>
2007-01-12 20:24:55.455 Processed: 366 of 224525 frames(14 seconds)
<br>
2007-01-12 20:25:00.456 Processed: 495 of 224525 frames(19 seconds)
<br>
2007-01-12 20:25:05.459 Processed: 624 of 224525 frames(24 seconds)
<br>
2007-01-12 20:25:10.487 Processed: 755 of 224525 frames(30 seconds)
<br>
2007-01-12 20:25:15.540 Processed: 885 of 224525 frames(35 seconds)
<br>
2007-01-12 20:25:20.608 Processed: 1012 of 224525 frames(40 seconds)
<br>
2007-01-12 20:25:25.633 Processed: 1135 of 224525 frames(45 seconds)
<br>
[mpeg2video @ 0x48f248]ac-tex damaged at 31 19
<br>
[mpeg2video @ 0x48f248]Warning MVs not available
<br>
2007-01-12 20:25:30.754 Processed: 1250 of 224525 frames(50 seconds)
<br>
2007-01-12 20:25:34.198 mythtranscode: 0% Completed @ 21.8796 fps.
<br>
2007-01-12 20:25:35.772 Processed: 1341 of 224525 frames(53 seconds)
<br>
2007-01-12 20:25:40.795 Processed: 1456 of 224525 frames(58 seconds)
<br>
2007-01-12 20:25:45.987 Processed: 1528 of 224525 frames(61 seconds)
<br>
[mpeg2video @ 0x48f248]ac-tex damaged at 7 32
<br>
[mpeg2video @ 0x48f248]Warning MVs not available
<br>
2007-01-12 20:25:51.262 Processed: 1558 of 224525 frames(62 seconds)
<br>
2007-01-12 20:25:54.340 mythtranscode: 0% Completed @ 19.8633 fps.
<br>
2007-01-12 20:25:56.307 Processed: 1629 of 224525 frames(65 seconds)
<br>
2007-01-12 20:26:01.631 Processed: 1708 of 224525 frames(68 seconds)
<br>
2007-01-12 20:26:06.637 Processed: 1775 of 224525 frames(71 seconds)
<br>
2007-01-12 20:26:11.679 Processed: 1846 of 224525 frames(73 seconds)
<br>
[mpeg2video @ 0x48f248]ac-tex damaged at 41 31
<br>
[mpeg2video @ 0x48f248]Warning MVs not available
<br>
2007-01-12 20:26:15.256 mythtranscode: 1% Completed @ 18.7017 fps.
<br>
2007-01-12 20:26:16.693 Processed: 1922 of 224525 frames(76 seconds)
<br>
2007-01-12 20:26:22.457 Processed: 1955 of 224525 frames(78 seconds)
<br>
2007-01-12 20:26:28.656 Processed: 1960 of 224525 frames(78 seconds)
<br>
2007-01-12 20:26:34.157 Processed: 2003 of 224525 frames(80 seconds)
<br>
2007-01-12 20:26:35.528 mythtranscode: 1% Completed @ 16.534 fps.
<br>
2007-01-12 20:26:39.195 Processed: 2075 of 224525 frames(83 seconds)
<br>
[mpeg2video @ 0x48f248]ac-tex damaged at 16 10
<br>
2007-01-12 20:26:44.364 Processed: 2133 of 224525 frames(85 seconds)
<br>
2007-01-12 20:26:49.382 Processed: 2203 of 224525 frames(88 seconds)</span>
<br>
<br>
Terminal 2
<br>
========
<br>
<span style="font-style: italic;">[mythtv@micasa tmp]$ /bin/nice -n19
ffmpeg -f rawvideo -s 720x576 -r 25.000 -i /tmp/fifodir_11532/vidout -f
yuv4mpegpipe - 2> /dev/null | /bin/nice -n19 yuvdenoise 2>
/dev/null | /bin/nice -n19 ffmpeg -y -f s16le -ar 48000 -ac 2 -i
/tmp/fifodir_11532/audout -f yuv4mpegpipe -s 720x576 -aspect
1.33333333333333 -r 25.000 -i - -aspect 1.33333333333333 -r 25.000
-deinterlace -croptop 12 -cropright 14 -cropbottom 12 -cropleft 14
-padleft 2 -padright 2 -s 620x464 -vcodec xvid -b '1966080' -bt 32
-minrate 32 -maxrate 3840 -bufsize 65535 -flags +4mv+trell+loop -aic 1
-mbd 1 -cmp 2 -subcmp 2 -cgop 1 -b_qfactor '150' -b_qoffset '100' -bf
'1' -pass 2 -passlogfile '/tmp/xvid.11532.log' -acodec mp3 -async 1 -ab
128 -f avi '/var/video/downloads/Zaragoza- Valencia (Grabación Manual)
- s�b ene 6 22-00-00 2007.2.avi' 2>&1
<br>
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
<br>
configuration: --prefix=/usr --libdir=/usr/lib
--mandir=/usr/share/man --incdir=/usr/include/ffmpeg --extra-cflags=-O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables --enable-mp3lame --enable-libogg
--enable-vorbis --enable-faad --enable-faac --enable-libgsm
--enable-xvid --enable-x264 --enable-a52 --enable-a52bin --enable-dts
--enable-pp --enable-shared --enable-pthreads --enable-gpl
--disable-opts --disable-strip
<br>
libavutil version: 49.0.0
<br>
libavcodec version: 51.14.0
<br>
libavformat version: 50.5.0
<br>
built on Dec 11 2006 06:16:14, gcc: 4.1.1 20060525 (Red Hat 4.1.1-1)
<br>
Input #0, s16le, from '/tmp/fifodir_11532/audout':
<br>
Duration: N/A, bitrate: N/A
<br>
Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
<br>
Input #1, yuv4mpegpipe, from 'pipe:':
<br>
Duration: N/A, bitrate: N/A
<br>
Stream #1.0: Video: rawvideo, yuv420p, 720x576, 25.00 fps(r)
<br>
Output #0, avi, to '/var/video/downloads/Zaragoza- Valencia (Grabación
Manual) - s�b ene 6 22-00-00 2007.2.avi':
<br>
Stream #0.0: Video: xvid (hq), yuv420p, 624x464, q=2-31, pass 2, 1966
kb/s, 25.00 fps(c)
<br>
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
<br>
Stream mapping:
<br>
Stream #1.0 -> #0.0
<br>
Stream #0.0 -> #0.1
<br>
frame= 1098 q=7.0 Lsize= 7959kB time=43.9 bitrate=1485.8kbits/s
<br>
video:7189kB audio:691kB global headers:0kB muxing overhead 1.000877%</span>
<br>
<br>
At some point I have to kill the process in terminal 1
<i>(mythtranscode)</i> because the system is close to hang out. If I
leave
this more time I cannot even wake up the windows with the mouse.
<br>
<br>
When I launch the processes, I see with <i>top</i> that <i>ffmpeg</i>
takes
around 50% of the CPU power while <i>mythtranscode</i> takes around
50% of the
memory. This memory occupation grows up till 80% or so (while
<i>ffmpeg</i> goes down in CPU usage, I guess because it is not getting
new
frames from the pipe). At this point, the system goes to a bad state.
<br>
<br>
I would like to elucidate if the problem is with:
<br>
<br>
* mythtranscode
<br>
* bad quality of the MPEG2 file to transcode
<br>
* ffmpeg
<br>
<br>
A general question I have is: <i>mythtranscode</i> and <i>nuvexport</i>
need to be in sync somewhat? How can I assure this?<br>
<br>
I would very much appreciate if somebody could give me good hints!</span>
</body>
</html>