Posts tagged ‘video’

creating a slideshow for your SD-card capable TV using digikam

  • select your preferred pictures and copy them to a separate folder
  • start digikam and select all pictures
  • use ‘Image‘ -> ‘Auto Rotate/Flip using EXIF Information‘ to correct the orientation of the images (this is required since otherwise the resizing step will produce bad results)
  • open ‘Batch‘ -> ‘Resize Images
  • select ‘Type‘ : Proportional (2-dim) with the options width=1024, height=720, border=0
  • click ‘Apply

postprocessing of digicam-videos

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 ;)

Videos für die PSP

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