Archive for May, 2007

High quality flv conversion with ffmpeg

This generates high quality flv files. For the best result make sure the input file is deinterlaced or horizontal combing on moving objects in video will appear.

# ffmpeg -i input.mp4 -ar 22050 -ab 56 -acodec mp3 -r 25 -f flv -b 400 -s 320x240 output.flv

When you have interlaced video you could also use:

# ffmpeg -i input.mp4 -deinterlace -ar 22050 -ab 56 -acodec mp3 -r 25 -f flv -b 400 -s 320x240 output.flv

-i; specify input file
-deinterlace; deinterlace video
-ar; audio sample rate
-ab; audio bitrate
-acodec; audio codec
-r; framerate
-f; output format
-b; bitrate (of video!)
-s; resize to widthxheight

15 Comments »

How to loose weight: The photoshop diet

You can photoshop a playmate from everybody i guess....


No Comments »

Error after upgrading portupgrade on FreeBSD

After upgrading portupgrade i got a stange error.
Rebuilding the package database gave this error:

[root@foo /usr/ports]# pkgdb -F
--->  Checking the package registry database
[Updating the pkgdb
 in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb
 in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]

This is what fixed it for met:

# cd /usr/ports
# rm INDEX-6.db
# rm /var/db/pkg/pkgdb.fixme (if it exists)
# rm /var/db/pkg/pkgdb.db
# pkgdb -F

I also got some errors regarding some missing dependencies. I answerd Yes to install the missing ones.

No Comments »