Menu

Could the bitrate be changed during compression?

Help
2015-02-28
2015-03-02
  • Samuel Xing

    Samuel Xing - 2015-02-28

    The bitrates need to be modified during the compression, could (and how to) change the bitrate during the process?

     
  • BugMaster

    BugMaster - 2015-02-28

    If you mean change bitrate on the fly when encoding already started than no it is not possible with VfW interface and so there is no such feature support. Why do you want this? Can't you specify correct bitrate during configuration (and may be use --zones option if you want to give specific section different bitrate) before start of encoding?

     
  • Samuel Xing

    Samuel Xing - 2015-03-02

    Thanks for your reply.

    The reason to change bitrate on the fly is that the network quality may change from time to time, so it's better to adjust bitrate to match the bandwidth.

    There is a related dicussion here: https://sourceforge.net/p/x264vfw/discussion/770224/thread/b85d2010/, which mentioned the use of "ICM_SETSTATE".

    And it's said x264_encoder_reconfig() could dynamically change the bitrate (need to set i_vbv_max_bitrate and i_vbv_buffer_size at the same time) without calling x264_encoder_open() again, which sounds perfect.

    I think we do need this feature in practice.

     

    Last edit: Samuel Xing 2015-03-02
  • BugMaster

    BugMaster - 2015-03-02

    As said VfW interface is not good for such things. So if you want this feature than you should use libx264 directly.

     
  • Samuel Xing

    Samuel Xing - 2015-03-02

    Got it. Thanks a lot.

    As you know, is there any non-commercial h264/x264 directshow encoder filter available?

     

Log in to post a comment.