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@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' 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 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. As much as I understood the options "-copyts -start_at_zero" sync the timestamp=1 with the beginning of the video-track and don't check it afterwards... So I thought, I'll bind the timestamp to the begin of the video-stream avconv -safe 0 -f concat -i mylist13.txt -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 copy ~/Videos/testvideo.mkv -copyts -start_at_zero Same error again. I searched a lot and couldn't find any solution to my Problem - maybe anybody has an advice? Then I tried to encode the audio-track as a new: adi@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 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, concat, from 'mylist13.txt': Duration: N/A, start: 0.000000, bitrate: N/A 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 [libx264 @ 0x5581377c0120] using SAR=760/501 [libx264 @ 0x5581377c0120] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x5581377c0120] profile High, level 3.0 [libx264 @ 0x5581377c0120] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=3 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to '/home/adi/Videos/testvideo.mkv': Metadata: encoder : Lavf57.56.101 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 668x570 [SAR 760:501 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc57.64.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1: Audio: ac3 (ac3_fixed) ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16p, 192 kb/s Metadata: encoder : Lavc57.64.101 ac3_fixed Stream mapping: Stream #0:1 -> #0:0 (mpeg2video (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> ac3 (ac3_fixed)) Press [q] to stop, [?] for help [ac3 @ 0x5581377be520] incomplete frame5kB time=00:00:17.33 bitrate=1873.5kbits/s speed=0.377x [ac3 @ 0x5581377be520] frame sync error Error while decoding stream #0:2: Invalid data found when processing input frame= 750 fps= 13 q=-1.0 Lsize= 7745kB time=00:00:30.01 bitrate=2114.1kbits/s speed=0.539x video:7026kB audio:705kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.181954% [libx264 @ 0x5581377c0120] frame I:36 Avg QP:23.15 size: 47989 [libx264 @ 0x5581377c0120] frame P:189 Avg QP:25.96 size: 14971 [libx264 @ 0x5581377c0120] frame B:525 Avg QP:28.48 size: 5022 [libx264 @ 0x5581377c0120] consecutive B-frames: 6.4% 0.5% 0.8% 92.3% [libx264 @ 0x5581377c0120] mb I I16..4: 4.2% 60.4% 35.4% [libx264 @ 0x5581377c0120] mb P I16..4: 0.9% 14.6% 5.3% P16..4: 39.4% 18.0% 10.9% 0.0% 0.0% skip:10.9% [libx264 @ 0x5581377c0120] mb B I16..4: 0.1% 2.4% 0.7% B16..8: 44.9% 8.7% 2.5% direct: 2.9% skip:37.7% L0:42.3% L1:47.3% BI:10.4% [libx264 @ 0x5581377c0120] 8x8 transform intra:66.9% inter:67.1% [libx264 @ 0x5581377c0120] coded y,uvDC,uvAC intra: 89.2% 81.3% 50.7% inter: 24.8% 17.9% 1.3% [libx264 @ 0x5581377c0120] i16 v,h,dc,p: 46% 9% 3% 42% [libx264 @ 0x5581377c0120] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 10% 11% 6% 9% 13% 7% 11% 7% [libx264 @ 0x5581377c0120] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 11% 10% 6% 9% 12% 7% 9% 5% [libx264 @ 0x5581377c0120] i8c dc,h,v,p: 46% 15% 30% 9% [libx264 @ 0x5581377c0120] Weighted P-Frames: Y:0.5% UV:0.0% [libx264 @ 0x5581377c0120] ref P L0: 57.8% 19.6% 17.7% 4.9% 0.0% [libx264 @ 0x5581377c0120] ref B L0: 93.1% 5.6% 1.3% [libx264 @ 0x5581377c0120] ref B L1: 96.8% 3.2% [libx264 @ 0x5581377c0120] kb/s:1918.31 I'd like to rip my DVD to mkv video h264 audio copy chapter separations which are on the DVD should be in the mky as well # until now I haven't found a way to do this... What is your workflow to do this? Thanks a lot! Adi
On Wed, Feb 21, 2018 at 10:06 AM, Adi Marvillo <adi5@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@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@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
My prefered way to transcode my DVD is to rely on a first dump with mplayer then the eventual transcoding with ffmpeg. Mplayer summoned with this line to identify the tracks (the biggest being the movie, most likely): mplayer -nosound -dvd-device g: dvd:// -identify Then ripping it: mplayer -dvd-device g: -nocache dvdnav://3 -chapter 1-19 -dumpstream -dumpfile dvd.vob the device is my dvd-drive, obviously I used Windows here, adjust to your mounting point under Linux. I get a dvd.vob file that I can then use with FFMPEG without any problem. On 21 February 2018 at 17:27, Steve Boyer <steveboyer85@gmail.com> wrote:
On Wed, Feb 21, 2018 at 10:06 AM, Adi Marvillo <adi5@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@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@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@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
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@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@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@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@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@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Adi Marvillo (2018-02-22):
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.
I don't understand where the chapter information is stored in the DVDs. Anybody knows?
On DVDs, the chapter information, like all the rest of the metadata (language of the streams, palette of the subtitles, etc.), is stored in the IFO files. MPlayer can read them when reading the DVD directly through libdvdread/libdvdcss. FFmpeg, on the other hand, does not know how to read DVDs directly, and the information is not present in the VOB files. Also, concatenating the VOB files like you did will not work correctly, due to timestamps resets and menu data interleaved with the actual video data. You can use the "dvd2concat" script distributed along with FFmpeg to generate a concat script that only takes the relevant part of the VOB files and controls the timestamp resets. It does not handle chapters, but that could be added with a little effort.
Am 2018-02-21 um 17:27 schrieb Steve Boyer:
Please remember that top-posting is forbidden on this list. If you do not know what it means, look it up. Regards, -- Nicolas George
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. I don't understand where the chapter information is stored in the DVDs. Anybody knows? On DVDs, the chapter information, like all the rest of the metadata (language of the streams, palette of the subtitles, etc.), is stored in
Adi Marvillo (2018-02-22): the IFO files. MPlayer can read them when reading the DVD directly through libdvdread/libdvdcss. FFmpeg, on the other hand, does not know how to read DVDs directly, and the information is not present in the VOB files.
Also, concatenating the VOB files like you did will not work correctly, due to timestamps resets and menu data interleaved with the actual video data. You can use the "dvd2concat" script distributed along with FFmpeg to generate a concat script that only takes the relevant part of the VOB files and controls the timestamp resets. It does not handle chapters, but that could be added with a little effort.
Am 2018-02-21 um 17:27 schrieb Steve Boyer: Please remember that top-posting is forbidden on this list. If you do not know what it means, look it up.
Regards,
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe". Hi Nicolas, thanks for your support! Meanwhile I managed to extract the chapterinformation with the command "mplayer dvd://TITLE -identify >> chapterfile.txt". This command dumps all metainformation of the current title into chapterfile.txt. TITLE has to be replaced by the number indicating the correct title on the current
Am 2018-02-22 um 14:43 schrieb Nicolas George: source - in this case it's 7 . I think this is "ID_DVD_TITLE_8_CHAPTERS=38" in chapterfile.txt (see below) when beginning to count with the index 0 instead of ID_DVD_TITLE_1_CHAPTERS=5 Here a part of chapterfile-dump: adi@HOST:/media/adi/bd29891a-00d1-42f2-997c-6d3073626884/Videos/monsterBox$ cat chapterfile.txt MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team Playing dvd://11. ID_DVD_TITLES=15 ID_DVD_TITLE_1_CHAPTERS=5 ID_DVD_TITLE_1_ANGLES=1 ID_DVD_TITLE_2_CHAPTERS=11 ID_DVD_TITLE_2_ANGLES=1 ID_DVD_TITLE_3_CHAPTERS=4 ID_DVD_TITLE_3_ANGLES=1 ID_DVD_TITLE_4_CHAPTERS=4 ID_DVD_TITLE_4_ANGLES=1 ID_DVD_TITLE_5_CHAPTERS=5 ID_DVD_TITLE_5_ANGLES=1 ID_DVD_TITLE_6_CHAPTERS=3 ID_DVD_TITLE_6_ANGLES=1 ID_DVD_TITLE_7_CHAPTERS=2 ID_DVD_TITLE_7_ANGLES=1 ID_DVD_TITLE_8_CHAPTERS=38 ID_DVD_TITLE_8_ANGLES=1 ID_DVD_TITLE_9_CHAPTERS=3 ID_DVD_TITLE_9_ANGLES=1 ID_DVD_TITLE_10_CHAPTERS=3 ID_DVD_TITLE_10_ANGLES=1 ID_DVD_TITLE_11_CHAPTERS=14 ID_DVD_TITLE_11_ANGLES=1 ID_DVD_TITLE_12_CHAPTERS=3 ID_DVD_TITLE_12_ANGLES=1 ID_DVD_TITLE_13_CHAPTERS=3 ID_DVD_TITLE_13_ANGLES=1 ID_DVD_TITLE_14_CHAPTERS=3 ID_DVD_TITLE_14_ANGLES=1 ID_DVD_TITLE_15_CHAPTERS=3 ID_DVD_TITLE_15_ANGLES=1 ID_DVD_TITLE_1_LENGTH=5.000 ID_DVD_TITLE_2_LENGTH=174.960 ID_DVD_TITLE_3_LENGTH=74.960 ID_DVD_TITLE_4_LENGTH=74.960 ID_DVD_TITLE_5_LENGTH=99.960 ID_DVD_TITLE_6_LENGTH=49.960 ID_DVD_TITLE_7_LENGTH=127.920 ID_DVD_TITLE_8_LENGTH=258.960 ID_DVD_TITLE_9_LENGTH=138.400 ID_DVD_TITLE_10_LENGTH=170.040 ID_DVD_TITLE_11_LENGTH=6092.080 ID_DVD_TITLE_12_LENGTH=138.880 ID_DVD_TITLE_13_LENGTH=126.760 ID_DVD_TITLE_14_LENGTH=100.040 ID_DVD_TITLE_15_LENGTH=128.000 ID_DVD_DISC_ID=5FFA8A29BAAD6646A0683DA76B86EC39 ID_DVD_VOLUME_ID=XXXXXXXXXXXXXX There are 15 titles on this DVD. ID_DVD_CURRENT_TITLE=11 There are 1 angles in this DVD title. audio stream: 0 format: ac3 (stereo) language: de aid: 128. ID_AUDIO_ID=128 ID_AID_128_LANG=de number of audio channels on disk: 1. subtitle ( sid ): 0 language: de ID_SUBTITLE_ID=0 ID_SID_0_LANG=de number of subtitles on disk: 1 CHAPTERS: 00:00:00.000,00:07:30.720,00:14:29.280,00:24:08.640,00:32:42.240,00:41:30.400,00:49:51.040,00:57:35.200,01:05:51.040,01:11:55.360,01:19:26.560,01:25:59.200,01:30:36.640,01:35:31.840, ID_VIDEO_ID=0 MPEG-PS file format detected. ID_AUDIO_ID=128 VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 8000.0 kbps (1000.0 kbyte/s) Please see the line beginning with "CHAPTERS:" Interesting: The chaptermarks are exactly 5 sec too late - might be because of "ID_DVD_TITLE_1_LENGTH=5.000" in chapterfile.txt - anyhow I don't understand it, but I accept it. After ripping the XXX.vob with ffmpeg to an XXX.mkv the chaptermarks can easily be included with mkvmerge. Please assure the Syntax below (chapterfile2.txt) adi@HOST:mkvmerge -o OUTPUT.mkv --chapters chapterfile2.txt XXX.mkv adi@HOST:cat chapterfile2.txt # Syntax of chapter textfile for mkvmerge CHAPTER01=00:00:00.000 CHAPTER01NAME=Intro CHAPTER02=00:00:53.500 CHAPTER02NAME=Baby prepares to rock I am not happy with using mkvmerge, because it's much better to combine the chaptermarks with forced keyframes 0.1 sec after the chaptermarks (- forced_key_frames chapter+0.1 ). Please can you help me with this? - I couldn't find the command after searching quite a time in the documentation - it simply didn't work. Questions: How does ffmpeg write chapter marks from a textfile into a mkv-container? Could the option be -map_chapters and what is the correct syntax to use?!? How should the chapter textfile for ffmpeg look - syntax? How can I include a forced keyframe 0.1 sec after the chaptermarks and at certain points? (this test did not work: ffmpeg -i VTS_08_1.VOB -t 00:02:00 -force_key_frames 00:00:05 -g 300 -aspect "16:9" -map 0:v -c:v libx264 -map 0:a -c:a copy forcedkeyframe.mkv) THX Adi
On Thu, Feb 22, 2018 at 6:59 AM, Adi Marvillo <adi5@gmx.at> wrote:
...
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
If you go to the MakeMKV site, click download, and it boldly displays info on the Mac and Windows. JUST above it though: " MakeMKV for Windows and Mac OS X is available for download below. MakeMKV for Linux is available on the forum
page <http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224>." You'll have to download two files, extract, and build/install. Latest version is 1.12.0, which was released 3 Feb 2018. Steve
participants (4)
-
Adi Marvillo -
Nicolas George -
Steve Boyer -
ZikZak