nwronski / batch-transcode-video

Batch transcode videos using the video_transcoding gem
MIT License
43 stars 8 forks source link

use subtitle files in conversion #19

Open tirrip opened 4 years ago

tirrip commented 4 years ago

Is it possible to convert subtitle files in the same folders, sharing the same name as the video files?

eg.

/filename/filename.srt and /filename/filename.avi

the usual way would do it via the video_transcoding script is this way (for example):

transcode-video --mp4 --crop detect --fallback-crop minimal --burn-srt filename.srt filename.avi

nwronski commented 4 years ago

Probably not right now, but it could be done if I added a way to reference the original file name and then substituted in the right value for each file. The syntax could be something like

batch-transcode-video --input stuff/ -- --burn-srt '{{path}}/{{filename}}.srt'
tirrip commented 4 years ago

I think the subs method in transcode_video (no expert in any level?) is the only time you use another file in relation to the video file. Thanks for the reply.