Created
April 5, 2010 19:50
-
-
Save tvwerkhoven/356776 to your computer and use it in GitHub Desktop.
Convert Panasonic FX33 videos
This file contains 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 characters
#!/bin/bash | |
# | |
# Simple mencoder call to convert video from the Panasonic Lumix FX33 to xvid | |
# with mp3 in an avi container and x264 with mp3 in a mkv container. Run as: | |
# | |
# ./fx33video <input.mov> | |
# | |
# ffmpeg info about FX33 videos: | |
# Stream #0.0(eng): Video: mjpeg, yuvj420p, 640x480 [PAR 0:1 DAR 0:1], 30.00 | |
# tb(r) | |
# Stream #0.1(eng): Audio: pcm_u8, 8000 Hz, mono, 64 kb/s | |
# | |
# Tim van Werkoven, 20100405 <[email protected]> | |
# This file is licensed under the Creative Commons Attribution-Share Alike | |
# license versions 3.0 or higher, see | |
# http://creativecommons.org/licenses/by-sa/3.0/ | |
## mencoder xvid/mp3 2 threads (~120 fps on Core 2 Duo 2.16 GHz) | |
mencoder $1 \ | |
-ovc lavc -lavcopts threads=2:vcodec=mpeg4:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=1250\ | |
-oac mp3lame -lameopts vbr=3 -af resample=8000:0:0,channels=2 -o $1-xvid.avi | |
## mencoder x264/mp3, auto threads (~40 fps on Core 2 Duo 2.16 GHz) | |
mencoder $1 \ | |
-ovc x264 -x264encopts turbo:bitrate=2000:subq=4:bframes=2:b_pyramid:weight_b:threads=auto \ | |
-oac mp3lame -lameopts vbr=3 -af resample=8000:0:0,channels=2 -o $1-x264.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment