[FFmpeg-user] Rip DVD with ffmpeg

Adi Marvillo adi5 at gmx.at
Thu Feb 22 14:59:22 EET 2018


Thanks Steve and ZikZak. I've dumped the DVD with mencoder onto the HDD
but the chapters are still lost. I thought the chapter marks are stored
in Stream #0:0 below but they are not as VLC nor ffprobe don't show them...
I wanted to process the vob-file with ffmpeg afterwards ;)
FYI: I didn't encode anything in this dumping-step in order not to loose
quality.

used commands:
mplayer dvd://11 -nocache dvdnav://11 -dumpstream -dumpfile
~/Videos/movienav.vob
adi at HOST ~/Videos $ ffprobe movienav.vob

ffprobe version 3.2.10-1~deb9u1 Copyright (c) 2007-2018 the FFmpeg
developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libebur128 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
--enable-libzmq --enable-libzvbi --enable-omx --enable-openal
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264
--enable-shared
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, mpeg, from 'movienav.vob':
  Duration: 01:00:01.57, start: 0.287267, bitrate: 12514 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top
first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s


I don't understand where the chapter information is stored in the DVDs.
Anybody knows?
@ZikZak: How do you preserve the chapter marks with mencoder dumping a DVD?

I'd preferably use an commandline-tool but as it seems the next step for
me would be to try makeMKV - the newest Linux Version I found ist from
year 2009 - is this correct?
CU Adi


Am 2018-02-21 um 17:27 schrieb Steve Boyer:
> On Wed, Feb 21, 2018 at 10:06 AM, Adi Marvillo <adi5 at gmx.at> wrote:
>
>> Hello everyone - I am trying hard to rip my own DVD collection onto my
>> fileserver but it doesn't work properly.
>> Input-streams are:
>> Stream #0:0: Data: dvd_nav_packet
>> Stream #0:1: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576
>> [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 90k tbc
>> Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
>>
>> I made a list of the biggest files on the DVD which are supposed to be
>> the entire film if concatenated.
>> files adi at HOST ~/Videos $ cat mylist.txt
>> file '/media/cdrom/video_ts/vts_09_1.vob'
>> file '/media/cdrom/video_ts/vts_09_2.vob'
>> file '/media/cdrom/video_ts/vts_09_3.vob'
>> file '/media/cdrom/video_ts/vts_09_4.vob'
>> file '/media/cdrom/video_ts/vts_09_5.vob'
>> file '/media/cdrom/video_ts/vts_09_6.vob'
>>
>> DVDs do have copy-protection. In my experience, some DVDs will rip well
> with the CLI tool "dvdbackup," however I've had significant issues when
> coming to backing up D!sn3y discs. My preferred way is to use MakeMKV
> (there's a linux version available), decrypt to the local HDD, then run
> FFmpeg on the resulting single file (which does still contain chapter
> information). It looks like you are reading directly from the CD, so that
> could be part of the issue there.
>
>
>> the command to start ripping is this one:
>> avconv -safe 0 -f concat -i mylist.txt -g 25 -keyint_min 3 -aspect
>> "16:9" -map 0:1 -c:v libx264 -map 0:2 -c:a copy ~/Videos/testvideo.mkv
>>
>> My CLI for ripping DVD's is roughly:
> ffmpeg -i movie.mkv -vf crop=NumbersHere,fieldmatch,decimate -c:a
> libfdk_aac -b:a 384k -c:v libx264 -preset veryfast -crf 18 -tune film
> -movflags +faststart movie.mp4
>
> *I compile FFmpeg from source, and include the FDK AAC codec. Unless you
> compile, you won't get this encoder option.
> *CRF 18 I've found to be a good balance of filesize/quality for DVD
> material. For Blu-Ray rips, I'll downscale to 720p and use CRF 21.
> *Crop values I get from doing: ffmpeg -ss 25:00 -i movie.mkv -vf cropdetect
> -t 10 -f null /dev/null" and taking the spit-out crop values and plugging
> them in directly.
> *For IVTC, I'll either use combo of fieldmatch,decimate or
> fps=fps=24000/1001 (depending on what works best and source material).
> *movflags +faststart does a second pass after encoding is done and moves
> the MOOV header to the front of the file, allowing you to start watching
> before the download is completed.
>
>
>> Error message after half an hour:
>> Non-monotonous DTS in output stream 0:1; previous: 17992, current:
>> 17960; changing to 17992. This may result in incorrect timestamps in the
>> output file.
>>
>> ...
>>
>
>> adi at HOST ~/Videos $ avconv -safe 0 -f concat -i mylist.txt -ss 00:18:15
>> -t 00:00:30 -g 25 -keyint_min 3 -vf
>> "crop=x=22:out_w=in_w-52:y=4:out_h=in_h-6" -aspect "16:9" -map 0:1 -c:v
>> libx264 -map 0:2 -c:a ac3_fixed ~/Videos/testvideo.mkv
>> ffmpeg version 3.2.10-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg
>> developers
>>   built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
>>
> Also, why are you invoking it via avconv vs. ffmpeg? it looks like the
> version is indeed FFmpeg and is just aliased ("Copyright (c) 2000-2018 the
> FFmpeg developers")
>
> Steve
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list