Converting DVD into small chunks for Youtube

A friend dropped a multiple-hour DVD at my house, transfered from an 8mm tape. “Can you upload to Youtube?”

I mounted it:

mount /cdrom cd /cdrom/video_ts

and then I found some space to put the results (an NFS server), and I proceeded to run:

ffmpeg -i vts_01_1.vob -r 16 -ss 0 -t 300 /ssw/morevideos/tim/part1.mp4 ffmpeg -i vts_01_1.vob -r 16 -ss 300 -t 300 /ssw/morevideos/tim/part2.mp4 ffmpeg -i vts_01_1.vob -r 16 -ss 600 -t 300 /ssw/morevideos/tim/part3.mp4 ffmpeg -i vts_01_1.vob -r 16 -ss 9000 -t 300 /ssw/morevideos/tim/part4.mp4

I could write a shell script to do this for me, but I typed it out. ffmpeg said to me:

Input #0, mpeg, from 'vts_01_1.vob': Duration: 00:14:34.8, start: 0.227022, bitrate: 9741 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 9300 kb/s, 29.97 fps(r) Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 256 kb/s Output #0, mp4, to '/ssw/morevideos/tim/part4.mp4': Stream #0.0: Video: mpeg4, yuv420p, 720x480, q=2-31, 200 kb/s, 16.00 fps(c) Stream #0.1: Audio: aac, 48000 Hz, stereo, 64 kb/s

and the part4.mp4 was actually empty, because the _1.vob file only had about 15 minutes of video in it. I then went on to the _2.vob file.

The results are at: http://www.youtube.com/watch?v=FT1-caLBJ9c