LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-10-2012, 02:54 AM   #1
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
Convert vob files to mp4(or similar)


Hello,

A while ago I coverted old vhs tapes using a panasonic set top recorder, then I burned those rips to a dvd using the device. So I had something to use on my computer. I put these vob files on a server and I now have 8 dvd's on a server that I want to convert to MP4 or something like that so it can be streamed to a few locations with media players.

My only question is how to convert these folders with vobfiles to video files that are slightly compressed but still offer good quality(vhs isn't too good, so I don't mind a little loss.)

I'm on a slow connection with only 512kbit upload and have a latency issue when I'm using it all up. So I have to do the operations on the server and can only pull something in to check if it's okay in the end.

In short: Coverting 24 gb of vob files to a usable less space consuming format using only command line on a headless debian box.
 
Old 10-10-2012, 08:07 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I use WinFF or ffmpeg to do conversions. WinFF is idiot-proof with a GUI and works on both Linux and Windows. WinFF uses ffmpeg in the background. Go to winff.org. You can also use ffmpeg, which is the best, but it is very technical for the CLI only.
 
Old 10-11-2012, 02:01 AM   #3
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Original Poster
Rep: Reputation: 25
Yes I have loads of software to do this but I now only have cli and I dont use windows.Its a bad word on here anyway!
 
Old 10-12-2012, 10:53 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
You could try Handbrake which concerts DVDS to a different format, mp4 being a good one. You'd have to manually point it at your vob file and see how you go.

I also like Transmagedon for changing between formats. Either will take about the sanme time as viewing the video to translate to the new format.

Play Bonny!
 
Old 10-12-2012, 10:56 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
xvidenc / h264enc
heres my output:
Code:
xbmc@XBMCLive:~/bin$ cat  xvidenc-ac3-mkv.ksh
#!/bin/bash
################### START OF COMMANDS ###################
dvd=`lsdvd $1 | head -n 1 | awk '{print tolower($3)}' | sed s/_/-/g`
#mkdir /home/xbmc/win/stuff/clips/$dvd
titles=`lsdvd $1 | grep ^Title: | cut -b 8-9 | tail -n 1`
i=1
while [ $i -le $titles ]
do

/usr/bin/mencoder "dvd://$i" -dvd-device $1 -o /dev/null -vc mpeg12 -vf pp=al:c,softskip,unsharp=l5x5:.25:c5x5:.25,harddup -aid 128 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=192 -a52drc 1 -ovc xvid -xvidencopts pass=1:turbo:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile "$dvd-`zero-pad-2.x $i`.log"

/usr/bin/mencoder "dvd://$i" -dvd-device $1 -o "$dvd-`zero-pad-2.x $i`".avi -ffourcc XVID -vc mpeg12 -vf pp=al:c,softskip,unsharp=l5x5:.25:c5x5:.25,harddup -aid 128 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=192 -a52drc 1 -ovc xvid -xvidencopts pass=2:bitrate=1500:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile "$dvd-`zero-pad-2.x $i`.log"

sleep 2

/usr/bin/mkvmerge   --title "$dvd-$title-ac3" --track-name 0:"$dvd-$title-ac3" --language 1:en --track-name 1:"AC3 5.1" "$dvd-`zero-pad-2.x $i`.avi"      -o "$dvd-`zero-pad-2.x $i`.mkv"
sleep 2
rm "$dvd-`zero-pad-2.x $i`.avi" "$dvd-`zero-pad-2.x $i`.log"
i=`expr $i + 1`
done
#################### END OF COMMANDS ####################

Last edited by schneidz; 10-12-2012 at 11:01 AM.
 
Old 10-12-2012, 11:29 AM   #6
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
There's always Mencoder. I personally like a little front end for it called AcidRip.

By the way, for VHS, or DVD, you should encode as 480p (720x480 if not cropped for letter-box),... as that is the maximum resolution for VHS or DVD anyway. A full length movie at 480p ought to be under 2GB in file size, but closer to 1.5GB or less.

If you're encoding for a mobile device, you should encode at something closest to its native resolution. Anything more is wasteful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert VOB file using ffmpeg ? PayNow Linux - Newbie 8 07-01-2012 10:13 AM
How to convert .VOB to mp4 using ffmpeg? sarbojit Linux - Newbie 2 05-12-2011 11:10 AM
How to convert multiple format videos to *.mp4 files which can be played on my iPod kcynice Slackware 13 10-21-2008 07:00 AM
Convert multiple VOB files to one AVI mrant0 Linux - Software 2 05-26-2007 12:05 PM
How can I convert video files into mp4 Basel Linux - Software 2 03-11-2006 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration