LinuxQuestions.org
Help answer threads with 0 replies.
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-28-2003, 10:30 PM   #1
finnigan001
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Reading Multiple vob files in mplayer


Hi,
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:

Quote:
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>]

Example:

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.
Tim
 
Old 10-29-2003, 04:30 AM   #2
yapp
Member
 
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:
Code:
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:
Code:
cat - < stream.yuv | yuvscaler ...
This would be a little better, but it's still getting the "useless use of cat award":
Code:
cat stream.yup | yuvscaler ...
I'd recommend this. It uses the input streams without running another program to supply it.
Code:
yuvscaler ... < stream.yuv

Last edited by yapp; 10-29-2003 at 04:32 AM.
 
Old 10-29-2003, 04:59 AM   #3
finnigan001
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.
 
  


Reply


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

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

All times are GMT -5. The time now is 04:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration