x264 Settings... Help Needed

If you have questions about compression/encoding/converting look here.
User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: x264 Settings... Help Needed

Postby mirkosp » Fri Jul 22, 2011 4:41 am

QT has a lot of playback issues and unsupported basic features, which is why it fails playing that encode. You'd have to limit the settings, if you wish to support it. Imho it's just not worth it: it's better to get people to use better players, on OSX there are mplayer osx extended and mplayer2, there's not even the need to use vlc, nevermind qt.

Re: segmentation fault... perhaps see if lowering the rc-lookahead helps? Just a random guess, though. :\

Code: Select all

./x264 --preset veryslow --tune animation --rc-lookahead 40 --deblock -1:-2 --aq-strength 0.8 --psy-rd 0.7:0.2 --output "test.mkv" "TEST UNCOMPRESSED.mov"
Image

TheRyuu
Joined: Wed May 19, 2010 5:33 pm
Org Profile

Re: x264 Settings... Help Needed

Postby TheRyuu » Fri Jul 22, 2011 4:58 am

mirkosp wrote:it's better to get people to use better operating systems

ftfy

As far as the segmentation faults are concerned, maybe the binaries just don't like you. You could try compiling them yourself if all else fails.

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: x264 Settings... Help Needed

Postby Qyot27 » Fri Jul 22, 2011 1:54 pm

The segfault is probably due to colorspace and bit depth issues, because I'm fairly sure I duplicated it on Windows (it doesn't report a Segmentation fault, it just makes x264 crash after reporting the exact same things).

You need to use the --vf option to convert to a colorspace/bit depth x264 understands. So see if one of these fixes it:

--vf resize:csp=yv12:8
--vf resize:csp=i444:8 --output-csp i444



Alternatively, re-render from the NLE and make sure it outputs in a colorspace/bit depth that won't get choked on.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Kira_Douji
Joined: Sun Feb 20, 2005 1:38 pm
Org Profile

Re: x264 Settings... Help Needed

Postby Kira_Douji » Fri Jul 22, 2011 2:08 pm

Mirk - Yeah, I do have other players, it's just that they can't integrate as well as QT. Really wish I could tell QuickLook to run through something else (movist/mplayer etc...) This would probably solve the majority of my irritation.

Ryuu - I'm sorry, I fail to see the point of your post?

Qyot27 - Helpful as always, I'll try that. It was previously in:

Code: Select all

Color space                      : YUV
Chroma subsampling               : 4:2:2
Bit depth                        : 10 bits
Compression mode                 : Lossless

So I figured it'd be okay - I forgot about the YV12. Whoops. :sweat: I'll see if changing it helps.
ImageImage

User avatar
Kira_Douji
Joined: Sun Feb 20, 2005 1:38 pm
Org Profile

Re: x264 Settings... Help Needed

Postby Kira_Douji » Fri Jul 22, 2011 2:47 pm

Update:

The colorspace tag resolved everything :) It's got me looking for a YV12 codec for the system...

As for the rest - CLI and MPEGStreamClip methods are both working, I have a better understanding of what had caused me some confusion before (mainly QuickTime, of course >>) and I appreciate all the help you've all given. <3

Now, I'm just curious if any of their QuickTime upgrades in Lion fix any of this mess. :x
ImageImage

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: x264 Settings... Help Needed

Postby Qyot27 » Fri Jul 22, 2011 4:35 pm

Kira_Douji wrote:Qyot27 - Helpful as always, I'll try that. It was previously in:

Code: Select all

Color space                      : YUV
Chroma subsampling               : 4:2:2
Bit depth                        : 10 bits
Compression mode                 : Lossless

So I figured it'd be okay - I forgot about the YV12. Whoops. :sweat: I'll see if changing it helps.

Ah, yeah. I've been seeing reports of yuv422p10le being misread as yuv422p16le. Looking at it again, FFmpeg does support V210, which is uncompressed 10-bit 4:2:2. x264 doesn't seem to have a problem if it's specifically in V210 as output by FFmpeg, although it still converts it to 8-bit. It just doesn't crash or misread it as being 16-bit.

