Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional video conversion to mp4 or lossless mkv. #12

Open
wants to merge 1 commit into
base: scrolling
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ src/data/bin
build
vis
*.avi
*.mkv
*.mov
*.mp4
*.webm
branch.js
overlay.png
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@ webm:
ffmpeg -i game_raw.mov -vf scale=320:288 -sws_flags neighbor -c:v libvpx -crf 20 -b:v 1M -c:a libvorbis game.webm

render:
ffmpeg -i game_raw.mov -vf scale=480:432 -sws_flags neighbor -acodec libmp3lame -ac 1 -ab 64000 -ar 22050 -vcodec mpeg4 -flags +mv4+gmc -mbd bits -trellis 2 -b 8000k game.avi
ffmpeg -i game_raw.mov -vf scale=480:432 -sws_flags neighbor -c:a libmp3lame -ac 1 -ab 64000 -ar 22050 -vcodec mpeg4 -flags +mv4+gmc -mbd bits -trellis 2 -b 8000k game.avi

mp4:
ffmpeg -i game_raw.mov -vf scale=320:288 -sws_flags neighbor -c:v libx264 -crf 20 -c:a aac -ab 96k game.mp4

lossless:
ffmpeg -i game_raw.mov -c:v libx264 -preset veryslow -crf 0 -c:a flac -compression_level 12 game_raw.mkv