kanji koohii FORUM
Idea: Video player with rikai-chan support - Printable Version

+- kanji koohii FORUM (http://forum.koohii.com)
+-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html)
+--- Forum: Learning resources (http://forum.koohii.com/forum-9.html)
+--- Thread: Idea: Video player with rikai-chan support (/thread-12687.html)



Idea: Video player with rikai-chan support - Zarxrax - 2015-04-15

I was thinking that it might be cool to be able to use tools like Rikaichan or JGlossator while watching video that has Japanese subtitles.
So I did some searching around, and it looks like this is possible with existing components.
I'm pretty sure I could get a simple proof of concept up and running in a few minutes, but I have no javascript development experience, so I would not be able to make something user-friendly.

The html5 video tag allows you to play local video files in your browser. MP4 is supported by most browsers, and Chrome supports mkv.

For the subtitles, there are a number of various options:
jquery.srt.js - http://v2v.cc/~j/jquery.srt/
A very simple javascript that displays SRT subtitles as text under the video.

bubbles.js - http://bubbles.childnodes.com/
Looks similar to jquery.srt.js, but displays subtitles over the video itself. Subtitles can still be selected as text.

VideoSub - http://www.storiesinflight.com/js_videosub/
Another script very similar to bubbles.js

libjass - https://github.com/Arnavion/libjass
Renders ass subtitles on the video. I tested the demo in chrome, and text was not selectable and rikaikun did not work.

Popcorn.js - http://popcornjs.org/popcorn-docs/parsers/
Looks like an extremely robust system for playing video, and includes support for both SRT and SSA, but not ASS.


I wonder if some experienced javascript coder might want to try their hand at putting something together? If not, I might try to rig something simple up this weekend.


Idea: Video player with rikai-chan support - Zarxrax - 2015-04-16

I went ahead and made up a quick test, took me a lot longer than I thought.
http://www.nihongonobaka.com/Files/videoplayer_test.html

If you save this html file to your pc (right-click the link, save as), you can load your own local video files and SRT subtitle file. It's hardcoded to look for "test.mp4" and "test.srt" in the same folder as the html file. It does not work on chrome due to some sort of security feature which prevents loading local files through javascript. Works fine in firefox, but rikaichan does not work in full-screen mode.
This utilizes video.js and bubbles.js.

I would imagine a more robust player would allow for things like loading files via drag and drop, having multiple subtitle streams at once, selectable font size, working in chrome, maybe finding some way to get rikaichan working with it in fullscreen mode, more subtitle formats supported (maybe auto-converting to srt?) and controls to seek from one subtitle to the next.


Idea: Video player with rikai-chan support - Roketzu - 2015-04-17

This is a cool idea, but currently seems to be of quite limited use that I can think of. I can imagine something like this, but as kind of a mish-mash between Rikaisama Anki import and subs2srs, where you would have the ability to mouse over a word and automatically export a note to Anki containing the audio dictated by the sub timing, a screenshot of whatever was on the player, along with all the other things Rikaisama can currently export. Of course it would take a ton of work to make something like that, maybe the creation of an entirely new media player, but that would be the ideal form of something like this I think!


Idea: Video player with rikai-chan support - Roketzu - 2015-06-07

I just came across something that reminded me of this post: https://github.com/TranslationPlayer/Trans-Player-Desktop

The idea is somewhat similar and I think there's some potential lurking here, just a shame projects like this seem to hit roadblocks before being fully realized (or maybe it's just me it doesn't work for). Anyway just wanted to bring it up in case anyone might find it useful for themselves.


Idea: Video player with rikai-chan support - aldebrn - 2015-06-07

SABU is a pretty polished app for iOS: http://forum.koohii.com/showthread.php?pid=219028#pid219028.

FluentU's interface is well-thought-out, and you can bet they're working on licensing anime to use to teach its users, instead of stupid Youtube clips. http://www.fluentu.com/

IMO HTML5/Javascript is the better approach, so keep at it. The Chrome issue is readily worked around by starting a webserver in the directory of the HTML file at some port like 8080 and going to http://localhost:8080/videoplayer_test.html (CivetWeb is an easy recommendation, but if you have Python, it's trivial to just run, from that directory at the command prompt, `python -m SimpleHTTPServer 8080`, no special modules needed since SimpleHTTPServer ships with Python). I'm surprised Firefox lets you run Javascript with "file:///" URLs.

What would be great is if you could edit the SRT file and embed what "sense" of a dictionary entry is being used, any corrections, etc., and a SHA1 checksum of the video file it goes with, so that you could share the SRT files with fellow learners.

I'm working on all this with a colleague for a language-learning-related project… so much to do.


RE: Idea: Video player with rikai-chan support - polyturn - 2016-04-05

(2015-06-07, 5:36 am)Roketzu Wrote: I just came across something that reminded me of this post: https://github.com/TranslationPlayer/Trans-Player-Desktop

Tried downloading that but the program won't launch, it just flashes the command prompt. Did I do something wrong?

My current setup for watching videos with glosses is Potplayer + Jglossator but TranslationPlayer seems to be more interesting because it seems to have Anki integration. Does anyone know how to use it?


RE: Idea: Video player with rikai-chan support - Oniichan - 2016-04-06

Remember these threads? Wink

http://forum.koohii.com/showthread.php?pid=182851#pid182851 (post #6)
http://forum.koohii.com/thread-5375.html

BTW, I love the idea of getting this to work in the browser though.


RE: Idea: Video player with rikai-chan support - polyturn - 2016-04-10

Tried downloading TranslationPlayer 0.3, it works but it can't play mkv files. Just wondering, does this have integration with Anki in the same way as yomichan? I'd love to use this for mining.