Skip to content

Instantly share code, notes, and snippets.

@privatezero
Last active December 9, 2021 00:47
Show Gist options
  • Save privatezero/67a6b081cfb0bce818b08ee26b6284aa to your computer and use it in GitHub Desktop.
Save privatezero/67a6b081cfb0bce818b08ee26b6284aa to your computer and use it in GitHub Desktop.
FFmpeg commands:
* ffmpeg -i TARGET.mp4 -vf yadif,crop=CROP -target ntsc-dvd TARGET-for-dvd.mpg
* ffmpeg -i TARGET.mp4 -vf "fieldmatch,yadif,decimate,crop=[CROP-VALUES]" -target film-dvd TARGET-for-dvd.mpg
(Crop example: crop=in_w:in_h-10:0:0)
export VIDEO_FORMAT=NTSC
dvdauthor -t [TARGET-for-dvd.mpg] --video=NTSC -o DVD
dvdauthor -T -o DVD
genisoimage -dvd-video -V ['TARGET'S TITLE'] -o [TARGET.iso] DVD
wodim --devices
wodim -v dev=[DEVICE] speed=10 -eject [TARGET.iso]
## SUBTITLES
## Link https://www.serjux.com/dvdvideo/dvd_with_subtitles.html
## Encode SRT in ISO8859-1 and clean up characters
spumux INPUT.xml < INPUT.mpg > INPUT-CAPTIONED.mpg
## Sample text for XML
<subpictures>
<stream>
<textsub filename="INPUT.srt" characterset="ISO8859-1"
fontsize="18.0" font="Vera.ttf"
horizontal-alignment="center"
vertical-alignment="bottom" left-margin="60"
right-margin="60"
top-margin="20" bottom-margin="30" subtitle-fps="29.97"
movie-fps="29.97" movie-width="720" movie-height="486"/>
</stream>
</subpictures>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment