2009/02/04, 19:13
my panasonic dmc-fx10 produces videos in apple’s quicktime-format (.MOV), which are quite huge so i’d like to recompress the files on my desktop, preferrably without losing (too much) of the alread not-so-good quality…
for tasks like this, i prefer using avidemux, since i don’t have to bother with all the possible (and impossible!) combinations of mencoder’s commandline options… unfortunately, avidemux can’t read the files produced by the cam directly, it quits with an /assertion error/
thus, the files need to be converted first. to do this, i use the above mentioned without the huge bunch of options:
mencoder $file -oac pcm -ovc raw -o ${file/MOV/RAW}
now avidemux can work on the raw video-files and produce much smaller files than the cam directly (oh wonder…)
some experimenting show the following settings lead to satisfying results:
VIDEO: MPEG-4 AVC (x264)
Encoding Mode: Two Pass - Average Bitrate
Average bitrate (kb/s): 1800
yes, i know… one could simply look up the parameters for mencoder and do the whole stuff in one step… maybe later
2008/09/20, 23:41
Neben avidemux und pspvc kann man (IMHO am besten) mit dem Mencoder Videos für die Playstation Portable umkodieren, die resultierende Datei muss als M4V####.MP4 ins passende Verzeichnis auf der PSP kopiert werden:
mencoder -ofps 30000/1001 -af lavcresample=24000 -srate 24000 \
-vf harddup,scale=368:208 -of lavf -oac lavc -ovc lavc -lavcopts \
aglobal=1:vglobal=1:vcodec=mpeg4:acodec=libfaac:abitrate=64:vbitrate=768 \
-lavfopts format=psp \
-info "name=Movie Title" \
-o <M4V.OUTPUTFILE.MP4> \
<INPUTFILE> |
Mit dem folgenden Befehl wird noch das dazugehörige Thumbnail erstellt, das als M4V####.THM abgelegt werden muss (seektime ist in Sekunden, Dezimalwerte gehen auch).
ffmpeg -y -i <M4V.INPUTFILE.MP4> \
-f image2 -vframes 1 -s 160x120 \
-an <M4V.OUTPUTFILE.THM> \
-ss <SEEKTIME> |
Zusätzliche Infos gibt’s im movingparts-blog