-
-
Save jankkhvej/1710905 to your computer and use it in GitHub Desktop.
Revisions
-
markupboy revised this gist
Feb 8, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,4 +26,4 @@ fi HandBrakeCLI -i $1 -o $destination/$filename.mp4 --encoder x264 --vb 900 --ab 128 --optimize ffmpeg2theora $destination/$filename.mp4 mv $destination/$filename.ogv $destination/$filename.ogg ffmpeg -i $destination/$filename.mp4 -acodec libvorbis -vcodec libvpx $destination/$filename.webm -
markupboy revised this gist
Feb 8, 2011 . 1 changed file with 10 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,14 +13,17 @@ ################################### target_directory='converted' file=`basename $1` filename=${file%.*} filepath=`dirname $1` destination="$filepath/$target_directory" if ! test -d "$destination" then mkdir $destination fi HandBrakeCLI -i $1 -o $destination/$filename.mp4 --encoder x264 --vb 900 --ab 128 --optimize ffmpeg2theora $destination/$filename.mp4 mv $destination/$filename.ogv $destination/$filename.ogg ffmpeg -i $destination/$filename.mp4 -acodec libvorbis -
markupboy created this gist
Feb 8, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ #!/bin/sh #################################### # Output file for HTML5 video # # Requirements: # # - handbrakecli # # - ffmpeg # # - ffmpeg2theora # # # # usage: # # ./html5video.sh infile.mp4 # # # ################################### target_directory='converted' filename=${1%.*} if ! test -d "${target_directory}" then mkdir $target_directory fi HandBrakeCLI -i $1 -o $target_directory/$filename.mp4 --encoder x264 --vb 900 --ab 128 --optimize ffmpeg2theora $target_directory/$filename.mp4 mv $target_directory/$filename.ogv $target_directory/$filename.ogg ffmpeg -i $target_directory/$filename.mp4 -acodec libvorbis -vcodec libvpx $target_directory/$filename.webm