moneyjilo.blogg.se

Makemkv command line linux
Makemkv command line linux









makemkv command line linux

but it is likely related to needing -map 0 to select all the streams in input 0 for metadata export. Similarly, it is not clear why -c copy is needed for stream metadata export. map_metadata 0 is needed to get all the global metadata (like creation_time) for an unknown reason.

makemkv command line linux

Linux form: ffmpeg -i "concat:VTS_01_1.VOB\|VTS_01_2.VOB" -i meta.txt -c copy -map_metadata 1 foo.mkvĪdd -fflags +genpts before the -i if ffmpeg complains about timestamps missing in your VOBs.

#MAKEMKV COMMAND LINE LINUX WINDOWS#

Windows form: ffmpeg -i concat:"VTS_01_1.VOB|VTS_01_2.VOB" -i meta.txt -c copy -map_metadata 1 foo.mkv You can then use your preferred version of ffmpeg to work with the VOBs while also bringing in the chapter data and other metadata. If working with VOBs containing a single title ("program" in ffmpeg terms), you can export the metadata as follows.įor just the main global data: vgtmpeg -i dvd://VIDEO_TS -f ffmetadata meta.txtįor all the metadata, including stream data ( -t 0 is just for shortcutting the copy operation): vgtmpeg -t 0 -i dvd://VIDEO_TS -c copy -map 0 -map_metadata 0 -f ffmetadata meta.txt vgtmpeg is a fork of ffmpeg but, because it is not updated very often, we'll use it as a separate tool here. This metadata file can then be used as an input file to ffmpeg to mark chapters. Vgtmpeg can be used to create a metadata file with chapter data from DVDs and BDs. Then I simply run: mkvmerge -chapters chapters.txt -o output.mkv input-file.mkv What title number do you want to create chapter info for: 2Ĭhapter data file: whiteglasses_chapters.txt IFS=',' read -r -a CHAPTERS /dev/null | grep CHAPTERS: | sed 's/CHAPTERS: //'`Įcho -ne "Creating chapter data file."įor chapter in "CHAPTER$j2=$chapter" > $filename.txtĮcho "CHAPTER"$j2"NAME=Chapter $j2" > $filename.txtĮxample output: $ read_chapters.sh whiteglasses_chapters I use a combination of both of the above to create a DVD chapter file which I can later add with mkvmerge to an encoded mkv file: #!/bin/bashĮcho -ne "What title number do you want to create chapter info for: " The only library it links against in Fedora 25 (other than standard stuff) is libdvdread.so.4, which is part of the dvdnav project. If you wish to write your own code, I imagine looking at the source for lsdvd will be instructive. (Without that parameter, it will guess /dev/dvd, which is lacking on modern Linux, and is usually /dev/sr0.) It will then give you a nice listing of the chapters on the disc, like so: $ lsdvd /dev/sr0 However, I've been using a tool called lsdvd, which is a basic CLI tool that takes as it's only parameter, the block device of your DVD drive. I'm not sure about what 1-frame accuracy means in this context.











Makemkv command line linux