Author Topic: converting a vob file to avi?  (Read 4379 times)

Offline davidwillis

  • Sr. Member
  • ****
  • Posts: 278
converting a vob file to avi?
« on: November 28, 2009, 01:57:56 PM »
I am trying to figure out how to convert a vob file to avi.  I have used handbrake in the past, and it worked great, but now it seams like I cannot get an option to convert to avi, just mp4 and mkv.

So I thought it would be a good idea to figure out how to do it with mencoder.  But I could not figure it out, and had to do a search to find a line that worked.

Quote
mencoder -vf harddup -vf-add smartblur=.6:-.5:0,unsharp=l5x5:.8:c5x5:.4 -xvidencopts fixed_quant=4:profile=dxnhtntsc -lameopts cbr:br=128:aq=0:vol=1 -oac mp3lame -ovc xvid filein.vob -o fileout.avi

This actually seems to work good, but I would like to control the file size(it makes too big of files).  And also I would like to keep the same aspect ratio as the vob file (maybe that line does it anyway, I don't know).  And if anyone can explain what all that is doing it would be great.

I understand what br=128 is probably the sound bit rate, and -oac mp3lame is saying use mp3 for the sound, and -ovc xvid is saying to use xvid encoding.  And of course filein.vob is the input file and fileout.avi is the output file.  But that is about all I get..

Thanks
David
« Last Edit: November 28, 2009, 02:30:00 PM by davidwillis »

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: converting a vob file to avi?
« Reply #1 on: November 28, 2009, 02:07:26 PM »
mp4 is avi, avi is whatever you want it to be, just rename the mp4 to .avi

abut converting files you can use devede with the option divx mp4 option

also avidemux can do it

i'm not sure if vlc can convert vobs but it can convert other formats
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

flux

  • Guest
Re: converting a vob file to avi?
« Reply #2 on: November 28, 2009, 02:31:08 PM »
You could replace

Code: [Select]
fixed_quant=4
with

Code: [Select]
bitrate=800
or lower to have a lower file size.

Or you encode in your way and split the avi to several avis of a defined size ...

flux.

Offline davidwillis

  • Sr. Member
  • ****
  • Posts: 278
Re: converting a vob file to avi?
« Reply #3 on: November 28, 2009, 02:35:18 PM »
Thanks T6, I have tried useing avidemux, but had problems with the sound out of sync (probably me doing something wrong).  I am looking at devede now, it looks good, and seems simple enough for me to use.


I guess my problem with handbrake now is that I can't do xvid where I used to.  Sorry if I am not useing these terms right, I am kindof new to video.  So I guess I should say convert a vob to a xvid avi?  Or just xvid?

Anyway, thanks

Offline davidwillis

  • Sr. Member
  • ****
  • Posts: 278
Re: converting a vob file to avi?
« Reply #4 on: November 28, 2009, 02:36:31 PM »
You could replace

Code: [Select]
fixed_quant=4
with

Code: [Select]
bitrate=800
or lower to have a lower file size.

Or you encode in your way and split the avi to several avis of a defined size ...

flux.

Thanks, I think that is what I was looking for.   :)

Offline exwintech

  • Hero Member
  • *****
  • Posts: 4340
  • 80% SandBox Rating Only
Re: converting a vob file to avi?
« Reply #5 on: November 28, 2009, 02:55:16 PM »
Davidwillis - Sounds like you were doing Single-Pass. See below.

> Drop your VOB file into the Avidemux window. It will say it's MPEG and ask if you want to index it. Say Okay, and wait a few seconds as it does. It then opens in the window. Under the Video button choose your AVI version - Xvid4 for Linux users, MPEG4 for Windows-ers. If you want the AVI to play in a TV-Player, use MPEG4 unless you know that the Players it will be used on can play Xvid4. Chinese ones usually can, but the US-UK-EU Brand-Namer ones often can't.

> For conversion, you can save time and get lower quality, and perhaps Audio out of sync, by using 1-Pass. To do it properly - particularly if you want your Xvid4 / MPEG4 to play at full-screen, use the 2-Pass mode. With that, Avidemux goes through the video and finds where the audio-location frames are, and areas where the digital content is lower (a lot of single colours, sky, ocean, fields) - and where it is high (complex content and/or a lot of movement) - and "maps" all parameters to a text-file.

> On the Second Pass - it works from that text-file to get the conversion accurate and correct. When 1-Pass is used, it can only "guess-ahead" for video-content quality and where the Audio-track might belong. So the Quality will be much lower.

