Hey, new here; kinda new to video encoding and for the most part I've only used Theora up until now. I Hope I'm not posting this in the wrong section.
Recently I've attempted coding in H.264 utilizing x264. I looked up Youtubes advanced specs for encoding but I'm a bit confused on which command line parameters to use to achieve them. For example the specs recommend a closed GOP with a size of half the frame-rate. I've looked at the built-in documentation and from what I can tell the keyint commands control the GOP, but I don't see a command for closed GOP; is it closed by default? And do I only need to specify the minimum GOP or the maximum or both? Also Youtube recommends a color space of 4.2.0; which command controls that? Is CABAC enabled by default? Last but not least Youtube recommends the MP4 container have no edit lists and to "moov atom at the front of the file." How do I go about doing that? I don't know if the MP4 container auto-generated by x264 have these parameters setup by default or not. In addition unlike Theora I've noticed x264 does not mux audio into the container from the source file; therefore how would I go about this manually?
Also I've tried encoding in the supposed "lossless" mode but have encountered difficulties during playback; perhaps I'm not encoding it right? To my knowledge all I need to use is --qp 0 but it doesn't playback in the player.