# to_mkv ## DVD_to_mkv - **getting volume label:** lsblk -n -p -o label /dev/sr0 - **decrypt and concatenate stream:** mplayer -dumpstream dvdnav://1 -nocache -dvd-device /dev/sr0 -dumpfile dvdout.vob - **create mkv:** ffmpeg -fflags +genpts+igndts -i file.mpg -c copy -map 0 -map -0:d -map -0:t file.mkv - **restructuring mkv:** mkclean file.mkv ### Missing Support for: #### IFO file (Metadata like Chapters) - https://www.reddit.com/r/mkvtoolnix/comments/gujs4k/convert_dvd_with_chapters/ - https://mkvtoolnix.download/doc/mkvmerge.html #### dvd_nav_packet (present till mkv remuxxing) - DVD Menu: https://github.com/Matroska-Org/dvdmenuxtractor #### useful tools and links: - lsdvd - VOBs can also be concatenated using [dvd2concat](https://github.com/FFmpeg/FFmpeg/blob/master/tools/dvd2concat) - [dvdbackup](https://dvdbackup.sourceforge.net/) - https://www.ffmpeg.org/faq.html#Why-does-FFmpeg-not-see-the-subtitles-in-my-VOB-file_003f ## Bluray_to_mkv - for getting volume label: dd if=/dev/sr0 bs=1 skip=32808 count=32 - https://ffmpeg.org/ffmpeg-protocols.html#bluray - https://wiki.archlinux.org/title/Blu-ray