I've got a copy of "Coupling" I downloaded off the internet that is about 200mb for an hour long show. The problem is something is messed up in the file and it won't play in anything except Xine. I've been trying to produce a repaired copy and have even resorted to reencoding. The problem is both the MPEG-4 and H.264 files I have produced are over 400mb. This is really irritating since I know 200mb is possible. Well, I've been looking in the files headers and this is a comparison:

PropertyOriginalMine
Encoderx264 - core 45 svn-458x264 - core 47 svn-531
cabac1
ref1
deblock1:0:0
analyse0x3:0x1130x1:0x111
meesahex
subme65
brdo0
mixed_ref0
me_range16
chroma_me1
trellis0
8x8dct01
chroma_qp_offset0
slices1
nr0
decimateN/A1
bframes0
keyint250
keyint_min25
scenecut40
rccqp
qp2326
ip_ratio1.40

The arguments I added are:


So, I tried those modified parameters, and I now have:

File SizeFile Name
180071125Coupling-Series 1-Episode 2-Size Matters.mkv
473184595Coupling-Series 1-Episode 2-Size Matters.hex.h264.mkv
388362240Coupling-Series 1-Episode 2-Size Matters.esa.h264.mkv

That's better, but still a far sight from the original. I'm not currently using b-frames. I'm going to try adding those and see if that helps. Hell, while I'm at it, I figure a third pass couldn't hurt. I figure I'll trust settings from the Doom9 forums.

The last set of changes kicked the encoding time up to about ten hours from two. I suspect this will be worse…


Umm, yeah, slow is a word for it. I'm getting about a half a frame per second. There's around 44000 frames per show. With three passes, that's 132000 frames, 264000 seconds or 73 hours. That's for each hour long show. It looks though like the size is at least going to be manageable. I ran a 60 second test:

File SizeFile Name
175509402Coupling-Series 1-Episode 3-Sex, Death, and Nudity.mkv
5419267Coupling-Series 1-Episode 3-Sex, Death, and Nudity.h264.1.mkv
5404368Coupling-Series 1-Episode 3-Sex, Death, and Nudity.h264.2.mkv
5406493Coupling-Series 1-Episode 3-Sex, Death, and Nudity.h264.3.mkv
619209060Coupling-Series 1-Episode 3-Sex, Death, and Nudity.y4m

The first interesting thing is the file got bigger between the second and third passes. The other is that 1500 frames is 5mb. This would make the 43825 frames in the source be around 150mb. (This is the intro which has I know isn't a good sample because it is a completely different type of animation, but I'm hoping it is close.) 150mb is just about exactly what I'm looking for since the original was 167mb and I've still got to remerge the audio which is 12mb.