[ubuntu-uk] Need to convert dv files into vob files in kino

Alan Pope alan at popey.com
Mon Jan 28 14:06:16 GMT 2008

On Mon, Jan 28, 2008 at 12:02:49PM +0000, Javad Ayaz wrote:
> ill give kino one more go and see if i miss out any option. Then ill try
> devede...since i have no other option. !!!

There are always options :)

You could (for example) use a command line tool such as ffmpeg or mencoder. 
Personally I use ffmpeg to do all my video conversion, but I appreciate some 
people don't like command line tools.

In case you fancy having a play, here's what I do to get a good ffmpeg. I 
compile ffmpeg from source because the version in the Ubuntu repositories 
doesn't have everything enabled that I like to use.

1. Get pre-requisites to compile ffmpeg:-

sudo apt-get install liba52-dev libdts-dev libgsm1-dev \
 libvorbis-dev libxvidcore4 libxvidcore4-dev libdc1394-dev \ 
 libfaac-dev liblame-dev libx264-dev libfaad2-dev \ 
 libtheora-dev libsdl1.2-dev 

2. Get the source code

wget http://ffmpeg.mplayerhq.hu/ffmpeg-export-snapshot.tar.bz2
tar jxvf ffmpeg-export-snapshot.tar.bz2
cd ffmpeg-export-*

3. Configure ffmpeg

./configure --enable-gpl --enable-pp --enable-pthreads \
            --enable-libvorbis  --enable-liba52 \
            --enable-libgsm  \
            --disable-debug --enable-shared --enable-libxvid \
            --enable-libfaac --enable-libmp3lame \
            --enable-libx264 --enable-libfaad --enable-libtheora \
             --enable-x11grab --enable-swscaler \

4. Compile it

make -j3

(the -j3 is useful if you have a dual core machine - both cores get used so 
the compilation process is faster)

5. Install it

sudo make install

6. Run it

export LD_LIBRARY_PATH=/usr/local/lib/
time ffmpeg -i foo.avi -sameq -foo.vob

FFmpeg version SVN-r11584, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-pthreads 
--enable-libvorbis --enable-liba52 --enable-libgsm --disable-debug 
--enable-shared --enable-libxvid --enable-libfaac --enable-libmp3lame 
--enable-libx264 --enable-libfaad --enable-libtheora --enable-x11grab 
--enable-swscaler --prefix=/usr/local
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.5.0
  libavdevice version: 52.0.0
  built on Jan 21 2008 11:59:59, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 

Seems stream 0 codec frame rate differs from container frame rate: 23.98 
(65535/2733) -> 23.98 (24000/1001)
Input #0, avi, from 'foo.avi':
  Duration: 01:36:38.0, start: 0.000000, bitrate: 1011 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 32 kb/s
Output #0, svcd, to 'foo.vob':
    Stream #0.0: Video: mpeg2video, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 
q=2-31, 200 kb/s, 23.98 tb(c)
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=139013 fps=207 q=0.0 Lsize= 1764296kB time=5798.0 
video:1696519kB audio:45297kB global headers:0kB muxing overhead 1.290598%

real    11m10.528s
user    10m31.567s
sys     0m11.961s

In the above example I converted a 1.5 hour, 700MB mpeg4-encoded avi file to 
a vob file. Note how specifying .vob made ffmpeg choose the mpeg2 video and 
mp2 audio codecs.  

Magic :) 

The -sameq parameter tells ffmpeg to try not to reduce overall  video 
quality during the conversion ('same quality').

alan at tp:~$ file foo.avi
foo.avi: RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, 
audio: MPEG-1 Layer 3 (stereo, 48000 Hz)

alan at tp:~$ file foo.vob
foo.vob: MPEG sequence, v2, program multiplex

> BTW i tried windows movie maker this morning and it refused to accept vob
> files!

Out of the box Windows doesn't support mpeg2 video if I remember correctly, 
so this makes sense.


More information about the ubuntu-uk mailing list