Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

X264 encoding (general discussion)

  • 19-02-2010 12:03pm
    #1
    Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭


    I do a lot of x264 encoding and have done for a long time. Used to be for the PSP, now it's for the iPhone.

    Do you encode H264 / x264 a lot? If so, what settings do you use?

    I used to do 2 pass encodes to get the best quality for the same file size when space was an issue but now that it's less of a concern for me I'm currently using the following settings in mencoder:

    nocabac:level_idc=30:bframes=0:global_header:subq=6:frameref=6:partitions=all:trellis=1:chroma_me:me=umh:crf=17
    


    That looks ugly, so the important bits are:
    • 1 pass
    • CRF of 17 (I was using a bitrate of 1000 but crf of 17 seems to result in similar quality for significantly smaller files...I checked the PSNR)
    • threaded
    • frameref of 6
    • subq of q

    Both of the last two are on advice of the x264 documentation. They produce better quality video at the expense of longer encode times.

    Bframes are disabled because the iPhone doesn't support them. :mad:

    On my quad core (2.7GHz) I get around 50 FPS with that profile and it results in very high quality video.


Comments

  • Closed Accounts Posts: 6,706 ✭✭✭Voodu Child


    I use CRF, though rarely less than 19, I just find there is diminishing returns (in terms of visual quality) beyond that. To be honest I dont have a fixed figure, I tweak the RF depending on the source quality, and whether im going to be watching it on a big screen or a PMP. But with the current x264 build, i'd rarely go above 19 or below 20.

    As for encoding settings, there's an old saying - 'Speed, quality, size....pick two'. Well for me, once i started using CRF that is quality taken care of, I get consistent visual results no matter what. And of the other two, speed is more important to me than size, because ive tonnes of storage space, but a relatively slow processor. So im not too bothered these days about using crazy x264 settings. Just a simple Main or High profile with conservative settings is fine for me. Full DVD rip (with full-res anamorphic frame and original AC3 track) rarely goes above 1GB or 1.5GB, looks 95% as good as the source, and is very quick even on my crusty old laptop. Job done.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    I did a few tests with the CRF and compared the PSNR value (basically how close to the original it was). I felt like the point of diminishing returns v's size was at 17. Between 19 and 17 there was a noticeable difference in PSNR (I can't remember exactly what it was, but it was enough that it should be perceptible).

    I've only just switched to CRF there in the last week or so. I was using constant bitrate before that (mostly 2 pass). I'm amazed at the difference in file size for the same length of input video. I'm watching the "world at war" BBC documentary series and I encoded 2 episodes there yesterday. One came in at 719MB and another at 890!! (128 bit aac audio)

    I should admit that I'm a quality snob. :D With the quad core and good support for threading in the x264 library (coupled with the fact that I can kick off an encode on the home machine while I'm in work...I love you linux) I'm not concerned with encode times at all. Even if I only had a single slow core I'd use the same settings.


  • Closed Accounts Posts: 6,706 ✭✭✭Voodu Child


    Khannie wrote: »

    I've only just switched to CRF there in the last week or so. I was using constant bitrate before that (mostly 2 pass). I'm amazed at the difference in file size for the same length of input video. I'm watching the "world at war" BBC documentary series and I encoded 2 episodes there yesterday. One came in at 719MB and another at 890!! (128 bit aac audio)
    And even more amazing is that if you were using High-Profile settings (which you can't obviously as you are encoding for the iPod) those encodes would likely be coming in at 500MB or less, and the same (or better) visual quality...there really is a massive difference in efficiency when you enable CABAC, use a few b-frames, etc. It really is a testament to the efficiency of x264, and even that has come on in leaps and bounds over the years.
    I should admit that I'm a quality snob.:D
    Not with 128kbps AAC you're not :pac:


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Not with 128kbps AAC you're not :pac:

    Haha. :D I had it at 160 but the train just doesn't justify it. I'm about to invest is some mega earphones so I may go back to 160 again.


Advertisement