Basically,
ffmpeg -i input.mov -vcodec v210 output.avi
(or output.mov, since it doesn't seem to really matter, as long as the container supports it)

And then give the output to x264. At least the --vf option makes it work, though.




As a further note on a previous part of the thread, the ./ needed to make the programs run is solely because they aren't on the PATH, and *nixen won't run programs that aren't on their PATH without the user explicitly overriding that behavior (it's a security measure); the ./ is simply the most common method of overriding it. To avoid needing to do that, just copy x264 to /usr/bin (sudo cp x264 /usr/bin).

Do you have Perian installed? That's generally the go-to solution to resolve the issue of Quicktime not supporting H.264 properly, even though it's usually just easier to rely on one's favored variant of mplayer (especially with the reports of Perian doing odd things to Final Cut). Otherwise you have to pretty much gut your encodes. I'm not sure where QT's compatibility cut-off is with x264's presets, although I'd guess any of the 'fast' presets would be fine.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Kira_Douji
Joined: Sun Feb 20, 2005 1:38 pm
Org Profile

Re: x264 Settings... Help Needed

Postby Kira_Douji » Fri Jul 22, 2011 5:23 pm

Qyot27 wrote:Ah, yeah. I've been seeing reports of yuv422p10le being misread as yuv422p16le. Looking at it again, FFmpeg does support V210, which is uncompressed 10-bit 4:2:2. x264 doesn't seem to have a problem if it's specifically in V210 as output by FFmpeg, although it still converts it to 8-bit. It just doesn't crash or misread it as being 16-bit.

Basically,
ffmpeg -i input.mov -vcodec v210 output.avi
(or output.mov, since it doesn't seem to really matter, as long as the container supports it)

And then give the output to x264. At least the --vf option makes it work, though.


Hm... I wonder if just exporting in 8bit with everything else otherwise the same would work? I'll have to test it. :x

Qyot27 wrote:As a further note on a previous part of the thread, the ./ needed to make the programs run is solely because they aren't on the PATH, and *nixen won't run programs that aren't on their PATH without the user explicitly overriding that behavior (it's a security measure); the ./ is simply the most common method of overriding it. To avoid needing to do that, just copy x264 to /usr/bin (sudo cp x264 /usr/bin).


!!! That makes so much more sense now :awesome: I guess I'm still used to DOS where if it could see it, it'd run. -_- I'm still getting the hang of navigating via Terminal on OS X - I frankly haven't really needed to know it like I did with DOS back in the day. This gives me a bit of an incentive, though, ty <3

Qyot27 wrote:Do you have Perian installed? That's generally the go-to solution to resolve the issue of Quicktime not supporting H.264 properly, even though it's usually just easier to rely on one's favored variant of mplayer (especially with the reports of Perian doing odd things to Final Cut). Otherwise you have to pretty much gut your encodes. I'm not sure where QT's compatibility cut-off is with x264's presets, although I'd guess any of the 'fast' presets would be fine.


I might dig into this a bit - it's not terribly difficult to poke around, but I do know the default preset for MPEGStreamClip in x264 is "Medium" and if I left it at default values, it never had a problem - only when I tweaked. I'll have to run some encodes to track it down, though I think I remember seeing something about QT not liking certain qpmin values... Aya :sweat: I swamped myself with forum digging to figure this out so I don't remember where.

I do have Perian, though - it's one of the first things I install, which was part of the reason I didn't originally think QuickTime itself was the culprit for the artifacts. Not sure what you mean about issues with FC, though? It really hasn't given me any problems with that... At least, that I know of. :uhoh:
ImageImage

User avatar
gotenks794
Joined: Mon Jul 30, 2007 4:39 pm
Org Profile

Re: x264 Settings... Help Needed

Postby gotenks794 » Fri Jul 22, 2011 11:05 pm

