the Design Experience Weblog Archive

10:06 PM, 16 Sep 2007 by dave bauer Permalink | Comments (0)

I was trying to extract clips from an AVI with mencoder -ss and -endpos parameters but it always would jump a few seconds. I learned from the helpful folks at #mplayer this is beacuse it can only seek to a keyframe.

Next I tried creating an edl file which will tell mencoder to seek to an exact frame. This worked, in that I could start the clip at the right point, but the video and audio became out of sync.

Another trip to #mplayer and I learned I could use transcode to work at the frame level.

Now I just needed to learn which frame i wanted, instead of using the time in seconds. It was recommended to look at avidemux which is pretty neat in that I could skip frame by frame though the video.

10:25 PM, 15 Sep 2007 by dave bauer Permalink | Comments (0)

Today I downloaded an Ubuntu virtual appliance to setup Oracle 10g for testing.

I used the HOWO here http://www.dizwell.com/prod/node/52?page=0%2C1 for Ubuntu 6.06. it works fine on Ubuntu 7.04 also.

I used this image, http://www.vmware.com/vmtn/appliances/directory/972 which I do NOT recommend, as it has no X server, etc required to install Oracle. Check out the desktop image available here from the same author: http://chrysaor.info/?page=ubuntu

I had a problem with the network driver in the Guest OS so I used this: http://www.vmware.com/support/esx15/doc/esx15_install11.html

02:11 PM, 15 Sep 2007 by dave bauer Permalink | Comments (0)

Bugs are Magic Tricks says Steven Frank. This is a wonderful analogy. Whenever you are wondering "how did that happen" or "that's impossible" you can be caught by a bugs magic trick. You need to get more information and peek behind the curtain with tests, logging, whaever you use to dig into your program.

The post was good but I was particularly impressed with this comment

stephane says:

When faced with a bug or bug report, it's a known fact that there are 3 steps for a developer:

(1) it can never happen!

(2) strange, it happens...

(3) how can it even have worked before?

With some practice, you can skip step 1 and it makes you spare a lot of time.

I have gone through those three stages too many times to count.

02:20 PM, 13 Sep 2007 by dave bauer Permalink | Comments (0)

Ok so I have a 144mb RealMedia file, RealAudio and RealVideo. I'd like to take clips of this and make several small Flash Video FLV files out of it.

mencoder can encode to FLV but it kept losing either the video or audio. I next tried coverting part of the RM to AVI with -ss -endpos parameters to mencoder but ffmpeg did not like them and the AVIs had missing bits of video.

Next I tried encoding the whole RM into AVI.

mencoder video1.rm -oac mp3lame -ovc xvid -xvidencopts bitrate=150 -srate 44100 -af resample=44100 -o video1.avi

This worked fine. After that I took the clips of the AVI as new AVIs.

mencoder video1.avi -ss 02:32 -endpos 03:18 -oac mp3lame -ovc xvid -xvidencopts bitrate=150 -o video1a.avi

Then I fed the AVIs into ffmpeg to generate the FLV files.

ffmpeg -i video1a.avi video1.flv

I did not attempt any sort of optimization yet.

I used SWFObject http://blog.deconcept.com/swfobject/ with JW FLV Player http://www.jeroenwijering.com/?item=Flash_video_Player (JW FLV Player comes with SWF Object.) to embed the FLV into an HTML file.


Here are some video processing links
http://en.linuxreviews.org/HOWTO_Convert_video_files
http://gentoo-wiki.com/TIP_MEncoder_Tips_and_Tricks

10:25 PM, 12 Sep 2007 by dave bauer Permalink | Comments (0)

Adapted from:
http://blogger.rukker.org/2007/01/29/enable-mp3-and-amr-support-in-ffmpeg-ubuntu-edgy-eft/
to work on Feisty AMD64.

The link says edgy. I am trying to build it on Feisty.
I did not use the AMR patch.

I had to apt-get intstall libx264-dev

Make sure you have build tools, and enable multiverse and universe repositories.

sudo apt-get install quilt libsdl1.2-dev libogg-dev libvorbis-dev liba52-dev libdts-dev libimlib2-dev texi2html libraw1394-dev libdc1394-13-dev libtheora-dev libgsm1-dev liblame-dev libxvidcore4-dev libfaac-dev libfaad2-dev libx264-dev

cd /usr/local/src

sudo apt-get source ffmpeg

cd ffmpeg

sudo dpkg-buildpackage

cd ..

sudo dpkg -i ffmpeg_0.cvs20060823-3.1ubuntu4+medibuntu2_amd64.deb libavcodec0d_0.cvs20060823-3.1ubuntu4+medibuntu2_amd64.deb libavcodec-dev_0.cvs20060823-3.1ubuntu4+medibuntu2_amd64.deb libavformat0d_0.cvs20060823-3.1ubuntu4+medibuntu2_amd64.deb libavformat-dev_0.cvs20060823-3.1ubuntu4+medibuntu2_amd64.deb libpostproc0d_0.cvs20060823-3.1ubuntu4+medibuntu2_amd64.deb libpostproc-dev_0.cvs20060823-3.1ubuntu4+medibuntu2_amd64.deb

This seems to work. I am testing it out now.

[Sometime later...]

It does not work with mencoder. They seem to use difference lavc codecs which means you can't encode the output from mencoder with ffmpeg.

10:47 PM, 11 Sep 2007 by dave bauer Permalink | Comments (0)

05:35 PM, 11 Sep 2007 by dave bauer Permalink | Comments (0)

I tried to install w32codecs for mplayer as outlined here http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecs-in-ubuntu-feisty-fawn.html

When I tried that I got an error message:

Package w32codecs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package w32codecs has no installation candidate
The solution I found by visiting the list of packages here http://medibuntu.sos-sts.com/packages.php

There is a w64codecs package. I installed that and it works.

05:30 PM, 11 Sep 2007 by dave bauer Permalink | Comments (0)

Here it is:


NerdTests.com says I'm a Cool Nerd King.  What are you?  Click here!

Thanks Mark.

10:26 AM, 06 Sep 2007 by dave bauer Permalink | Comments (0)

XML

Notifications

You may
request notification for the Design Experience Weblog.

Syndication Feed

XML