20 lines
1.4 KiB
Bash
20 lines
1.4 KiB
Bash
|
#MOVFLAGS="-movflags +frag_keyframe+empty_moov+default_base_moof+faststart"
|
||
|
MOVFLAGS="-movflags +faststart"
|
||
|
BITRATE_HI="-b:v 3840k"
|
||
|
BITRATE_LO="-b:v 2560k"
|
||
|
|
||
|
VIDEO_H264="-vcodec h264 $BITRATE_HI"
|
||
|
VIDEO_H263="-vcodec h263 -b:v 1280k"
|
||
|
VIDEO_H263_PLUS="-vcodec h263p -b:v 1280k"
|
||
|
VIDEO_JPEG="-vcodec mjpeg"
|
||
|
VIDEO_VP8="-vcodec libvpx $BITRATE_HI"
|
||
|
VIDEO_VP9="-vcodec libvpx-vp9 -row-mt 1 $BITRATE_LO"
|
||
|
|
||
|
AUDIO_AAC="-acodec aac -ac 1 -ar 44100 -ab 112k"
|
||
|
|
||
|
ffmpeg -i polyphon.ogv -vf "drawtext=text='h263-aac-96p.3gp':fontsize=72:fontcolor=orange, scale=128:96" $VIDEO_H263 -vb 64k $AUDIO_AAC $MOVFLAGS -y polyphon-h263-aac-96p.3gp || exit 1
|
||
|
ffmpeg -i polyphon.ogv -vf "drawtext=text='h263-aac-144p.3gp':fontsize=72:fontcolor=brown, scale=176:144" $VIDEO_H263 -vb 384k $AUDIO_AAC $MOVFLAGS -y polyphon-h263-aac-144p.3gp || exit 1
|
||
|
ffmpeg -i polyphon.ogv -vf "drawtext=text='h263-aac-288p.3gp':fontsize=72:fontcolor=yellow, scale=352:288" $VIDEO_H263 -vb 2048k $AUDIO_AAC $MOVFLAGS -y polyphon-h263-aac-288p.3gp || exit 1
|
||
|
ffmpeg -i polyphon.ogv -vf "drawtext=text='h263-aac-576p.3gp':fontsize=72:fontcolor=red, scale=704:576" $VIDEO_H263 -vb 4096k $AUDIO_AAC $MOVFLAGS -y polyphon-h263-aac-576p.3gp || exit 1
|
||
|
ffmpeg -i polyphon.ogv -vf "drawtext=text='h263-aac-1152p.3gp':fontsize=72:fontcolor=violet, scale=1408:1152" $VIDEO_H263 -vb 8192k $AUDIO_AAC $MOVFLAGS -y polyphon-h263-aac-1152p.3gp || exit 1
|