File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 88
99# . ~/CodeLabs/Hochob/Main.sh
1010
11- export FFMPEG_PID =$$
12- export FFMPEG_BINARY =ffmpeg
13- export FFMPEG_ARGUMENTS =" -y -s 4096x2304 -framerate 10 -vf fps=10 -pix_fmt yuv420p -acodec copy "
11+ export FFMPEG_STORY_SCENE_PID =$$
12+ export FFMPEG_STORY_SCENE_BINARY =ffmpeg
13+ export FFMPEG_STORY_SCENE_ARGUMENTS =" -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest "
1414
15- LOCAL_AUDIO=$1
16- LOCAL_DIRECTORY=" $2 "
15+ LOCAL_IMAGE=$1
16+ LOCAL_AUDIO=$2
17+ LOCAL_VIDEO=$2
1718
1819# =============================================================================
1920# Functions
@@ -25,9 +26,9 @@ LOCAL_DIRECTORY="$2"
2526# Main
2627# =============================================================================
2728
28- if [ $# -eq 2 ]
29+ if [ $# -eq 3 ]
2930then
30- $FFMPEG_BINARY -i " $LOCAL_DIRECTORY / " %04d.jpg -i $LOCAL_AUDIO $FFMPEG_ARGUMENTS $FFMPEG_VIDEO_AUDIO
31+ # ffmpeg -loop 1 -i $LOCAL_IMAGE -i $LOCAL_AUDIO $FFMPEG_STORY_SCENE $LOCAL_VIDEO
3132else
3233 echo " Invalid number of arguments, see Documentation"
3334 exit 1
You can’t perform that action at this time.
0 commit comments