Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-28-2003, 09:30 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Reading Multiple vob files in mplayer

I've just switched to linux RH9 and it's great. Worked out how to create vcds from vob's after a painstaken length of time. Anyways, i had ripped a number of dvd's to hard drive using smart ripper on a computer with a dvd player, then copied them to my linux box. I use mplayer to output a stream that mjegtools can use to create the vcd. My problem is when i try to encode them it only gets the first vob file and encodes that. I was looking at mplayer docs to try and find out how to make it read properly off my hard drive and i found this:

5.2. DVD playback

For the complete list of available options, please read the man page. The Syntax for a standard Digital Versatile Disc (DVD) is as follows:

mplayer dvd://<track> [-dvd-device <device>]


mplayer dvd://1 -dvd-device /dev/hdc

The default DVD device is /dev/dvd. If your setup differs, make a symlink or specify the correct device on the command line with the -dvd-device option.
but in trying to symlink /dev/dvd to my /dvdfiles/ im having no luck. The command i use to symlink is : ln -s /dvdfiles/ /dev/dvd/

i have no dvd drive in this computer, thats why im trying to make it read of the hard drive.

below is the commands i use in my script:
( mplayer -alang en -noframedrop -vo yuv4mpeg -ao pcm -waveheader -v -osdlevel 0 $dvdFile) &

( cat - < stream.yuv | yuvscaler $yuvoptions | mpeg2enc $mpegoptions) &

$yuvoptions $mpegoptions are just extra command line arguments for each of the tools.

Any help would be greatly appreciated.
Old 10-29-2003, 03:30 AM   #2
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
you could encode files with mencoder, which is installed with mplayer. There are some nice frontends too.

VOB files can simply be merged:
cat *.VOB > large.vob
cat VTS_..[1-5].VOB | mplayer ... -
The cat command has been invented to catenate files

ps. sorry for asking, but why would you want to do this:
cat - < stream.yuv | yuvscaler ...
This would be a little better, but it's still getting the "useless use of cat award":
cat stream.yup | yuvscaler ...
I'd recommend this. It uses the input streams without running another program to supply it.
yuvscaler ... < stream.yuv

Last edited by yapp; 10-29-2003 at 03:32 AM.
Old 10-29-2003, 03:59 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply.

I never thought of putting them into one big vob file.

the reason i use cat - is because stream.yuv is a named pipe file which takes the video output from mplayer and puts it back out so that cat can grab it. But i could probably do it your way too.

Thanks heaps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
playing VOB files puishor Linux - Software 2 08-19-2005 07:49 PM
please help me out .my xine doesnot showsvideo in vob files amolgupta Linux - Software 5 07-24-2005 10:38 AM
splitting vob files ssfrstlstnm Linux - Software 2 07-10-2005 03:55 PM
VOB files unplayable bobwall Linux - Software 6 11-28-2004 05:29 AM
Encode .vob files into given space? jago25_98 Linux - Software 0 04-26-2004 07:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 AM.

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