29 lines
2 KiB
Bash
29 lines
2 KiB
Bash
|
MOVFLAGS="-movflags +frag_keyframe+empty_moov+default_base_moof+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 $BITRATE_HI"
|
||
|
VIDEO_VP8="-vcodec libvpx $BITRATE_HI"
|
||
|
VIDEO_VP9="-vcodec libvpx-vp9 -row-mt 1 $BITRATE_LO"
|
||
|
|
||
|
AUDIO_AAC="-acodec aac -ac 2 -ar 44100 -ab 128k"
|
||
|
AUDIO_MP3="-acodec libmp3lame -ac 2 -ar 44100 -ab 128k"
|
||
|
AUDIO_OPUS="-acodec libopus -ac 2 -ar 48000 -ab 128k"
|
||
|
AUDIO_VORBIS="-acodec libvorbis -ac 2 -ar 44100 -ab 128k"
|
||
|
|
||
|
ffmpeg -i polyphon.ogv -an -vf "drawtext=text='jpeg.mov':fontsize=72:fontcolor=magenta, scale=640:360" $VIDEO_JPEG $AUDIO_MP3 $MOVFLAGS -y polyphon-jpeg-mp3.mov || exit 1
|
||
|
|
||
|
ffmpeg -i polyphon.ogv -an -vf "drawtext=text='mpeg1.mov':fontsize=72:fontcolor=brown" -vcodec mpeg1video $BITRATE_HI $AUDIO_MP3 $MOVFLAGS -y polyphon-mpeg1-mp3.mov || exit 1
|
||
|
ffmpeg -i polyphon.ogv -an -vf "drawtext=text='mpeg2.mov':fontsize=72:fontcolor=brown" -vcodec mpeg2video $BITRATE_HI $AUDIO_MP3 $MOVFLAGS -y polyphon-mpeg2-mp3.mov || exit 1
|
||
|
ffmpeg -i polyphon.ogv -an -vf "drawtext=text='h263.mov':fontsize=72:fontcolor=brown, scale=352:288" $VIDEO_H263 $AUDIO_MP3 $MOVFLAGS -y polyphon-h263-mp3.mov || exit 1
|
||
|
ffmpeg -i polyphon.ogv -an -vf "drawtext=text='h263p.mov':fontsize=72:fontcolor=brown, scale=720:480" $VIDEO_H263_PLUS $AUDIO_MP3 $MOVFLAGS -y polyphon-h263p-mp3.mov || exit 1
|
||
|
ffmpeg -i polyphon.ogv -an -vf "drawtext=text='m4v.mov':fontsize=72:fontcolor=brown" -vcodec mpeg4 $BITRATE_HI $AUDIO_MP3 $MOVFLAGS -y polyphon-m4v-mp3.mov || exit 1
|
||
|
ffmpeg -i polyphon.ogv -an -vf "drawtext=text='h264.mov':fontsize=72:fontcolor=red" $VIDEO_H264 $AUDIO_MP3 $MOVFLAGS -y polyphon-h264-mp3.mov || exit 1
|
||
|
|
||
|
#ffmpeg -i polyphon.ogv -an -vf "drawtext=text='vp8.mov':fontsize=72:fontcolor=cyan" $VIDEO_VP8 $AUDIO_MP3 -y polyphon-vp8-mp3.mov || exit 1
|
||
|
#ffmpeg -i polyphon.ogv -an -vf "drawtext=text='vp9.mov':fontsize=72:fontcolor=green" $VIDEO_VP9 $AUDIO_MP3 -y polyphon-vp9-mp3.mov || exit 1
|
||
|
|