Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pipe .vob files to .mpeg2[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
schorsche
Apprentice
Apprentice


Joined: 27 Jan 2005
Posts: 230

PostPosted: Wed Jan 31, 2007 11:03 am    Post subject: Pipe .vob files to .mpeg2[SOLVED] Reply with quote

Hi there,

I was just wandering if there is a tool that supports .vob-file to mpeg2-file conversion.
I don't want to encode it like the way mencoder does. Is there a tool out there that
just dumbs a dvd's content into a mpeg2-file. It would be also great if I could select
the starting/end-position of the video.

Many thanks


Last edited by schorsche on Mon Feb 12, 2007 5:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
derverstand
Guru
Guru


Joined: 15 Dec 2005
Posts: 511
Location: /dev/null

PostPosted: Thu Feb 01, 2007 9:30 am    Post subject: Reply with quote

Why not mplayer? Mplayer can do exactly this.
/BR
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Thu Feb 01, 2007 10:16 am    Post subject: Reply with quote

mplayer dvd://1 -dumpstream -dumpfile <filename>
dumps the whole data stream of title 1 on dvd to filename

mplayer dvd://1 -dumpvideo -dumpfile <filename.m2v>
mplayer dvd://1 -alang en -dumpaudio -dumpfile <filename_en.ac3>
mplayer dvd://1 -alang de -dumpaudio -dumpfile <filename_de.ac3>
mplex -t 8 -o filename.mpg <filename.m2v> <filename_en.ac3> <filename_de.ac3>
dumps the video stream and the english and german audio streams of title 1 and multiplexes them to a dualchannel mpeg file. (not sure about -t 8, have to select type DVD, man mplex will help)

tcrequant can requantize the video stream to the result will fit to a single layer dvdr
_________________
Video Encoding scripts collection | Project page
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Thu Feb 01, 2007 4:26 pm    Post subject: Reply with quote

What don't you like about how mencoder does things? Most things are tweakable with mplayer/mencoder.

You should also be able to one-step this with ffmpeg. Here's an example of it right out of the ffmpeg manual:
Code:
$  ffmpeg -i snatch_1.vob -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec mp3 -ab 128 snatch.avi


HTH,
m
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Thu Feb 01, 2007 7:35 pm    Post subject: Reply with quote

madisonicus wrote:
avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec mp3 -ab 128 snatch.avi[/code]
He's looking for 'copy', ffmpeg won't read dvd's (no css).
Back to top
View user's profile Send private message
schorsche
Apprentice
Apprentice


Joined: 27 Jan 2005
Posts: 230

PostPosted: Fri Feb 02, 2007 1:35 pm    Post subject: Reply with quote

Thanks guys, the dumpfile-option worked a treat! So now I've got one huge .mpeg file.
Any hints how I can cut it into chuncks?
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Mon Feb 05, 2007 11:33 am    Post subject: Reply with quote

Do you want to fit the whole video on more than one DVD-R or do you want to cut the video in more than one part?

To fit it on DVD-R you could shrink the video size to <4.4GB with tcrequant or requant.

To cut the video into pieces, use mplayer with start-stop timecode, or if you prefer a gui avidemux.
_________________
Video Encoding scripts collection | Project page
Back to top
View user's profile Send private message
schorsche
Apprentice
Apprentice


Joined: 27 Jan 2005
Posts: 230

PostPosted: Mon Feb 05, 2007 1:47 pm    Post subject: Reply with quote

All I want to do is to cut the file into smaller pieces. I googled for the start/stop-timecode option
in mplayer, but couldn't find any more information on it. Do I apply this option from within
mplayer or from the command-line?
Cheers!
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Mon Feb 05, 2007 3:37 pm    Post subject: Reply with quote

schorsche wrote:
I googled for the start/stop-timecode option
in mplayer


Code:
mplayer -ss <start hh:mm:ss> -endpos <length hh:mm:ss> file.mpg

BUT as mplayer isn't designed as a transcoder you are better off doing the splitting with mencoder (you sometimes get artifacts from the start of the file at the beginning of the 'section' you want, use
Code:
mencoder -ovc copy -oac copy -of mpeg -ss 00:30:00 -endpos 01:00:00 input.mpg -o output.mpg
The above example would give you 1 hour of the film, starting 30 minutes in.

-endpos can use a file size parameter, but it's not that accurate (has to complete the frame) if you are splitting up a large file, I don't recommend you use it.
Back to top
View user's profile Send private message
schorsche
Apprentice
Apprentice


Joined: 27 Jan 2005
Posts: 230

PostPosted: Mon Feb 05, 2007 6:19 pm    Post subject: Reply with quote

Cool thx, that worked! You were right, the first couple of frames turned out to be in bad quality.
An other thing is that after I dumbed the entire DVD into one single mpg file, whenever I play
the file using mplayer the time-bar starts off counting from 0 again for each new section.
This is strange, since I've only got one single mpeg-file.
If I want to extract each single section from the mpeg-stream into separate files now, I don't know
how to handle this with the end/start position.
How do yo do it?

THx in advance
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Mon Feb 05, 2007 7:18 pm    Post subject: Reply with quote

schorsche wrote:
the time-bar starts off counting from 0 again for each new section.

How would you define section, are they titles from the original DVD or chapters etc etc.
Back to top
View user's profile Send private message
schorsche
Apprentice
Apprentice


Joined: 27 Jan 2005
Posts: 230

PostPosted: Tue Feb 06, 2007 8:57 am    Post subject: Reply with quote

Yes, I refer to the different chapters. They got all dumped into one mpeg file using the -dumpfile option.
The timeline of this file, however, starts from 00:00:00 for each chapter.
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Wed Feb 07, 2007 2:35 pm    Post subject: Reply with quote

If you use mencoder, with '-oac copy -ovc copy -of mpeg', on the whole file it will create one large file with a proper timecode that you can then split up.

If you are using dumpfile then you should decide which chapters you want in each 'dumped' file when you copy it from the dvd, and do it in stages, chapters 1-6= part1.mpg, chapters 7-12= part2.mpg etc.
Back to top
View user's profile Send private message
schorsche
Apprentice
Apprentice


Joined: 27 Jan 2005
Posts: 230

PostPosted: Mon Feb 12, 2007 5:04 pm    Post subject: Reply with quote

Thanks that worked, SOLVED!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum