Transcoding a DVD to xvid with Linux

Share

So, we have this promotional video at work which we own the copyright to, and we needed a copy as an XVID encoded AVI file for some of our sales people to wander around the countryside with. It turns out that most of the documentation I read was just plain wrong, so I thought I would document what I have to do to get it to work here…

Because the video was PAL, I needed the -V option to transcode, and because the audio was LPCM, I needed a -d option as well. The final command line was:

transcode -i TOWER_SOFTWARE_DVD/VIDEO_TS/VTS_01_1.VOB -x vob,vob -o tower.avi -d -V -y xvid4

Use vobcopy to rescue the content from the DVD in the first place.

Share

Why is today going so slowly?

Share

It’s just occured to me why today is going so slowly — it’s a holiday in the US (July 4th), and therefore no one is slashdotting, or mailling me. Very wierd — it feels like Christmas, expect that I have to be in the office cutting code…

Catherine started training for her new job today — she’s going to be a guide at New Parliament House, which is our equivalent of the White House (expect the Prime Minister doesn’t live there). It’s only a two week contract for her training, and then possibly another contract. They’ll be hiring people permanently soon, so having already been trained will position her well. It’s a little painful in that she doesn’t know what is going to happen, but I am sure things will work out for the best in the end.

I am pleasantly surprised with how fast user space filesystems using FUSE are. Here are some preliminary results:

Straight ext3:

    1145.69user 70.27system 20:33.32elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
    1146.23user 69.63system 20:39.99elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
    1145.61user 69.97system 20:34.23elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
    1145.90user 70.19system 20:35.62elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
    1146.22user 69.99system 20:39.80elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
    

Userspace write through to ext3:

    1151.70user 78.65system 22:07.49elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k
    1151.59user 78.30system 22:13.22elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k
    1151.40user 78.46system 22:17.37elapsed 91%CPU (0avgtext+0avgdata 0maxresident)k
    1151.48user 78.88system 22:13.04elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k
    1150.97user 78.53system 22:18.70elapsed 91%CPU (0avgtext+0avgdata 0maxresident)k
    

So, going through a userspace filesystem which does nothing apart from rewrite the request added two minutes to my kernel compile. That’s not too shabby in my opinion. I’ll have more conclusive results by the time I present my FUSE tutorial at OLS.

LCA promo tshirts have been ordered. Now to collect the money…

Share