This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
copy_dvd [2019-11-04 19:16:57] mi |
copy_dvd [2021-12-26 14:54:08] (current) mi |
||
|---|---|---|---|
| Line 37: | Line 37: | ||
| keyframes_opt=(-g 25) | keyframes_opt=(-g 25) | ||
| audio_opt=(-c:a aac -b:a 160k) | audio_opt=(-c:a aac -b:a 160k) | ||
| + | test="-t 120" # 120 seconds for testing | ||
| then | then | ||
| Line 85: | Line 86: | ||
| } | } | ||
| </file> | </file> | ||
| + | |||
| + | =Extract subtitles | ||
| + | |||
| + | List content with ''lsdvd -x''. From the output, select the VTS index for the movie, and select the index of the wanted subtitle track. | ||
| + | |||
| + | vtsid=2 # "Title: 02, [...] VTS: 02" will use VTS_02_0.IFO | ||
| + | subid=0 # "Subtitle: 01" : 1st subtitle track is index 0 | ||
| + | |||
| + | mencoder -dvd-device VIDEO_TS dvd://1 -nosound -ovc 'copy' -o /dev/null -ifo VIDEO_TS/VTS_0${vtid}_0.IFO -sid $subid -vobsubout vobsubs-$subid | ||
| + | |||
| + | (See also https://www.rigacci.org/wiki/doku.php/doc/appunti/linux/video/vobcopy) | ||
| {{tag>public video perl}} | {{tag>public video perl}} | ||