wiseant
1st August 2013, 01:37
Hi
I am trying to figure out good settings for x264 in order to have smooth playback using Quicktime. I am not a big fan of Quicktime - but I have created some html files with javascript that will playback mp4/avc files using either HTML5 <video>, Flash, Silverlight, or Quicktime. Flash and Silverlight playback for mp4/avc is a lot better than the QuickTime plugin for Windows. I am not a Mac user but I suspect Quicktime playback to be a lot better on a Mac.
I have a number of Quicktime files that I downloaded from Apple a couple of years ago and noticed that most of them had these settings:
CABAC - no; ReFrames : 2 frames;
I'm also under the impression that Quicktime may only support 2 b-frames, and I read recently that Quicktime might have a problem with qpmin=0
Anyway, I did some test encodes
1. using superfast preset with crf 22
2. using default preset with crf 22
The differences being
1. ref=3; me=hex; subme=7; mixed_ref=1; trellis=1; chroma_qp_offset=-2; weightp=2; rc_lookahead=40; mbtree=1; no pb_ratio
2. ref=1; me=dia; subme=1; mixed_ref=0; trellis=0; chroma_qp_offset=0;weightp=1; no rc_lookahead; mbtree=0; pb_ratio=1.30
The encodes I did used the same 1280x720 sources
1. 768x432 resolution [superfast]
2. 640x360 resolution [default]
The problem I noticed was that Quicktime had more problems playing the lower resolution clip - so I am presuming that there are settings in the default preset that QuickTime has problems decoding.
And, I used ffmpeg in "copy" mode
-movflags +faststart
Can anyone shed any light on which options/settings I should use for optimal playback - resolution ranging from 640x360 to 1280x720?
TIA
I am trying to figure out good settings for x264 in order to have smooth playback using Quicktime. I am not a big fan of Quicktime - but I have created some html files with javascript that will playback mp4/avc files using either HTML5 <video>, Flash, Silverlight, or Quicktime. Flash and Silverlight playback for mp4/avc is a lot better than the QuickTime plugin for Windows. I am not a Mac user but I suspect Quicktime playback to be a lot better on a Mac.
I have a number of Quicktime files that I downloaded from Apple a couple of years ago and noticed that most of them had these settings:
CABAC - no; ReFrames : 2 frames;
I'm also under the impression that Quicktime may only support 2 b-frames, and I read recently that Quicktime might have a problem with qpmin=0
Anyway, I did some test encodes
1. using superfast preset with crf 22
2. using default preset with crf 22
The differences being
1. ref=3; me=hex; subme=7; mixed_ref=1; trellis=1; chroma_qp_offset=-2; weightp=2; rc_lookahead=40; mbtree=1; no pb_ratio
2. ref=1; me=dia; subme=1; mixed_ref=0; trellis=0; chroma_qp_offset=0;weightp=1; no rc_lookahead; mbtree=0; pb_ratio=1.30
The encodes I did used the same 1280x720 sources
1. 768x432 resolution [superfast]
2. 640x360 resolution [default]
The problem I noticed was that Quicktime had more problems playing the lower resolution clip - so I am presuming that there are settings in the default preset that QuickTime has problems decoding.
And, I used ffmpeg in "copy" mode
-movflags +faststart
Can anyone shed any light on which options/settings I should use for optimal playback - resolution ranging from 640x360 to 1280x720?
TIA