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:
Property | Original | Mine |
---|---|---|
Encoder | x264 - core 45 svn-458 | x264 - core 47 svn-531 |
cabac | 1 | |
ref | 1 | |
deblock | 1:0:0 | |
analyse | 0x3:0x113 | 0x1:0x111 |
me | esa | hex |
subme | 6 | 5 |
brdo | 0 | |
mixed_ref | 0 | |
me_range | 16 | |
chroma_me | 1 | |
trellis | 0 | |
8x8dct | 0 | 1 |
chroma_qp_offset | 0 | |
slices | 1 | |
nr | 0 | |
decimate | N/A | 1 |
bframes | 0 | |
keyint | 250 | |
keyint_min | 25 | |
scenecut | 40 | |
rc | cqp | |
qp | 23 | 26 |
ip_ratio | 1.40 |
The arguments I added are:
So, I tried those modified parameters, and I now have:
File Size | File Name |
---|---|
180071125 | Coupling-Series 1-Episode 2-Size Matters.mkv |
473184595 | Coupling-Series 1-Episode 2-Size Matters.hex.h264.mkv |
388362240 | Coupling-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.
--min-keyint 12
--keyint 600
--bime
--filter 1:1
--direct auto
--ref 16
--mixed-refs
--bframes 5
--b-pyramid
• allow b-frames to be used as references--weightb
--b-rdo
--trellis 2
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 Size | File Name |
---|---|
175509402 | Coupling-Series 1-Episode 3-Sex, Death, and Nudity.mkv |
5419267 | Coupling-Series 1-Episode 3-Sex, Death, and Nudity.h264.1.mkv |
5404368 | Coupling-Series 1-Episode 3-Sex, Death, and Nudity.h264.2.mkv |
5406493 | Coupling-Series 1-Episode 3-Sex, Death, and Nudity.h264.3.mkv |
619209060 | Coupling-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.