View Single Post
  #4  
Old 2015-03-26, 07:11 PM
spidergawd's Avatar
spidergawd spidergawd is offline
Peninsulanwolf
 
Join Date: Dec 2011
Location: Metro Day Twa
Re: How do I rip a single song to MPG or AVI in a DVD without chapters?

With ffmpeg you can use the "-ss" option to tell it which second to start with, and the "-t" option to tell it how much time to run. For example, if the entire song is on a single .VOB file:

ffmpeg -ss 927 -i VTS_01_1.VOB -t 407 -acodec copy -vcodec copy -f vob songtitle.mpg

or, since mpeg formats concatenate nicely, for something that spans more that one .VOB:

cat VTS_01_1.VOB VTS_01_2.VOB | ffmpeg -ss 927 -i pipe: -t 407 -acodec copy -vcodec copy -f vob songtitle.mpg

and, of course, if you want to encode it to something else at the same time, for example h264, you could change the audio codec to libfaac, the video codec to h264, and the format to mp4 or matroska.
Reply With Quote Reply with Nested Quotes