<div dir="ltr">Thank you so much for your response! Very helpful!<div><br><div>Do you know why levels 5.0, 5.1 and 5.2 do not allow interlaced encoding?</div><div>Maybe I overlooked it in the spec?</div><div><br></div><div>Thanks</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 23, 2016 at 7:26 PM, BugMaster <span dir="ltr"><<a href="mailto:BugMaster@narod.ru" target="_blank">BugMaster@narod.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, 23 Jun 2016 12:13:04 +0200, Weasel Friend wrote:<br>
> Hi,<br>
<br>
> today I tried to encode interlaced content with 1920x1080 and 4Mbps<br>
> and was wondering why x264 auto detects level 5.2 for it. When doing<br>
> the same settings but with progressive output the level is detected<br>
> as 5.0. As of my understanding DPB should not be affected by interlaced content?<br>
<br>
> x264 command I used:<br>
> x264 - --demuxer y4m --profile main --preset slow --bitrate 4000 --bff --output video.h264<br>
<br>
> Relevant output with --bff<br>
> y4m [info]: 1920x1080i 1:1 @ 2997/100 fps (cfr)<br>
> x264 [warning]: interlace + weightp is not implemented<br>
> x264 [warning]: interlaced (1) > level limit (0)<br>
> x264 [info]: profile Main, level 5.2<br>
<br>
> Relevant output without --bff<br>
> y4m [info]: 1920x1080p 1:1 @ 2997/100 fps (cfr)<br>
> x264 [info]: profile Main, level 5.0<br>
<br>
> I know I can restrict the level to 5.0 but I am curious if there<br>
> are any additional level requirements for interlaced content that I missed?<br>
<br>
> Thanks<br>
<br>
</div></div>Hi. I am dunno if this can be counted as x264 bug. You should specify<br>
`--level 4.1` or `--ref 4` in this case. Here why it happens:<br>
1) you use `--preset slow` which have default ref=5;<br>
2) you didn't specified `--level` so x264 do NOT try to reduce ref<br>
count (because it doesn't know to which level);<br>
3) x264 tries to find level that allow specifed DPB (with ref=5) but<br>
because levels from 1.0 to 4.2 don't allow such DPB we skip them;<br>
4) but we skip levels from 5.0 to 5.1 too because the last level that<br>
allowed interlaced encoding was level 4.1;<br>
5) so we stop at level 5.2 because it is the last one we check and we<br>
need to specify some level anyway (even thou level 5.2 also doesn't<br>
allow interlaced encoding).<br>
<br>
_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x264-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x264-devel</a><br>
</blockquote></div><br></div>