Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Convert Panasonic FX33 videos
#!/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 <t.i.m.vanwerkhoven@xs4all.nl>
# 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
You can’t perform that action at this time.