MPlayerX from the Mac App store is much better than Quicktime. Just about every video I throw at it works.
Image
MAC is a cosmetics brand. Mac is the superior computing platform. It's not an acronym.

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: x264 Settings... Help Needed

Postby Mister Hatt » Sun Jul 24, 2011 3:21 am

MPlayer2 craps on MPlayerX, but if you care about GUI you should be using Perian in the first place. Also Apple fucked up again? Colour me unsurprised.

User avatar
Kira_Douji
Joined: Sun Feb 20, 2005 1:38 pm
Org Profile

Re: x264 Settings... Help Needed

Postby Kira_Douji » Sun Jul 24, 2011 11:38 am

I have players that work, thanks - I was just hoping to get the integrated one working... Maybe someday you'll actually be able to set a default player other than Quicktime.

One can hope, I guess.
ImageImage

YiuKorochko
Joined: Tue Aug 02, 2011 7:56 am
Org Profile

Re: x264 Settings... Help Needed

Postby YiuKorochko » Tue Aug 02, 2011 8:46 am

Mac's don't have any decent interfaces for x264. I highly suggest moving the file to a Windows machine with MeGUI installed.

I have a x264 profile sheet I designed which kicks the crap out of pretty much every other method. Lossless video at tiny sizes.

User avatar
Kira_Douji
Joined: Sun Feb 20, 2005 1:38 pm
Org Profile

Re: x264 Settings... Help Needed

Postby Kira_Douji » Tue Aug 02, 2011 7:22 pm

Actually MPEGStreamClip has an extensive interface (as seen on the front page), I just didn't understand the settings and when they made more sense, I hadn't realized QuickTime was messing it up anyway.
ImageImage

YiuKorochko
Joined: Tue Aug 02, 2011 7:56 am
Org Profile

Re: x264 Settings... Help Needed

Postby YiuKorochko » Tue Aug 02, 2011 8:41 pm

Kira_Douji wrote:Actually MPEGStreamClip has an extensive interface (as seen on the front page), I just didn't understand the settings and when they made more sense, I hadn't realized QuickTime was messing it up anyway.

That's what I mean. You've obviously not seen MeGUI. There's a ToolTip for nearly every single setting in x264 configuration menu. After reading the x264 manual, I spent months figuring out just what made it work so well.
However, since you're using a Mac variant, I can't guarantee that the commands I've figured out will be any use to you.

User avatar
Kira_Douji
Joined: Sun Feb 20, 2005 1:38 pm
Org Profile

Re: x264 Settings... Help Needed

Postby Kira_Douji » Tue Aug 02, 2011 8:45 pm

To be honest, I was never much interested in the settings. I used to use ZarxGUI and before that just simple scripts with MP4box and the encoder directly. And I've already received a lot of help from everyone in this thread concerning replication of that. So between that and the wiki, I've learned a lot. As far as using a 'Mac variant' goes, the actual encoding of the movies is pretty much identical, it's QuickTime that makes it seem otherwise during playback.
ImageImage

YiuKorochko
Joined: Tue Aug 02, 2011 7:56 am
Org Profile

Re: x264 Settings... Help Needed

Postby YiuKorochko » Tue Aug 02, 2011 8:51 pm

Kira_Douji wrote:To be honest, I was never much interested in the settings. I used to use ZarxGUI and before that just simple scripts with MP4box and the encoder directly. And I've already received a lot of help from everyone in this thread concerning replication of that. So between that and the wiki, I've learned a lot. As far as using a 'Mac variant' goes, the actual encoding of the movies is pretty much identical, it's QuickTime that makes it seem otherwise during playback.

You must have fast internet lol. With the proper set-up, x264 can pump out amazing quality with tiny file sizes. If your internet is that good and you don't upload your RAWs to file sharers or via torrent then that's perfectly fine.
Sorry I wasn't able to contribute ;D


Return to “Conversion / Encoding Help”

Who is online

Users browsing this forum: No registered users and 1 guest