Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
dvd_copy [2018/03/27 23:30]
beandog
dvd_copy [2019/06/27 20:55]
beandog
Line 2: Line 2:
  
   * [[dvd_info]]   * [[dvd_info]]
 +  * [[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:
  
 <​code>​ <​code>​
Line 23: Line 24:
   dvd_copy -o video.mpg # Save to "​video.mpg"​ (MPEG2 program stream)   dvd_copy -o video.mpg # Save to "​video.mpg"​ (MPEG2 program stream)
   dvd_copy -o - # Stream to console output (stdout)   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.
 +
 +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'​ -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'​
 </​code>​ </​code>​

Navigation