I am very happy with my Panasonic Lumix DMC-TZ5 camera. However, the video clips cause some trouble when transcoding them on Linux. Therefore: ==== How to transcode video clips from Lumix cameras on Linux ==== I tried [[http://www.mplayerhq.hu/|mencoder]], [[http://ffmpeg.org|ffmpeg]] and [[http://transcoding.org|transcode]]. All of them had more or less troubles to preserve the audio of the movies. The audio is stored in 8 bit single channel raw pcm data at 8000 Hz sampling rate. The latter causes problems because this seams to be not really supported by the mp3 and ac3 codecs used in the divx or mpeg4 movie formats. So the solution is the resample the audio to another sampling rate and 16 bit resolution. Here comes the commands I used: <code bash>IN=myvideo.mov; # your movie comes here # extract audio ffmpeg -i "$1" -acodec copy "${IN%.*}.wav" # convert audio sox "${IN%.*}.wav" -r 22050 "${IN%.*}.ogg" transcode -i "$IN" -p "${IN%.*}.ogg" -o "${IN%.*}_xvid.avi" -y xvid,tcaud -w 6400 #or transcode -i "$IN" -p "${IN%.*}.ogg" -o "${IN%.*}_mp4.avi" -y ffmpeg,tcaud -F msmpeg4 -w 6400 </code> Note that we use ffmpeg to extract the audio, then sox to convert it to 16bit and 22050Hz sampling rate and then transcode it either to a divx or mpeg4 format. The bitrate is pretty high with 6400kbit/s, but you can off course also select a smaller one. See also my [[http://public.hronopik.de/vid.stab|stabilization plugin]] to deshake the movies.


computing/lumixvideos.txt · Last modified: 26.10.2009 23:31 by georg