2022-03-30 08:42:39 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-04-04 11:34:50 +02:00
|
|
|
if [ $# -ne 2 ] ; then
|
|
|
|
echo
|
|
|
|
echo "need two arguments:"
|
|
|
|
echo " source dir"
|
|
|
|
echo " mp4 filename"
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-03-30 08:42:39 +02:00
|
|
|
|
2022-04-04 11:34:50 +02:00
|
|
|
SDIR="$1"
|
|
|
|
FNAME="$2"
|
|
|
|
echo "Encoding from " $SDIR " to " $FNAME
|
|
|
|
|
|
|
|
TITLE='---{ experimental }---'
|
2022-03-30 08:42:39 +02:00
|
|
|
|
|
|
|
ffmpeg -nostdin \
|
2022-04-04 11:34:50 +02:00
|
|
|
-loglevel warning \
|
|
|
|
-y -r 25 -f image2 -i $SDIR/%05d.png \
|
|
|
|
-metadata artist='---{ tTh }---' \
|
|
|
|
-metadata title="${TITLE}" \
|
|
|
|
-c:v libx264 -pix_fmt yuv420p \
|
|
|
|
$FNAME
|
2022-03-30 08:42:39 +02:00
|
|
|
|
|
|
|
|