I've been messing with this for the past couple of hours, and I have a sort of fix (workaround really).
The problem appears to be to do with the format of the files. The ones that don't encode have much higher bitrates, and take much much longer.
'Good' video VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 6500.0 kbps (812.5 kbyte/s)
'Bad' video VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 15000.0 kbps (1875.0 kbyte/s)
I found that mythtranscode has a mpeg2 to mpeg2 transcode option. I tried running this on my files first, and magically it fixed the problem.
I use a wrapper script to do my transcoding (uploads to a website afterwards etc!)
So i added the following lines before I kick off nuvexport
fix bad files first
store=/data/film/store mythtranscode --mpeg2 -i $store/$file -o $store/$file.transcode.mpg mv $store/$file $store/file.old mv $store/$file.transcode.mpg $store/$file
I also noticed that the mpeg2->mpeg2 "fixing" stage reports some problems with the stream, but moves over them okay:
mythtv@brimstone:~$ ./mythexport.sh 1001_20081218195900.mpg Mux rate: 15.57 Mbit/s 2008-12-19 18:54:56.824 Junk in packet 2008-12-19 18:54:58.458 Junk in packet 2008-12-19 18:55:10.608 Junk in packet 2008-12-19 18:55:12.054 Junk in packet 2008-12-19 18:55:20.320 Junk in packet