Hi, I have some movies and they are nice encodes so I had a look in MediaInfo under encoding settings to see what settings was used as I want to do some movies I have and use the exact same settings. Encoding settings: cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=16 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:1.00 They are the same settings for every movie encode. The problem is I am really struggling to convert them settings into FFMpeg settings, I have tried for 2 days now with no joy. Could someone please help Thank you in Advance
Am Sa., 11. Apr. 2020 um 17:09 Uhr schrieb K J <kj1980@outlook.com>:
I have some movies and they are nice encodes so I had a look in MediaInfo under encoding settings to see what settings was used as I want to do some movies I have and use the exact same settings.
Encoding settings:
cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=16 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:1.00
They are the same settings for every movie encode.
The problem is I am really struggling to convert them settings into FFMpeg settings, I have tried for 2 days now with no joy.
What did you try and what didn't work (command line with complete, uncut console output missing) Carl Eugen
Below are the settings I used but only some of the settings match ffmpeg -i input.mkv -x264-params -cabac=1:-ref=4:-deblock=1:-1:-1:-analyse=0x3:0x113:-me=umh:-subme=9:-psy=1:-psy_rd=1.00:0.15:-mixed_ref=1:-me_range=24:-chroma_me=1:-trellis=2:-8x8dct=1:-cqm=0:-deadzone=21,11:-fast_pskip=1:-chroma_qp_offset=-3:-threads=16:-lookahead_threads=4:-sliced_threads=0:-nr=0:-decimate=1:-interlaced=0:-bluray_compat=0:-constrained_intra=0:-bframes=3:-b_pyramid=2:-b_adapt=2:-b_bias=0:-direct=3:-weightb=1:-open_gop=0:-weightp=2:-keyint=250:-keyint_min=25:-scenecut=40:-intra_refresh=0:-rc_lookahead=50:-rc=2pass:-mbtree=1:-bitrate=2500:-ratetol=1.0:-qcomp=0.60:-qpmin=0:-qpmax=69:-qpstep=4:-cplxblur=20.0:-qblur=0.5:-vbv_maxrate=31250:-vbv_bufsize=31250:-nal_hrd=none:-filler=0:-ip_ratio=1.40:-aq=3:1.00 -map_chapters -1 -c:a aac -ac 6 -ar 48000 -ab 224k output.mp4 After the encode is done I checked in MediaInfo under encoding settings and the settings that do not match are: ref=3 should be ref=4 deblock=1:0:0 and should be deblock=1:1:1 me=hex should be me=umh subme=7 should be subme=9 psy_rd=1.00:0 should be psy_rd=1.00:0.15 me_range=16 should be me_range=24 trellis=1 should be trellis=2 chroma_qp_offset=-2 should be chroma_qp_offset=-3 threads=12 should be threads=16 lookahead_threads=2 should be lookahead_threads=4 b_adapt=1 should be b_adapt=2 direct=1 should be direct=3 keyint_min=24 should be keyint_min=25 rc_lookahead=40 should be rc_lookahead=50 rc=crf should be rc=2pass aq=1:1.00 should be aq=3:1.00 The below do not even show up encoding settings in MediaInfo bitrate=2500 ratetol=1 cplxblur=20.0 qblur=0.5 vbv_maxrate=31250 vbv_bufsize=31250 nal_hrd=none filler=0 Thank you On 11/04/2020, 16:14, "ffmpeg-user on behalf of Carl Eugen Hoyos" <ffmpeg-user-bounces@ffmpeg.org on behalf of ceffmpeg@gmail.com> wrote: Am Sa., 11. Apr. 2020 um 17:09 Uhr schrieb K J <kj1980@outlook.com>: > I have some movies and they are nice encodes so I had a look in MediaInfo > under encoding settings to see what settings was used as I want to do > some movies I have and use the exact same settings. > > Encoding settings: > > cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=16 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:1.00 > > They are the same settings for every movie encode. > > The problem is I am really struggling to convert them settings into FFMpeg > settings, I have tried for 2 days now with no joy. What did you try and what didn't work (command line with complete, uncut console output missing) Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Below are the settings I used but only some of the settings match ffmpeg -i input.mkv -x264-params -cabac=1:-ref=4:-deblock=1:-1:-1:-analyse=0x3:0x113:-me=umh:-subme=9:-psy=1:-psy_rd=1.00:0.15:-mixed_ref=1:-me_range=24:-chroma_me=1:-trellis=2:-8x8dct=1:-cqm=0:-deadzone=21,11:-fast_pskip=1:-chroma_qp_offset=-3:-threads=16:-lookahead_threads=4:-sliced_threads=0:-nr=0:-decimate=1:-interlaced=0:-bluray_compat=0:-constrained_intra=0:-bframes=3:-b_pyramid=2:-b_adapt=2:-b_bias=0:-direct=3:-weightb=1:-open_gop=0:-weightp=2:-keyint=250:-keyint_min=25:-scenecut=40:-intra_refresh=0:-rc_lookahead=50:-rc=2pass:-mbtree=1:-bitrate=2500<tel:+442500>:-ratetol=1.0:-qcomp=0.60:-qpmin=0:-qpmax=69:-qpstep=4:-cplxblur=20.0:-qblur=0.5:-vbv_maxrate=31250<tel:+4431250>:-vbv_bufsize=31250<tel:+4431250>:-nal_hrd=none:-filler=0:-ip_ratio=1.40:-aq=3:1.00 -map_chapters -1 -c:a aac -ac 6 -ar 48000 -<tel:+4448000>ab 224k output.mp4 After the encode is done I checked in MediaInfo under encoding settings and the settings that do not match are: ref=3 should be ref=4 deblock=1:0:0 and should be deblock=1:1:1 me=hex should be me=umh subme=7 should be subme=9 psy_rd=1.00:0 should be psy_rd=1.00:0.15 me_range=16 should be me_range=24 trellis=1 should be trellis=2 chroma_qp_offset=-2 should be chroma_qp_offset=-3 threads=12 should be threads=16 lookahead_threads=2 should be lookahead_threads=4 b_adapt=1 should be b_adapt=2 direct=1 should be direct=3 keyint_min=24 should be keyint_min=25 rc_lookahead=40 should be rc_lookahead=50 rc=crf should be rc=2pass aq=1:1.00 should be aq=3:1.00 The below do not even show up in encoding settings in MediaInfo or on FFmpeg bitrate=2500<tel:+442500> ratetol=1 cplxblur=20.0 qblur=0.5 vbv_maxrate=31250<tel:+4431250> vbv_bufsize=31250<tel:+4431250> nal_hrd=none filler=0 Thank you Sent from Outlook Mobile<https://aka.ms/blhgte> ________________________________ From: ffmpeg-user <ffmpeg-user-bounces@ffmpeg.org> on behalf of K J <kj1980@outlook.com> Sent: Saturday, April 11, 2020 6:50:59 PM To: FFmpeg user questions <ffmpeg-user@ffmpeg.org> Subject: Re: [FFmpeg-user] Encoding Settings Below are the settings I used but only some of the settings match ffmpeg -i input.mkv -x264-params -cabac=1:-ref=4:-deblock=1:-1:-1:-analyse=0x3:0x113:-me=umh:-subme=9:-psy=1:-psy_rd=1.00:0.15:-mixed_ref=1:-me_range=24:-chroma_me=1:-trellis=2:-8x8dct=1:-cqm=0:-deadzone=21,11:-fast_pskip=1:-chroma_qp_offset=-3:-threads=16:-lookahead_threads=4:-sliced_threads=0:-nr=0:-decimate=1:-interlaced=0:-bluray_compat=0:-constrained_intra=0:-bframes=3:-b_pyramid=2:-b_adapt=2:-b_bias=0:-direct=3:-weightb=1:-open_gop=0:-weightp=2:-keyint=250:-keyint_min=25:-scenecut=40:-intra_refresh=0:-rc_lookahead=50:-rc=2pass:-mbtree=1:-bitrate=2500:-ratetol=1.0:-qcomp=0.60:-qpmin=0:-qpmax=69:-qpstep=4:-cplxblur=20.0:-qblur=0.5:-vbv_maxrate=31250:-vbv_bufsize=31250:-nal_hrd=none:-filler=0:-ip_ratio=1.40:-aq=3:1.00 -map_chapters -1 -c:a aac -ac 6 -ar 48000 -ab 224k output.mp4 After the encode is done I checked in MediaInfo under encoding settings and the settings that do not match are: ref=3 should be ref=4 deblock=1:0:0 and should be deblock=1:1:1 me=hex should be me=umh subme=7 should be subme=9 psy_rd=1.00:0 should be psy_rd=1.00:0.15 me_range=16 should be me_range=24 trellis=1 should be trellis=2 chroma_qp_offset=-2 should be chroma_qp_offset=-3 threads=12 should be threads=16 lookahead_threads=2 should be lookahead_threads=4 b_adapt=1 should be b_adapt=2 direct=1 should be direct=3 keyint_min=24 should be keyint_min=25 rc_lookahead=40 should be rc_lookahead=50 rc=crf should be rc=2pass aq=1:1.00 should be aq=3:1.00 The below do not even show up encoding settings in MediaInfo bitrate=2500 ratetol=1 cplxblur=20.0 qblur=0.5 vbv_maxrate=31250 vbv_bufsize=31250 nal_hrd=none filler=0 Thank you On 11/04/2020, 16:14, "ffmpeg-user on behalf of Carl Eugen Hoyos" <ffmpeg-user-bounces@ffmpeg.org on behalf of ceffmpeg@gmail.com> wrote: Am Sa., 11. Apr. 2020 um 17:09 Uhr schrieb K J <kj1980@outlook.com>: > I have some movies and they are nice encodes so I had a look in MediaInfo > under encoding settings to see what settings was used as I want to do > some movies I have and use the exact same settings. > > Encoding settings: > > cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=16 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:1.00 > > They are the same settings for every movie encode. > > The problem is I am really struggling to convert them settings into FFMpeg > settings, I have tried for 2 days now with no joy. What did you try and what didn't work (command line with complete, uncut console output missing) Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On Sat, Apr 11, 2020 at 17:50:59 +0000, K J wrote:
Below are the settings I used but only some of the settings match
ffmpeg -i input.mkv -x264-params -cabac=1:-ref=4:-deblock=1:-1:-1:-analyse=0x3:0x113:-me=umh:-subme=9:-psy=1:-psy_rd=1.00:0.15:-mixed_ref=1:-me_range=24:-chroma_me=1:-trellis=2:-8x8dct=1:-cqm=0:-deadzone=21,11:-fast_pskip=1:-chroma_qp_offset=-3:-threads=16:-lookahead_threads=4:-sliced_threads=0:-nr=0:-decimate=1:-interlaced=0:-bluray_compat=0:-constrained_intra=0:-bframes=3:-b_pyramid=2:-b_adapt=2:-b_bias=0:-direct=3:-weightb=1:-open_gop=0:-weightp=2:-keyint=250:-keyint_min=25:-scenecut=40:-intra_refresh=0:-rc_lookahead=50:-rc=2pass:-mbtree=1:-bitrate=2500:-ratetol=1.0:-qcomp=0.60:-qpmin=0:-qpmax=69:-qpstep=4:-cplxblur=20.0:-qblur=0.5:-vbv_maxrate=31250:-vbv_bufsize=31250:-nal_hrd=none:-filler=0:-ip_ratio=1.40:-aq=3:1.00 -map_chapters -1 -c:a aac -ac 6 -ar 48000 -ab 224k output.mp4
Wow, I think you misunderstood the syntax of "-x264-params". Drop all those leading dashes, please. Moritz
On Sat, Apr 11, 2020 at 15:09:35 +0000, K J wrote:
I have some movies and they are nice encodes so I had a look in MediaInfo under encoding settings to see what settings was used as I want to do some movies I have and use the exact same settings.
I want to point out that you will only get the same good results if you have comparable input material. That means resolution and frame rate, but also what kind of picture: animation, sport, general movie. Furthermore, as far as I can tell, those encoding settings use average bitrate mode, which I wouldn't recommend unless it's really required (e.g. for streaming).
They are the same settings for every movie encode. The problem is I am really struggling to convert them settings into FFMpeg settings, I have tried for 2 days now with no joy.
I don't see the joy either, especially considering the result. I personally recommend taking your source material, and experimenting with encoding with only a minimal set of settings. E.g. first try libx264 *without* any additional settings, which will imply "constant quality" encoding with CRF 23. See whether you like the result or not. (You can trade off speed for size by using other presets.) If you need a higher quality, specify a lower CRF (e.g. "-crf 21") and see whether it's better. Tuning each and every of those given parameters is really only for experts. Those previous encodings you have perhaps also only used a standard preset (with fixed bitrate). Good luck, Moritz
I have dropped all the leading dashes as you recommended. I have comparable material. Those settings are needed and the average bitrate is needed. Picture is Movie. Thanks ________________________________ From: ffmpeg-user <ffmpeg-user-bounces@ffmpeg.org> on behalf of Moritz Barsnick <barsnick@gmx.net> Sent: Saturday, 11 April 2020, 21:33 To: FFmpeg user discussions Subject: Re: [FFmpeg-user] Encoding Settings On Sat, Apr 11, 2020 at 15:09:35 +0000, K J wrote:
I have some movies and they are nice encodes so I had a look in MediaInfo under encoding settings to see what settings was used as I want to do some movies I have and use the exact same settings.
I want to point out that you will only get the same good results if you have comparable input material. That means resolution and frame rate, but also what kind of picture: animation, sport, general movie. Furthermore, as far as I can tell, those encoding settings use average bitrate mode, which I wouldn't recommend unless it's really required (e.g. for streaming).
They are the same settings for every movie encode. The problem is I am really struggling to convert them settings into FFMpeg settings, I have tried for 2 days now with no joy.
I don't see the joy either, especially considering the result. I personally recommend taking your source material, and experimenting with encoding with only a minimal set of settings. E.g. first try libx264 *without* any additional settings, which will imply "constant quality" encoding with CRF 23. See whether you like the result or not. (You can trade off speed for size by using other presets.) If you need a higher quality, specify a lower CRF (e.g. "-crf 21") and see whether it's better. Tuning each and every of those given parameters is really only for experts. Those previous encodings you have perhaps also only used a standard preset (with fixed bitrate). Good luck, Moritz _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Unfortunately dropping the dashes resulted in the same results as before when I had the leading dashes. Below was the result. Below are the settings I used but only some of the settings match ffmpeg -i input.mkv -profile:v high -level:v 4.1 -x264-params cabac=1:ref=4:deblock=1:-1:-1:analyse=0x3:0x113:me=umh:subme=9:psy=1:psy_rd=1.00:0.15:mixed_ref=1:me_range=24:chroma_me=1:trellis=2:8x8dct=1:cqm=0:deadzone=21,11:fast_pskip=1:chroma_qp_offset=-3:threads=16:lookahead_threads=4:sliced_threads=0:nr=0:decimate=1:interlaced=0:bluray_compat=0:constrained_intra=0:bframes=3:b_pyramid=2:b_adapt=2:b_bias=0:direct=3:weightb=1:open_gop=0:weightp=2:keyint=250:keyint_min=25:scenecut=40:intra_refresh=0:rc_lookahead=50:mbtree=1:bitrate=2500<tel:+442500>:ratetol=1.0:qcomp=0.60:qpmin=0:qpmax=69:qpstep=4:cplxblur=20.0:qblur=0.5:vbv_maxrate=31250<tel:+4431250>:vbv_bufsize=31250<tel:+4431250>:nal_hrd=none:filler=0:ip_ratio=1.40:aq=3:1.00 -map_chapters -1 -c:a aac -ac 6 -ar 48000<tel:+4448000> -ab 224k output.mp4 After the encode is done I checked in MediaInfo under encoding settings and the settings that do not match are: ref=3 should be ref=4 deblock=1:0:0 and should be deblock=1:1:1 me=hex should be me=umh subme=7 should be subme=9 psy_rd=1.00:0 should be psy_rd=1.00:0.15 me_range=16 should be me_range=24 trellis=1 should be trellis=2 chroma_qp_offset=-2 should be chroma_qp_offset=-3 threads=12 should be threads=16 lookahead_threads=2 should be lookahead_threads=4 b_adapt=1 should be b_adapt=2 direct=1 should be direct=3 keyint_min=24 should be keyint_min=25 rc_lookahead=40 should be rc_lookahead=50 aq=1:1.00 should be aq=3:1.00 The below do not even show up in encoding settings in MediaInfo or on FFmpeg bitrate=2500<tel:+442500> ratetol=1 cplxblur=20.0 qblur=0.5 vbv_maxrate=31250<tel:+4431250> vbv_bufsize=31250<tel:+4431250> nal_hrd=none filler=0 I really appreciate your help :-) Thank you ________________________________ From: ffmpeg-user <ffmpeg-user-bounces@ffmpeg.org> on behalf of Moritz Barsnick <barsnick@gmx.net> Sent: Sunday, 12 April 2020, 13:35 To: FFmpeg user discussions Subject: Re: [FFmpeg-user] Encoding Settings On Sun, Apr 12, 2020 at 12:09:57 +0000, K J wrote:
I have dropped all the leading dashes as you recommended.
That means it works now?
I have comparable material. Those settings are needed and the average bitrate is needed.
Okay, I just wanted to point it out. ;-) Good luck, Moritz _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe". Sent from Outlook Mobile<https://aka.ms/blhgte>
Am So., 12. Apr. 2020 um 15:19 Uhr schrieb K J <KJ1980@outlook.com>:
I really appreciate your help :-)
Then why can't you provide the missing information? Please find out what top-posting means and avoid it here. Carl Eugen
What missing information do you need? I have given all the information I have. Thanks On 12/04/2020, 14:50, "ffmpeg-user on behalf of Carl Eugen Hoyos" <ffmpeg-user-bounces@ffmpeg.org on behalf of ceffmpeg@gmail.com> wrote: Am So., 12. Apr. 2020 um 15:19 Uhr schrieb K J <KJ1980@outlook.com>: > I really appreciate your help :-) Then why can't you provide the missing information? Please find out what top-posting means and avoid it here. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On 4/12/2020 7:17 AM, K J wrote:
What missing information do you need? I have given all the information I have.
The entire command output(s). And not to top-post, please. z!
This can now be closed as I have sorted everything and have exactly what I needed. Thank You -- Sent from: http://www.ffmpeg-archive.org/
participants (5)
-
Carl Eugen Hoyos -
Carl Zwanzig -
K J -
KiaN80 -
Moritz Barsnick