Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dvd_copy [2019/06/28 02:55] beandogdvd_copy [2025/02/07 10:30] (current) beandog
Line 4: Line 4:
   * [[https://github.com/beandog/dvd_info]] - source code   * [[https://github.com/beandog/dvd_info]] - source code
  
-''dvd_copy'' ships with the [[dvd_info]] package. It lets you copy a track with specific chapters from a disc to filesystem or stdout. See ''--help'' for options+''dvd_copy'' ships with the [[dvd_info]] package. It lets you copy a track with specific chapters from a disc to filesystem or stdout. See ''--help'' for options. There is also man page.
- +
-<code> +
-dvd_copy 1.2 - copy single DVD track to the filesystem +
- +
-Usage: dvd_copy [-t track] [-c chapter[-chapter]] [-o filename] [dvd path] +
- +
-DVD path can be a device name, a single file, or directory. +
- +
-Examples: +
-  dvd_copy # Read default DVD device (/dev/sr0) +
-  dvd_copy /dev/dvd # Read a specific DVD device +
-  dvd_copy video.iso    # Read an image file +
-  dvd_copy ~/Videos/DVD # Read a directory that contains VIDEO_TS +
- +
-Output filenames: +
-  dvd_copy # Save to "dvd_track_##.vob" where ## is longest track +
-  dvd_copy -o video.vob # Save to "video.vob" (MPEG2 program stream) +
-  dvd_copy -o video.mpg # Save to "video.mpg" (MPEG2 program stream) +
-  dvd_copy -o - # Stream to console output (stdout) +
-</code>+
  
 Note that saving to a ''vob'' or ''mpg'' extension doesn't change the content, I'm only adding those examples as a visual indicator that that's what the formats are. Note that saving to a ''vob'' or ''mpg'' extension doesn't change the content, I'm only adding those examples as a visual indicator that that's what the formats are.
Line 32: Line 12:
 ** Encoding ** ** Encoding **
  
-Here'what I use when copying a DVD and encoding with ffmpeg:+Here'an example of copying a DVD and encoding with ''[[ffmpeg]]'':
  
 <code> <code>
-dvd_copy '/dev/sr0' -t '1' -c '7-7' -o '-' 2> /dev/null | ffmpeg -hide_banner -i '-' -map '0:v' -map 'i:0x80' -sn -vcodec 'libx265' -vf 'bwdif,fps=fps=60' -acodec 'copy' -x265-params 'crf=18:level-idc=50:colorprim=smpte170m:transfer=smpte170m:colormatrix=smpte170m' -tune 'animation' -metadata:s:a:0 'language=eng' -y '1.207.0964.12779.PLPSN.mkv'+dvd_copy '/dev/sr0' -t '1' -o '-' | ffmpeg -i '-' -map '0:v' -map 'i:0x80' -vcodec 'libx264' -acodec 'copy' -y 'dvd_rip.mkv'
 </code> </code>

Navigation