DEFCONFIG: enable all important FFMPEG options

- quick correction for https://github.com/MiyooCFW/buildroot/pull/117
- also disable nonfree dependencies (openssl & libfdk-aac)
This commit is contained in:
Apaczer
2024-08-08 21:39:30 +02:00
parent eadda580e9
commit 23aa769387
6 changed files with 27 additions and 30 deletions

View File

@@ -17,5 +17,5 @@ else
echo -en "Invalid video/audio format!"
# We're using SDL terminal to display above echo msg
## because all stdout is parsed to /dev/null from gmenu2x and it's child ps
st -k -e "/bin/sh" "-c" "echo -e \"\n\n\n\n\n\n\t\t\tInvalid video or audio format!\nExiting...\"; read -t 5"
st -k -e "/bin/sh" "-c" "echo -e \"\n\n\n\n\n\n\t\t\tInvalid video or audio format!\n\t\t\tExiting...\"; read -t 5"
fi

View File

@@ -14,5 +14,10 @@ else
ffmpeg -f fbdev -r 10 -i /dev/fb0 -vf "format=yuv420p"\
-c:v libx264 -preset ultrafast -framerate 10 "${OUTPUTDIR}/video_$(date +%Y%m%d%H%M%S).mp4" -nostdin -loglevel warning &
# Wait a few seconds before actual screen record, the X264 encoder needs resources before it will stabilize video ouput
st_exec_func "echo -e \"\n\n\n\n\n\n\t\t\tStarting VIDEO record...\n\t\t\tWait a few seconds to start.\"; read -t 10"
st_exec_func "echo -e \"\n\n\n\n\n\n\t\t\tStarting VIDEO record...\n\t\t\tWait a few seconds to start.\"; read -t 10;\
if pgrep ffmpeg >/dev/null; then\
echo -e \"\n\n\t\t\tRecording VIDEO in background...\";\
else\
echo -e \"\n\n\t\t\tFailed to launch ffmpeg for record...\";\
fi; read -t 2"
fi