Skip to content

Commit ad1b687

Browse files
committed
fix x265 ratechange during streaming
1 parent cfeb6f6 commit ad1b687

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

circle_scripts/deps_linux.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ cd x265_git/
6868
export CXXFLAGS=${CXXFLAGS_ADDON}
6969
export CFLAGS=${CFLAGS_ADDON}
7070

71+
# fix ratecontrol while streaming --------------------
72+
echo "#####ratecontrolfix#####"
73+
sed -i -e \
74+
's#m_param->rc.bitrate = m_param->rc.vbvMaxBitrate#m_param->rc.vbvMaxBitrate = m_param->rc.bitrate#g' \
75+
./encoder/ratecontrol.cpp
76+
git diff ./encoder/ratecontrol.cpp
77+
echo "#####ratecontrolfix#####"
78+
# fix ratecontrol while streaming --------------------
79+
7180
if [ "$1""x" == "raspix" ]; then
7281
echo "*** RASPI ***"
7382
cmake . -DCMAKE_INSTALL_PREFIX="$_INST_" -DENABLE_PIC=ON -DENABLE_ASSEMBLY=OFF # -DCMAKE_VERBOSE_MAKEFILE=ON

0 commit comments

Comments
 (0)