diff options
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-x | localvideowebencode | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode index 0b8135e..0b8ef88 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # -# Depends: libav-tools melt mediainfo ffmpegthumbnailer +# Depends: libav-tools melt mediainfo # # TODO: offer to skip rendering again if an output file exist already # TODO: support --width and --height (resolving the other part from input/forced aspect ratio) @@ -348,6 +348,7 @@ _melt_video="progressive=1${framerate:+ frame_rate_den="$framerate_den" frame_ra _melt_ogg="$_melt_video f=ogg vcodec=libtheora${bitrate:+ vb=$bitrate}${bitrate_fixed:- qscale=5}" _melt_h264="$_melt_video f=mp4 vcodec=libx264 vpre=medium vprofile=baseline${x264tune:+ tune=$x264tune}${bitrate_fixed:+ vb=$bitrate} threads=0 movflags=+faststart${bitrate_fixed:- crf=23}" _melt_webm="$_melt_video f=webm vcodec=libvpx vpre=libvpx-$webmpreset${bitrate:+ vb=$bitrate}${bitrate_fixed:+ minrate=$bitrate maxrate=$bitrate}{bitrate_fixed:- crf=10} cpu-used=3" +_melt_img="$_melt_video f=image2" # CRF ignored with libvpx 1.3 _melt_vp9="$_melt_video f=webm vcodec=libvpx-vp9 vpre=libvpx-$webmpreset${bitrate_vp9:+ vb=$bitrate_vp9}${bitrate_fixed:+ minrate=$bitrate_vp9 maxrate=$bitrate_vp9}${bitrate_fixed:- crf=10} cpu-used=5" _melt_audio="${channels:+ac=$channels}" @@ -401,7 +402,9 @@ fi rm -f $stem.xml ## JPEG preview -ffmpegthumbnailer -s0 -i "$stem.mp4" -o "$stem.jpg" +$melt -group in=0 out=0 $infiles \ + -group $filters \ + -consumer avformat:$stem.jpg $_melt_img $_melt_out __width="${_width:+ width=\"$_width\"}" __height="${_height:+ height=\"$_height\"}" |