<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">I have encoded my videos using ffmpeg and H264, and this is my ffmpeg command (2 pass encoding):</p><pre style="margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;background-color:rgb(239,240,241);word-wrap:normal;color:rgb(36,39,41)"><code style="margin:0px;padding:0px;border:0px;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit">ffmpeg -y -i Edited\ Clips/arsenalVScristalPalas.mp4 -movflags faststart -c:v libx264 -x264opts 'keyint=300:min-keyint=25:8x8dct:sliced-threads=0:subq=6' -deblock 0:0 -flags +loop -preset slow -tune zerolatency -b:v 2048k -maxrate 2048k -bufsize 3000k -vf "scale=-1280:720" -pass 1 -acodec libmp3lame -b:a 128k -coder 1 -me_range 16 -sc_threshold 42 -bf 10 -qmin 0 -qmax 51 -trellis 2 -rc_lookahead 60 -ss 00:01:00 -t 00:01:00 -f mp4 /dev/null


ffmpeg -i Edited\ Clips/arsenalVScristalPalas.mp4 -movflags faststart -c:v libx264 -x264opts 'keyint=300:min-keyint=25:8x8dct:sliced-threads=0:subq=6' -deblock 0:0 -flags +loop -preset slow -tune zerolatency -b:v 2048k -maxrate 2048k -bufsize 3000k -vf "scale=-1280:720" -pass 2 -acodec libmp3lame -b:a 128k -coder 1 -me_range 16 -sc_threshold 42 -bf 10 -qmin 0 -qmax 51 -trellis 2 -rc_lookahead 60 -ss 00:01:00 -t 00:01:00  2pass15.mp4
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">I need the video to be in the highest quality (at the 2000kbps bitrate). I have another video with the same bitrate (from another source), but It has a better quality than my video. I need to reach that quality.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">I used mediainfo to get the encoding options for that video, and here is the information:</p><blockquote style="margin:0px 0px 10px;padding:10px;border-width:0px 0px 0px 2px;border-top-style:initial;border-right-style:initial;border-bottom-style:initial;border-left-style:solid;border-top-color:initial;border-right-color:initial;border-bottom-color:initial;border-left-color:rgb(255,235,142);font-size:15px;quotes:none;background-color:rgb(255,249,227);color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif"><p style="margin:0px 0px 1em;padding:0px;border:0px;clear:both">General Complete name : arsenalVScristalPalas_hd.mp4 Format<br>: MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 171 MiB Duration<br style="margin-bottom:0px">: 11mn 1s Overall bit rate : 2 164 Kbps Encoded date : UTC 1904-01-01 00:00:00 Tagged date : UTC 1904-01-01 00:00:00 Writing application : Lavf57.63.100</p><p style="margin:0px 0px 1em;padding:0px;border:0px;clear:both">Video ID : 1 Format<br>: AVC Format/Info : Advanced Video Codec Format profile : Main@L3.1 Format settings, CABAC : Yes Format settings, ReFrames<br>: 6 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration<br>: 11mn 1s Bit rate : 2 048 Kbps Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate mode<br>: Constant Frame rate : 50.000 fps Color space : YUV Chroma subsampling<br>: 4:2:0 Bit depth : 8 bits Scan type<br>: Progressive Bits/(Pixel*Frame) : 0.044 Stream size : 160 MiB (94%) Writing library<br>: x264 core 148 r2643 5c65704 Encoding settings<br style="margin-bottom:0px">: cabac=1 / ref=6 / deblock=1:1:1 / analyse=0x1:0x131 / me=umh / subme=9 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=22 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=2048 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=2048 / vbv_bufsize=5000 / nal_hrd=none / filler=0 / ip_ratio=1.41 / aq=1:0.60 Language : English Encoded date : UTC 1904-01-01 00:00:00 Tagged date : UTC 1904-01-01 00:00:00</p><p style="margin:0px;padding:0px;border:0px;clear:both">Audio ID : 2 Format<br>: AAC Format/Info : Advanced Audio Codec Format profile : HE-AAC / LC Codec ID<br>: 40 Duration : 11mn 1s Duration_LastFrame : -23ms Bit rate mode<br>: Constant Bit rate : 128 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate<br>: 48.0 KHz / 24.0 KHz Frame rate : 23.438 fps (1024 spf) Compression mode : Lossy Stream size : 10.1 MiB (6%) Language<br>: English Default : Yes Alternate group : 1 Encoded date<br style="margin-bottom:0px">: UTC 1904-01-01 00:00:00 Tagged date : UTC 1904-01-01 00:00:00</p></blockquote><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">and this is the information of my video:</p><blockquote style="margin:0px 0px 10px;padding:10px;border-width:0px 0px 0px 2px;border-top-style:initial;border-right-style:initial;border-bottom-style:initial;border-left-style:solid;border-top-color:initial;border-right-color:initial;border-bottom-color:initial;border-left-color:rgb(255,235,142);font-size:15px;quotes:none;background-color:rgb(255,249,227);color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif"><p style="margin:0px 0px 1em;padding:0px;border:0px;clear:both">General Complete name : 2pass14.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 15.4 MiB Duration<br style="margin-bottom:0px">: 1mn 0s Overall bit rate : 2 150 Kbps Encoded date : UTC 1904-01-01 00:00:00 Tagged date : UTC 1904-01-01 00:00:00 Writing application : Lavf56.40.101</p><p style="margin:0px 0px 1em;padding:0px;border:0px;clear:both">Video ID : 1 Format<br>: AVC Format/Info : Advanced Video Codec Format profile : High@L3.2 Format settings, CABAC : Yes Format settings, ReFrames<br>: 5 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration<br>: 1mn 0s Bit rate : 2 048 Kbps Width<br>: 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate mode<br>: Constant Frame rate : 50.000 fps Color space : YUV Chroma subsampling<br>: 4:2:0 Bit depth : 8 bits Scan type<br>: Progressive Bits/(Pixel*Frame) : 0.044 Stream size : 14.4 MiB (94%) Writing library<br>: x264 core 148 r2643 5c65704 Encoding settings<br>: cabac=1 / ref=5 / deblock=1:3:3 / analyse=0x3:0x113 / me=umh / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=25 / scenecut=42 / intra_refresh=0 / rc_lookahead=0 / rc=2pass / mbtree=0 / bitrate=2048 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=2048 / vbv_bufsize=3000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00 Language<br style="margin-bottom:0px">: English Encoded date : UTC 1904-01-01 00:00:00 Tagged date : UTC 1904-01-01 00:00:00</p><p style="margin:0px;padding:0px;border:0px;clear:both">Audio ID : 2 Format<br>: MPEG Audio Format version : Version 1 Format profile : Layer 3 Mode<br>: Joint stereo Mode extension : MS Stereo Codec ID : 6B Duration<br>: 1mn 0s Duration_LastFrame : -1ms Bit rate mode : Constant Bit rate : 128 Kbps Maximum bit rate : 2 048 Kbps Channel(s)<br>: 2 channels Sampling rate : 48.0 KHz Compression mode : Lossy Stream size<br>: 938 KiB (6%) Language : English Default : Yes Alternate group<br style="margin-bottom:0px">: 1 Encoded date : UTC 1904-01-01 00:00:00 Tagged date : UTC 1904-01-01 00:00:00</p></blockquote><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">is there anything that I am doing wrong?? any suggestions on how to improve my output quality??</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">and here is a demo of videos,</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">the video that has a better quality:</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif"><a href="https://ufile.io/b7a1b" rel="nofollow noreferrer" style="margin:0px;padding:0px;border:0px;color:rgb(24,82,154);text-decoration:none">https://ufile.io/b7a1b</a></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">my video, that I need to improve quality:</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif"><a href="https://ufile.io/363f11" rel="nofollow noreferrer" style="margin:0px;padding:0px;border:0px;color:rgb(24,82,154);text-decoration:none">https://ufile.io/363f11</a></p></div>