Subtitles are currently not supported. It would be nice to have this feature.
I'll keep it in mind.
Hm could someone figure out how to extract subtitles? And how to read those?
@theScrabi
youtube-dl is able to extract the subtitles, maybe it is worth looking at their source code.
As for reading them, I don't know. They are SRT-formatted, they use another file extension, but it is basically the same how Youtube uses it.
Not yet.
Still no. This may take a while untilIi finaly find time to care about that. Still there are hundred other things to do first.
Here is the implementation http://google2srt.sourceforge.net/en/
Good thanks :)
Any change?
Yep exoplayer actually supports subtitles, so at least its possible to implement something like that. But unless we get proper exoplayer support, it's no worth speaking about it. So far exoplayer support is still an experimental early bird.
I wished NewPipe development would go faster :/
@theScrabi What about adding the label help needed to this issue or add a TODO list with things that need to be done (e.g. a TODO.md)? That way, volunteers can quickly get an overview of what needs to get done. There's an overview in README.md but it doesn't state what the status of those developments is.
That autosub thing is Python we cant integrate it into NewPipe.
Also guys if you want to have subtitles, and asome other advanced features, than help me make exoplayer possible :). One thing I'd really like to so see, and I think its not that hard, is a new UI for the new player. With version 0.7.7 I'll deliver an experimental support for exoplayer, than you will see how it looks. However the UI of the current player is kind of a mess, I don't like that ugly MediaInterface, and the hide/show UI thing never worked correctly. I'd really appreciate it if someone could try to help me a bit with that :)
That's a really useful feature. I hope it will be implemented soon :)
Still I had to implement exoplayer in order to make this feature work, it's just gowing forward realy realy slow :/
I will just +1 it because that's the best I can do :D
Yea this should come :)
Ive checkes how 'youtube-dl' gets its subtitles, it's actually pretty simple method, even without understanding python, I am sure it's pretty easy to implement, since its just loading two files and parsing them.
Python code from youtube-dl:
def _get_subtitles(self, video_id, webpage):
try:
subs_doc = self._download_xml(
'https://video.google.com/timedtext?hl=en&type=list&v=%s' % video_id,
video_id, note=False)
except ExtractorError as err:
self._downloader.report_warning('unable to download video subtitles: %s' % error_to_compat_str(err))
return {}
sub_lang_list = {}
for track in subs_doc.findall('track'):
lang = track.attrib['lang_code']
if lang in sub_lang_list:
continue
sub_formats = []
for ext in self._SUBTITLE_FORMATS:
params = compat_urllib_parse_urlencode({
'lang': lang,
'v': video_id,
'fmt': ext,
'name': track.attrib['name'].encode('utf-8'),
})
sub_formats.append({
'url': 'https://www.youtube.com/api/timedtext?' + params,
'ext': ext,
})
sub_lang_list[lang] = sub_formats
if not sub_lang_list:
self._downloader.report_warning('video doesn\'t have subtitles')
return {}
return sub_lang_list
@tonakriz: Could you implement it yourself and submit a PR to NewPipeExtractor?
@wb9688 I can try to
NewPipeExtractor supports subtitles from this moment. Would be great if someone could implement it to NewPipe.
This is one of my pain points for me as a regular viewer of TED talks. I can do a but of Java, so if you've any leads, do tell if there's anyhow I can help.
Well someone had to pull the subtitles out of the extractor, and put them into ExoPlayer.
What exactly is ExoPlayer in context?
On Wed, Jan 3, 2018, 19:28 Christian Schabesberger notifications@github.com
wrote:
Well someone had to pull the subtitles out of the extractor, and put them
into ExoPlayer.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/TeamNewPipe/NewPipe/issues/55#issuecomment-355040001,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOvulN5475M4yGboEYPbUhEcHE13QpYiks5tG5yogaJpZM4GRY6N
.
ExoPlayer is the player framework we use to display the video.
How about using subtitles and audio with external players like VLC?
Here is some help you might need. I am sorry for not working on this issue anymore, but I have a lot of work to do.
Not a developer but I found that SimpleExoPlayer has SubtitleView but I'm not sure if this is relevant enough since it's a 2016 Nov post. This said, there's still a lot of issues related to the subs
We have exoplayer support this all isn't a big problem anymore. Just someone had to link things together :)
Most helpful comment
We have exoplayer support this all isn't a big problem anymore. Just someone had to link things together :)