muammar / mkchromecast

Cast macOS and Linux Audio/Video to your Google Cast and Sonos Devices
http://mkchromecast.com
Other
2.21k stars 138 forks source link

Subtitles not working with --seek #148

Open gabri94 opened 6 years ago

gabri94 commented 6 years ago

I've noticed that if a movie is streamed using the command: sudo mkchromecast --video video.mp4 --seek 10:00 --subtitles video.srt The video seek correctly from 10:00 but the subtitles starts from 0:00.

muammar commented 6 years ago

I am aware of this problem. I haven't found a way to make ffmpeg to seek subtitles correctly.

TUSF commented 6 years ago

Idea: If seek is set, generate a temporary subtitles file from the given file, using ffmpeg -i original.srt -ss {timestamp} new.srt where {timestamp} is the given seek coordinates. The newly generated subtitle file will be treated as tho the video begins where seek is at, and should thus fix this issue.

gabri94 commented 5 years ago

Nice idea. Unfortunately i abandoned the use of this software when i discovered Videostream for chrome :/

fn-ix commented 5 years ago

Nice idea. Unfortunately i abandoned the use of this software when i discovered Videostream for chrome :/

Well, now that one is having trouble with subtitles too.