Skip to content

Commit

Permalink
Merge pull request #1 from Project-Coda/dev
Browse files Browse the repository at this point in the history
Convert X and Y to env vars
  • Loading branch information
ikifar2012 authored Jul 13, 2022
2 parents 7c65c28 + 918b00c commit 33e3d97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ AUDIO_SOURCE=

NP_SOURCE=/data/song.txt
FONT=/data/BebasNeue-Regular.ttf

POSITION_X=50
POSITION_Y=th
2 changes: 1 addition & 1 deletion rootfs/ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ldconfig && ffmpeg \
-filter:v fps=$FPS \
-vf drawtext="fontsize=50: fontfile=$FONT: \
box=0: [email protected]: boxborderw=20: \
textfile=$NP_SOURCE: reload=1: [email protected]: x=50: y=th" \
textfile=$NP_SOURCE: reload=1: [email protected]: x=$POSITION_X: y=$POSITION_Y" \
-c:v h264_nvenc -g $(($FPS * 2)) \
-b:v $VBR \
-f flv "$YOUTUBE_URL/$KEY"

0 comments on commit 33e3d97

Please sign in to comment.