> Under Video, use "MPEG4 ASP (Xvid)", or "MPEG4 ASP (lavc)". Under "Configure" choose Average Bitrate 2-Pass (unless you want to degrade the video, like "shrinking" it - for that, use Video Size) - the Video Quality should be at "1 High Quality", and the Bitrate 1500 ot higher.

> Under Filters you can adjust the Size, Colour, Sharpness, etc. (You can also Add Black Borders so that, say, a 640 x 480 Camera Video plays centred properly on a US-Japan NTSC TV - 720 x 480, or rest of world, PAL 720 x 576.)

> Under Audio - Don't leave it at "Copy" - select "MP3 (lame)".

> Make sure that "Format" at the bottom, is set to "AVI".

>> Convert away... ;D

Regards, Dave.
Registered Linux User #412504          Trainee Linuxer, jg

Offline davidwillis

  • Sr. Member
  • ****
  • Posts: 278
Re: converting a vob file to avi?
« Reply #6 on: November 28, 2009, 03:02:20 PM »
wow, thanks for the step by step.  Even I think I can follow that.   ;D  I will play around with some of these ideas, and let you all know how it goes.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: converting a vob file to avi?
« Reply #7 on: November 28, 2009, 03:16:07 PM »
There is also WinFF which has presets built in ....... just drop the file into Winff, select the options from drop down lists and hit Convert.

There are also more 'advanced' options available ...... and you can select 2 pass if that is what you need.  It uses ffmpeg as its backend.

Choices, choices, choices .......   ;D

Offline davidwillis

  • Sr. Member
  • ****
  • Posts: 278
Re: converting a vob file to avi?
« Reply #8 on: November 28, 2009, 03:31:54 PM »
Thanks JohnBoy, I have used WinFF as well, and had some out of sync problems (probably due to using single pass).  I do like it though, it is easy to figure out.


Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12799
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: converting a vob file to avi?
« Reply #9 on: November 28, 2009, 03:46:00 PM »
mencoder /path/to/vob/file.vob -o /where/to/save/avi/file.avi -ovc lavc -oac pcm

Thats what I would use... Simple and I know it works...

Andy

Offline exwintech

  • Hero Member
  • *****
  • Posts: 4340
  • 80% SandBox Rating Only
Re: converting a vob file to avi?
« Reply #10 on: November 28, 2009, 04:48:28 PM »
AndrzejL - Is there a component for that which does 2-Pass, and has Filters and Configuration options?

> In Terminal here, I get "--help is not a mencoder option".

> So how would one do a Re-Size, Enhance Colour, Sharpen, and add Black-Lines to suit playback-size to a TV-Player?

Regards, Dave.
Registered Linux User #412504          Trainee Linuxer, jg

Offline davidwillis

  • Sr. Member
  • ****
  • Posts: 278
Re: converting a vob file to avi?
« Reply #11 on: November 28, 2009, 05:01:03 PM »
mencoder /path/to/vob/file.vob -o /where/to/save/avi/file.avi -ovc lavc -oac pcm

Thats what I would use... Simple and I know it works...

Andy

wow, that was actually very fast, but my dvd player will not play it... it says video codec is not supported.  I tried replacing lavc with xvid, but then it didn't work.
Quote
xvid: you must specify one or a valid combination of 'bitrate', 'pass', 'fixed_quant' settings


Offline exwintech

  • Hero Member
  • *****
  • Posts: 4340
  • 80% SandBox Rating Only
Re: converting a vob file to avi?
« Reply #12 on: November 28, 2009, 05:09:22 PM »
Davidwillis - It might be one of those Linux conversions that plays on a Linux PC, but not in a Player that requires Standards Compatibility.

> That is, it needs Compliance with the ISO-14496 Standard for MPEG4, *.avi and *.mp4

> The Avidemux codes are compliant, including its H264 mode.

Regards, Dave.
Registered Linux User #412504          Trainee Linuxer, jg

Offline Ex Nihilo

  • Hero Member
  • *****
  • Posts: 1513
    • Change a child's life today
Re: converting a vob file to avi?
« Reply #13 on: November 28, 2009, 05:37:17 PM »
t@b encoder is a good front end encoder for this...

http://www.thugsatbay.com/tab/?q=tab-video-converter-encoder

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: converting a vob file to avi?
« Reply #14 on: November 28, 2009, 05:39:38 PM »
is this app in synaptic?

if not...
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan