Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
dvd_copy [2018/03/27 23:33] beandog |
dvd_copy [2023/04/09 15:37] beandog |
||
---|---|---|---|
Line 7: | Line 7: | ||
<code> | <code> | ||
- | dvd_copy 1.2 - copy a single DVD track to the filesystem | + | dvd_copy - copy a single DVD track |
- | Usage: dvd_copy [-t track] [-c chapter[-chapter]] [-o filename] [dvd path] | + | Usage: dvd_copy [path] [options] |
- | DVD path can be a device name, a single file, or directory. | + | Options: |
+ | -t, --track <number> Copy selected track (default: longest) | ||
+ | -c, --chapter <#>[-#] Copy chapter number or range (default: all) | ||
+ | -o, --output <filename> Save to filename (default: dvd_track_##.mpg) | ||
+ | --output - Write to stdout | ||
- | Examples: | + | DVD path can be a device name, a single file, or directory (default: /dev/sr0) |
- | 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> | </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. | ||
- | dvd_copy **does not** copy VobSub subtitle tracks. The closed captioning subtitles are in there because it's part of the MPEG2 transport stream. You can use [[ccextractor]] to get them out. | + | It doesn't copy VobSub subtitle tracks right now, that'd be additional functionality since they're not in the transport stream. The closed captioning subtitles are in there because it's part of the MPEG2 transport stream. You can use [[https://www.ccextractor.org/|ccextractor]] to get them out. |
+ | |||
+ | ** Encoding ** | ||
+ | |||
+ | Here's what I use when copying a DVD and encoding with ffmpeg: | ||
+ | |||
+ | <code> | ||
+ | dvd_copy '/dev/sr0' -t '1' -o '-' 2> /dev/null | ffmpeg -hide_banner -i '-' -map '0:v' -map 'i:0x80' -vcodec 'libx264' -vf 'dejudder,fps=30000/1001,fieldmatch,bwdif=mode=send_frame:deint=interlaced,decimate' -acodec 'copy' -metadata:s:a:0 'language=eng' -y 'dvd_rip.mkv' | ||
+ | </code> |