<div dir="ltr"><br><br><div class="gmail_quote">On Sun, Jan 29, 2012 at 13:06, Jason Garrett-Glaser <span dir="ltr"><<a href="mailto:jason@x264.com">jason@x264.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Jan 29, 2012 at 2:57 AM, aviad rozenhek <<a href="mailto:aviadr1@gmail.com">aviadr1@gmail.com</a>> wrote:<br>
> Dear Experts,<br>
><br>
> we're using x264 CLI to transcode 1080p video to 240p, using default setting<br>
> [--vf resize:432,240]<br>
> we noticed that the transcode was slow, achieving only ~70fps on an 2-cpu,<br>
> 8-core E5520 "Gainestown" machine, while utilizing only a very small portion<br>
> of the available CPU.<br>
> my analysis led me to think that the bottleneck is the down-scaling stage.<br>
<br>
</div>Transcode means to decode a video, then encode it.<br>
<br>
Decoding 1080p video is vastly more processor-intensive than encoding<br>
432x240 video.<br>
<br>
You're probably going to be massively bottlenecked by the decoding<br>
step, which x264 doesn't have anything to do with.<br>
<br>
Jason<br></blockquote><div><br></div><div style>very true. </div><div><span style>that's exactly why we are trying to solve the issue by running multiple instances of the x264 process, each working interdependently on a separate fragments of the source video.</span> by doing a 5X multi-process encode, we are effectively decoding and down-scaling with at least 5 threads, thus bypassing the decode/downscale bottleneck.</div>
<div><br></div><div>however, as I mentioned, we ran into issues with concatenation of the files, and the issue appears not to be related to timestamps.</div><div>is there anything else [such as some magic flags in the first keyframe] that can explain the "jitter" or "lag" that we experience when playing the sewn-together output file?</div>
<div><br></div></div><div style><font face="'courier new', monospace">x264 --vf resize:320,240 --ssim --psnr --preset fast --profile high --bitrate 247 --keyint 75 --vbv-bufsize 741  --no-scenecut  --force-cfr  --frames 178  -o "ltt.flv.video1.section0.flv" "love_the_taste_1.mpg"</font></div>
<div style><font face="'courier new', monospace"><br></font></div><div style><font face="'courier new', monospace">x264   --vf resize:320,240 --ssim --psnr --preset fast --profile high --bitrate 247 --keyint 75 --vbv-bufsize 741  --no-scenecut  --force-cfr  --seek 178  --frames 192  -o "ltt.flv.video1.section1.flv" "love_the_taste_1.mpg"</font></div>
<div style><font face="'courier new', monospace"><br></font></div><div style><font face="'courier new', monospace">x264   --vf resize:320,240 --ssim --psnr --preset fast --profile high --bitrate 247 --keyint 75 --vbv-bufsize 741  --no-scenecut  --force-cfr  --seek 370  --frames 192  -o "ltt.flv.video1.section2.flv" "love_the_taste_1.mpg"</font></div>
<div style><font face="'courier new', monospace"><br></font></div><div style><font face="'courier new', monospace">x264   --vf resize:320,240 --ssim --psnr --preset fast --profile high --bitrate 247 --keyint 75 --vbv-bufsize 741  --no-scenecut  --force-cfr  --seek 562  --frames 192  -o "ltt.flv.video1.section3.flv" "love_the_taste_1.mpg"</font></div>
<div style><font face="'courier new', monospace"><br></font></div><div style><font face="'courier new', monospace">x264   --vf resize:320,240 --ssim --psnr --preset fast --profile high --bitrate 247 --keyint 75 --vbv-bufsize 741  --no-scenecut  --force-cfr  --seek 754  -o "ltt.flv.video1.section4.flv" "love_the_taste_1.mpg"</font></div>
<div><br></div>-- <br>Aviad Rozenhek<br>
</div>