Skip to content

Commit

Permalink
reduce ffmpeg memory footprint
Browse files Browse the repository at this point in the history
  • Loading branch information
dvojtise committed Sep 23, 2024
1 parent 41c48f6 commit 4c990e3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ spec:
"MAVEN_OPTS=-Xmx2048m -XshowSettings:vm -Duser.home=/home/jenkins"]){
dir ('gemoc-studio/dev_support/tycho_full_compilation') {
sh 'printenv'
sh "python3 ~/memory-monitor-per-process.py > build_product_process_mem.log &\
mvn -Dmaven.test.failure.ignore \"-Dstudio.variant=${studioVariant}\" -Dbranch.variant=${BRANCH_VARIANT} \
sh "mvn -Dmaven.test.failure.ignore \"-Dstudio.variant=${studioVariant}\" -Dbranch.variant=${BRANCH_VARIANT} \
-Djava.awt.headless=true \
--projects ../../gemoc_studio/releng/org.eclipse.gemoc.gemoc_studio.targetplatform,../../gemoc_studio/releng/org.eclipse.gemoc.gemoc_studio.updatesite\
clean install --errors --show-version --batch-mode "
Expand Down Expand Up @@ -280,13 +279,13 @@ spec:
/*
-crf : quality the lower the better
-r : frame per seconds
-preset ultrafast : reduce memory footpring
*/
sh "ffmpeg -f x11grab -video_size 1024x768 -i $DISPLAY -vcodec libx264 -tune stillimage -crf 23 -r 12 -pix_fmt yuv420p target/system_test.mp4 </tmp/stop-ffmpeg >target/VideoCapture.log 2>>target/VideoCapture_err.log &"
sh "ffmpeg -f x11grab -video_size 1024x768 -i $DISPLAY -vcodec libx264 -tune stillimage -preset ultrafast -crf 23 -r 12 -pix_fmt yuv420p target/system_test.mp4 </tmp/stop-ffmpeg >target/VideoCapture.log 2>>target/VideoCapture_err.log &"
// use linux timeout in order to continue the video capture
// capture the returnStatus in order to make sure to stop ffmepg even if an error occured
//def status = sh(returnStatus: true, script: "top -c -d 2 -w128 -b& \
def status = sh(returnStatus: true, script: "python3 ~/memory-monitor-per-process.py > test_process_mem.log &\
timeout -s KILL 60m \
def status = sh(returnStatus: true, script: "timeout -s KILL 60m \
mvn -Dmaven.test.failure.ignore \"-Dstudio.variant=${studioVariant}\" -Dbranch.variant=${BRANCH_VARIANT} \
--projects ../../gemoc_studio/tests/org.eclipse.gemoc.studio.tests.system.lwb,../../gemoc_studio/tests/org.eclipse.gemoc.studio.tests.system.mwb,../../gemoc_studio/releng/org.eclipse.gemoc.gemoc_studio.targetplatform\
verify --errors --show-version --batch-mode ")
Expand Down

0 comments on commit 4c990e3

Please sign in to comment.