[FFmpeg-trac] #1766(undetermined:new): Can't encode MPEG-2 at more than ~3Mb/s

FFmpeg trac at avcodec.org
Mon Aug 23 07:25:32 EEST 2021


#1766: Can't encode MPEG-2 at more than ~3Mb/s
-------------------------------------+-------------------------------------
             Reporter:  Agustín      |                    Owner:  (none)
  Dall'Alba                          |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  mpeg2video   |               Blocked By:
  dvd                                |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by pdr0):

 Replying to [comment:9 Agustín Dall'Alba]:
 >
 > I don't understand why mpeg2video does not allocate more bits to
 preserve the film grain even when set at the maximum quality:
 >
 > {{{ ffmpeg -i Sherlock\ S01E01\ sample.mkv -c:v mpeg2video -s 720x576
 -q:v 1 -an test2.mkv }}}
 >
 > Even with -q 1 it still has visible banding and blocking where there was
 none in the source. Thinking maybe the scaler was to blame, I tried with
 other codecs:
 >


 That's not "maximum quality" - you haven't set the max quantizer, and you
 could use intra if you wanted to . That's for unrestricted use, not for
 DVD-video using compliant settings (you'd need vbv restriction and a few
 other things)

 -q:v 1
 1539kb/s 0.32MB
 ffmpeg -i "Sherlock S01E01 sample.mkv" -c:v mpeg2video -s 720x576 -q:v 1
 -an test2.mkv

 limit qmax
 4784kb/s 0.97MB
 ffmpeg -i "Sherlock S01E01 sample.mkv" -c:v mpeg2video -s 720x576 -q:v 1
 -qmin 1 -qmax 1 -an test3.mkv

 limit qmax + intra
 6113kb/s 1.24MB
 ffmpeg -i "Sherlock S01E01 sample.mkv" -c:v mpeg2video -s 720x576 -q:v 1
 -qmin 1 -qmax 1 -g 1 -an test4.mkv
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/1766#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list