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