Tweaked few profiles for better quality by default
Just added cin_quality=1 to mp4.qt,mjpeg.qt, new profile mjpeg.avi and old flv. Files are much bigger, sure, but at least this doesn't show horrible blocking artefacts by default .... Writing interlaced avi still doesn't work :( even if ffmpeg support making such avi: https://trac.ffmpeg.org/ticket/6383 I also modified my patch to mimic that ffmpeg does more closely: ffmpeg: if (ost->top_field_first == 0) { enc_ctx->field_order = AV_FIELD_BB; } else if (ost->top_field_first == 1) { enc_ctx->field_order = AV_FIELD_TT; } if (frame) { if (enc_ctx->flags & (AV_CODEC_FLAG_INTERLACED_DCT | AV_CODEC_FLAG_INTERLACED_ME) && ost->top_field_first >= 0) frame->top_field_first = !!ost->top_field_first; if (frame->interlaced_frame) { if (enc_ctx->codec->id == AV_CODEC_ID_MJPEG) enc_ctx->field_order = frame->top_field_first ? AV_FIELD_TT:AV_FIELD_BB; else enc_ctx->field_order = frame->top_field_first ? AV_FIELD_TB:AV_FIELD_BT; } else enc_ctx->field_order = AV_FIELD_PROGRESSIVE; } me: switch (asset->interlace_mode) { case ILACE_MODE_TOP_FIRST: if (ctx->codec->id == AV_CODEC_ID_MJPEG) av_dict_set(&sopts, "field_order", "tt", 0); else av_dict_set(&sopts, "field_order", "tb", 0); if (ctx->codec_id == AV_CODEC_ID_MPEG4 || ctx->codec_id == AV_CODEC_ID_MPEG2VIDEO) av_dict_set(&sopts, "flags", "+ilme+ildct", 0); break; case ILACE_MODE_BOTTOM_FIRST: if (ctx->codec->id == AV_CODEC_ID_MJPEG) av_dict_set(&sopts, "field_order", "bb", 0); else av_dict_set(&sopts, "field_order", "bt", 0); if (ctx->codec_id == AV_CODEC_ID_MPEG4 || ctx->codec_id == AV_CODEC_ID_MPEG2VIDEO) av_dict_set(&sopts, "flags", "+ilme+ildct", 0); break; case ILACE_MODE_NOTINTERLACED: av_dict_set(&sopts, "field_order", "progressive", 0); break; } file attached or at https://cloud.mail.ru/public/sVbF/4u6SQjJdn Still not sure about interlaced mpeg2/mpeg4 - field order might be wrong .... I'll try to rework this section of patch one more time :(
El miércoles 18 de noviembre, Andrew Randrianasulu via Cin escribió:
Just added cin_quality=1 to mp4.qt,mjpeg.qt, new profile mjpeg.avi and old flv. Files are much bigger, sure, but at least this doesn't show horrible blocking artefacts by default ....
Great! Default values should give good results always :) Thank you very much. -- David
Andrew, For the addition of "cin_quality=1" in the attached format files of mjpg.qt, mp4.qt and flv.flv, I have rendered before and after and the rendered results/file sizes are EXACTLY THE SAME. Have I done something wrong? It looks like that is already the default and does not need to be added to the files. I just checked into GIT, your revised "dnxhd.qt" file which is really helpful to see what is legal while in the render menu. I will checkin the new "mjpeg.avi" file (you attached here) which I have tested (after I figure something out first). On Wed, Nov 18, 2020 at 7:35 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
Just added cin_quality=1 to mp4.qt,mjpeg.qt, new profile mjpeg.avi and old flv. Files are much bigger, sure, but at least this doesn't show horrible blocking artefacts by default ....
В сообщении от Wednesday 25 November 2020 01:14:10 Phyllis Smith via Cin написал(а):
Andrew, For the addition of "cin_quality=1" in the attached format files of mjpg.qt, mp4.qt and flv.flv, I have rendered before and after and the rendered results/file sizes are EXACTLY THE SAME. Have I done something wrong? It looks like that is already the default and does not need to be added to the files.
May be, for me default seems to be "-1" and this result in something like 200 kbits/s files - definitely too small for even VGA-sized film. May be stuck setting somewhere, while I don't even use user-defined via GUI render/encoding profiles. (but I do re-select each profile on new run - select something else, then re-select intended one)
I just checked into GIT, your revised "dnxhd.qt" file which is really helpful to see what is legal while in the render menu. I will checkin the new "mjpeg.avi" file (you attached here) which I have tested (after I figure something out first).
On Wed, Nov 18, 2020 at 7:35 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
Just added cin_quality=1 to mp4.qt,mjpeg.qt, new profile mjpeg.avi and old flv. Files are much bigger, sure, but at least this doesn't show horrible blocking artefacts by default ....
В сообщении от Wednesday 25 November 2020 01:14:10 Phyllis Smith via Cin написал(а):
Andrew, For the addition of "cin_quality=1" in the attached format files of mjpg.qt, mp4.qt and flv.flv, I have rendered before and after and the rendered results/file sizes are EXACTLY THE SAME. Have I done something wrong? It looks like that is already the default and does not need to be added to the files.
upd: surely it was stuck setting: ------ guest@slax:/dev/shm/cinelerra/cinelerra-5.1$ cat ~/.bcast5/Cinelerra_rc | grep QUA RECORD_FF_VIDEO_QUALITY -1 RECORD_THEORA_QUALITY 16 RECORD_JPEG_QUALITY 80 RECORD_VMPEG_QUANTIZATION 15 BRENDER_FF_VIDEO_QUALITY 0 BRENDER_THEORA_QUALITY 16 BRENDER_JPEG_QUALITY 100 BRENDER_VMPEG_QUANTIZATION 15 ****** RENDER_FF_VIDEO_QUALITY -1 ****** RENDER_THEORA_QUALITY 16 RENDER_JPEG_QUALITY 100 RENDER_VMPEG_QUANTIZATION 2 VEFFECT_FF_VIDEO_QUALITY -1 VEFFECT_THEORA_QUALITY 16 VEFFECT_JPEG_QUALITY 80 VEFFECT_VMPEG_QUANTIZATION 15 PROXY_FF_VIDEO_QUALITY 1 PROXY_THEORA_QUALITY 16 PROXY_JPEG_QUALITY 80 PROXY_VMPEG_QUANTIZATION 15 RECORD_FF_AUDIO_QUALITY -1 BRENDER_FF_AUDIO_QUALITY -1 RENDER_FF_AUDIO_QUALITY -1 BATCHRENDER_FF_AUDIO_QUALITY -1 BATCHRENDER_FF_VIDEO_QUALITY -1 BATCHRENDER_THEORA_QUALITY 16 BATCHRENDER_JPEG_QUALITY 80 BATCHRENDER_VMPEG_QUANTIZATION 15 PROXY_FF_AUDIO_QUALITY -1 CONVERT_FF_AUDIO_QUALITY -1 CONVERT_FF_VIDEO_QUALITY -1 CONVERT_JPEG_QUALITY 80 CONVERT_VMPEG_QUANTIZATION 15 CONVERT_THEORA_QUALITY 16 VEFFECT_FF_AUDIO_QUALITY -1 AEFFECT_FF_AUDIO_QUALITY -1 AEFFECT_FF_VIDEO_QUALITY -1 AEFFECT_THEORA_QUALITY 16 AEFFECT_JPEG_QUALITY 80 AEFFECT_VMPEG_QUANTIZATION 15 will fix locally.
I just checked into GIT, your revised "dnxhd.qt" file which is really helpful to see what is legal while in the render menu. I will checkin the new "mjpeg.avi" file (you attached here) which I have tested (after I figure something out first).
On Wed, Nov 18, 2020 at 7:35 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
Just added cin_quality=1 to mp4.qt,mjpeg.qt, new profile mjpeg.avi and old flv. Files are much bigger, sure, but at least this doesn't show horrible blocking artefacts by default ....
participants (3)
-
Andrew Randrianasulu -
david -
Phyllis Smith