morph166955
2nd April 2006, 20:42
Ok so thus far i have read as much as i can find on here about the options to use for both passes and psnr and all that but i have a few questions.
Im trying to encode an episode of the hit show House (before anyone starts pointing fingers, i own the dvd and im just using it to test this stuff), and for those wondering, the episode im testing is 1x14 - Control (Disc 2, Side B, Chapter 2).
The system that does the encoding is a FreeBSD 6.0 System with a Intel P4 3.2 Hypterthreaded CPU, 4 gig ram, 2TB Storage Raid5 Array on a Highpoint RocketRaid 2220 with 6 Western Digital 400Gig Raid Edition SATA Drives, a 200Gig Raid1 system drive (2x WD 200Gig SATA Raid Edition Drives Mirroed), 2x Lite-On DVD-RW Drives, Mitsumi Media Reader 7-in-1 Floppy, an Ecrix VXA-1e on a Adaptec SCSI Card, plus the usual fans, power supplys etc. So as far as im concerned based on this system I should have rather good speed and processing time (which as far as i can see im getting). I barely use any swap space ever due to the amount of ram in the system and the fact that BSD doesnt really like to swap stuff out (it is working though i have seen things go into the swap).
Im doing the encoding with a version of mencoder I compiled off off the cvs with the following version info:
MEncoder dev-CVS-060326-19:49-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron D Prescott; Pentium D/XE Smithfield; Xeon Nocona,Irwindale (Family: 15, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
For my passes im using:
Pass 1: mencoder dvd:// -dvd-device /drives/iso5 -vf crop=720:352:0:66,scale=720:396,expand=0:-4:0:2 -oac mp3lame -ovc x264 -af volnorm=2:.40 -lameopts preset=standard -x264encopts pass=1:turbo=1:threads=2:me=1:subq=1:bframes=3:psnr:b_pyramid:weight_b -o /dev/null
Pass 2: mencoder dvd:// -dvd-device /drives/iso5 -vf crop=720:352:0:66,scale=720:396,expand=0:-4:0:2 -oac mp3lame -ovc x264 -af volnorm=2:.40 -lameopts preset=standard -x264encopts pass=2:threads=2:frameref=5:me=3:8x8dct:subq=6:bframes=3:b_pyramid:mixed_refs:brdo:bime:nofast_pskip:psnr:weight_b:4x4mv:bitrate=BITRATE -o House-SB-CH2-FP.avi
where /drives/iso5 is a mount built from mdconfig pointing to an iso image of that one chapter that I created and BITRATE is what i choose for that specific run.
Now that i have given you all the info (wow i didnt think it would be that much)...Here are my questions.
1) I ran two runs on it, I did one first pass run and used that for each of my two second pass runs since there were not options that changed on either first pass runs. The first run was done at 500kbit/s and the second run was done at 1000kbit/s. The following is the PSNR info that mencoder spit out from each run...what im asking is how exactly do i read this to understand it and make the best decision on bitrate in the future.
Pass 1: x264 [info]: PSNR Mean Y:42.153 U:45.035 V:46.554 Avg:42.901 Global:42.593 kb/s:486.51
Pass 2 (500 kbit/s): x264 [info]: PSNR Mean Y:44.049 U:45.625 V:47.369 Avg:44.530 Global:43.948 kb/s:500.04
Pass 2 (1000 kbit/s): x264 [info]: PSNR Mean Y:46.024 U:46.916 V:48.931 Avg:46.366 Global:45.905 kb/s:1000.05
Both movies look very good based on me putting them up on my projector (Infocus SP5000) and watching them. My big question is what in these numbers really is the one im looking for and what do i want it to be? Also what is the bitrate from Pass 1 showing? Is that giving me an "optimal" bitrate or is that just a garbage number that i should pay no attention too? I know when i used to do Xvid that being up around 1000 kbit/s was a good place to be but due to x264 being much better at encoding and pass 1 showing a 486kbit/s number im hoping that 500 is a good # (or 600 or 700 or w/e is good, im really looking to learn here so any info is great)
Question 2: Are the options that im using above for mencoder the best? The Crop/Scale/Expand values were done using -vf cropdetect to get the crop values, then i scaled it to get it from the 720x480 to the 720x540 that the aspect ratio change normally does (i prefer not to have the aspect ratio resize movie because it causes hell with my media center so i pre-scale it). The expand value adds 2 pixel lines worth of black on top and bottom to get the height divisible by 16 so that the area of the image is divisible by 16x16 cubes. As for the volnorm i find that those options work rather well for ripping and fixing movies/tv shows that have low volume. The rest of the stuff being the x264 options is really what im looking for advice on. Ive compiled the best list i could based on info from this and other sites but a professional look can't hurt right? Also im noticing that the threads=2 thing doesnt actually do anything based on the info from "top". The total cpu usage barely gets over 50% and thats primarily because i have a few other things like samba running that are generating the load.
Thanks for the read on this lengthy post and any info you may give me in advance.
Im trying to encode an episode of the hit show House (before anyone starts pointing fingers, i own the dvd and im just using it to test this stuff), and for those wondering, the episode im testing is 1x14 - Control (Disc 2, Side B, Chapter 2).
The system that does the encoding is a FreeBSD 6.0 System with a Intel P4 3.2 Hypterthreaded CPU, 4 gig ram, 2TB Storage Raid5 Array on a Highpoint RocketRaid 2220 with 6 Western Digital 400Gig Raid Edition SATA Drives, a 200Gig Raid1 system drive (2x WD 200Gig SATA Raid Edition Drives Mirroed), 2x Lite-On DVD-RW Drives, Mitsumi Media Reader 7-in-1 Floppy, an Ecrix VXA-1e on a Adaptec SCSI Card, plus the usual fans, power supplys etc. So as far as im concerned based on this system I should have rather good speed and processing time (which as far as i can see im getting). I barely use any swap space ever due to the amount of ram in the system and the fact that BSD doesnt really like to swap stuff out (it is working though i have seen things go into the swap).
Im doing the encoding with a version of mencoder I compiled off off the cvs with the following version info:
MEncoder dev-CVS-060326-19:49-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron D Prescott; Pentium D/XE Smithfield; Xeon Nocona,Irwindale (Family: 15, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
For my passes im using:
Pass 1: mencoder dvd:// -dvd-device /drives/iso5 -vf crop=720:352:0:66,scale=720:396,expand=0:-4:0:2 -oac mp3lame -ovc x264 -af volnorm=2:.40 -lameopts preset=standard -x264encopts pass=1:turbo=1:threads=2:me=1:subq=1:bframes=3:psnr:b_pyramid:weight_b -o /dev/null
Pass 2: mencoder dvd:// -dvd-device /drives/iso5 -vf crop=720:352:0:66,scale=720:396,expand=0:-4:0:2 -oac mp3lame -ovc x264 -af volnorm=2:.40 -lameopts preset=standard -x264encopts pass=2:threads=2:frameref=5:me=3:8x8dct:subq=6:bframes=3:b_pyramid:mixed_refs:brdo:bime:nofast_pskip:psnr:weight_b:4x4mv:bitrate=BITRATE -o House-SB-CH2-FP.avi
where /drives/iso5 is a mount built from mdconfig pointing to an iso image of that one chapter that I created and BITRATE is what i choose for that specific run.
Now that i have given you all the info (wow i didnt think it would be that much)...Here are my questions.
1) I ran two runs on it, I did one first pass run and used that for each of my two second pass runs since there were not options that changed on either first pass runs. The first run was done at 500kbit/s and the second run was done at 1000kbit/s. The following is the PSNR info that mencoder spit out from each run...what im asking is how exactly do i read this to understand it and make the best decision on bitrate in the future.
Pass 1: x264 [info]: PSNR Mean Y:42.153 U:45.035 V:46.554 Avg:42.901 Global:42.593 kb/s:486.51
Pass 2 (500 kbit/s): x264 [info]: PSNR Mean Y:44.049 U:45.625 V:47.369 Avg:44.530 Global:43.948 kb/s:500.04
Pass 2 (1000 kbit/s): x264 [info]: PSNR Mean Y:46.024 U:46.916 V:48.931 Avg:46.366 Global:45.905 kb/s:1000.05
Both movies look very good based on me putting them up on my projector (Infocus SP5000) and watching them. My big question is what in these numbers really is the one im looking for and what do i want it to be? Also what is the bitrate from Pass 1 showing? Is that giving me an "optimal" bitrate or is that just a garbage number that i should pay no attention too? I know when i used to do Xvid that being up around 1000 kbit/s was a good place to be but due to x264 being much better at encoding and pass 1 showing a 486kbit/s number im hoping that 500 is a good # (or 600 or 700 or w/e is good, im really looking to learn here so any info is great)
Question 2: Are the options that im using above for mencoder the best? The Crop/Scale/Expand values were done using -vf cropdetect to get the crop values, then i scaled it to get it from the 720x480 to the 720x540 that the aspect ratio change normally does (i prefer not to have the aspect ratio resize movie because it causes hell with my media center so i pre-scale it). The expand value adds 2 pixel lines worth of black on top and bottom to get the height divisible by 16 so that the area of the image is divisible by 16x16 cubes. As for the volnorm i find that those options work rather well for ripping and fixing movies/tv shows that have low volume. The rest of the stuff being the x264 options is really what im looking for advice on. Ive compiled the best list i could based on info from this and other sites but a professional look can't hurt right? Also im noticing that the threads=2 thing doesnt actually do anything based on the info from "top". The total cpu usage barely gets over 50% and thats primarily because i have a few other things like samba running that are generating the load.
Thanks for the read on this lengthy post and any info you may give me in advance.