Skip to content

Commit 44647b5

Browse files
authored
Update FfmpegStoryScene.sh
1 parent 964036b commit 44647b5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Hochob/Services/Video/FfmpegStoryScene.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ set -x
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 ]
2930
then
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
3132
else
3233
echo "Invalid number of arguments, see Documentation"
3334
exit 1

0 commit comments

Comments
 (0)