Short information how to stream mp4 from chrome to chromecast with SUBTITLES.
1a) We download open source tools, libav from libavDOTorg. (optional)
Compiled Windows version in Download section.
Libav is available as package for some linux distributions.
1b) We download opensource free Subtitle Edit 3.3.8
wwwDOTnikseDOTdk
2) Convert mkv to mp4 (optional)
avconv -i input.mkv -codec copy output.mp4
3) Prepare subitles in VVT format
( FPS of mp4 can be checked:
avprobe output.mp4 )
(txt) SubTitle.exe /convert subs.txt WebVTT /encoding:utf-8 /fps:25
(srt) SubTitle.exe /convert subs.srt WebVTT /encoding:utf-8
4) We prepare HTML5 envelope index.html
Code:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<video src="FILE.mp4" controls preload="auto">
<track kind="subtitles" src="PLACE HERE LOCALHOST : 8080 / FILE DOT VTT" label="plsubs" srclang="pl-PL" default />
</video>
</body>
</html>
5) We start local webserver to serve directory with index.html, FILE.mp4 , FILE.vtt port 8080
( I use Mongoose one file, 45kb exec, can be any lightweight webserver)
It is necessary step. Chrome doesn't support local VTT file.
6) Open in chrome localhost:8080
P.S. I am new and cannot send web links so you have to adjust html5 example.
Enjoy
Thanks Miszak! I have to say, this was very helpful. The instructions are decently clear, but not super newb friendly for someone with no html/cmd prompt experience.
Do you know if there's any way to keep the formatting of the subs? Or just change it in some way to a default setting?
Right now they show with a white text and a black highlighted background. I'd be fine if there were just a black outline around the text though.
battlehamsta said:
Do you know if there's any way to keep the formatting of the subs? Or just change it in some way to a default setting?
Right now they show with a white text and a black highlighted background. I'd be fine if there were just a black outline around the text though.
Click to expand...
Click to collapse
I have heard that those subtitles can be styled using CSS style sheets.
If you would find some working example somewhere let me know. I will make some experiments.
I managed to do it.
It takes a bit of work (maybe too much to bother with doing) to add those styles.
Basically the tough thing is to use SubtitleEdit to edit your .vtt subtitles to add a <c> and </c> around each line of text. I used their multiple replace function and entered some regex to narrow down on what I need to wrap with classes. It seems this is necessary and there's no way to just designate a style for the whole file based on how webvtt works. (If you find out any other ways to do this easier, let me know)
This then allows you to use "::cue" in your css stylesheet likely linked in the header of your index.html file. Make sure to direct to the right .css file src of course. Lots of online resources how how to use this.
After that, just style however you want the text, like to remove the black background around the text, use "background-color: transparent;".
I hope there will be easier ways to use subtitles in the future.
Related
Anyone have any recommendations for a good pocketPC text editor?
Preferably one that can handle any type of text file and maybe has syntax highlighting. Idealy, something like a lite version of the desktop program notepad++ would be amazing.
well there is notepad and then there if pocket word..
Is word not up to par?
Honestly, I haven't messed around with Word much, but it didn't seem like it was particularly what I was looking for.
How is it with .xml, .php, etc files? There didn't seem to be a straightforward way to open them.
I use a text editor called MADE (by Flinkware) and i very happy with it. It is able to open large file too and handle very well different encoding (UTF8, ...)
If you want to take a look go here (the home MADE doesn't exist...it was www.flinkware.com )
Edit : I found one but it's not free...CEdit (around 20$)
Maybe someone will port "Scintilla" on PPC...
I use SoftMaker office suit. It can read/write txt, doc, excel, powerpoint WITHOUT converting the files like the built in one (and that would mess up the layout most of the time).
Hi. I have to agree with ernest. MADE is the best text editor there is. Download free at freewareppc.com (Not freewarepocketpc.net)
Hey guys. Well, I have the HTC Fuze (aka Touch Pro) and I love to use the slide-out keyboard. Well, using it with the latest HTC Youtube Application (v1.6.1820.4128), I found that the orientation did not switch and that a thin white rectangle would appear on the screen to show me what I typed. I think that those of us with this agree that it looks ugly.
I did a bit of tinkering and found that the Youtube.exe in the latest version does not orient Search to landscape properly on the Touch Pro. The only version that seems to do this properly is the one from the Diamond. To get the benefits of both worlds (latest Youtube and working landscape Search) all we need is the Youtube.exe from the previous version. No need to change any other files or add/delete registry entries.
Needed File: http://www.megaupload.com/?d=E8OM7PD4
Solution:
1. Go to your device's Windows folder and backup the original Youtube.exe.
2. Replace the original exe with the one you downloaded. Use TotalCommander or any other program that lets you edit system files. Overwrite if prompted. If you are unable to replace the file, soft reset your device and try again.
Now enjoy!
The only disadvantage of the Youtube.exe from the older version is that the Program Guide will not appear if you do not have any custom favorites/channels added. If you do add a custom favorite/channel, the Program Guide will appear like it did in the original HTC Youtube, but the Auto &Vehicles channel will give the error "No Videos Found". Anything you add will start at #13 and count up (14, 15 ,16, ...).
Program Guide Style Editing (If you do not want the default channels)
1. Use your favorite Registry Editor and navigate to
HKLM\Software\HTC\Youtube
2. Now inside this, find the ProgramGuideStyle key and change its value from 1 to 0. Hexadecimal or Decimal doesn't matter since 0 is the same in both number systems.
Now you will have a Program Guide whose only default channel will be "All Videos" and anything you add will start at 2 and count up (3,4,5, ...).
Needed File: http://www.megaupload.com/?d=E8OM7PD4
The above file was uploaded from a virus/spyware free system. However, I cannot guarantee that you will download a virus/spyware free file, so PLEASE SCAN THE FILE AFTER YOU DOWNLOAD to make sure it is virus/spyware free.
Hope this helps!
This is great!! That bug has been annoying the heck out of me for God knows how long!!
I have both DocumentsToGo, and QuickOffice on my G-Tab. DocsToGo will let you open a Word Doc, but when you go to edit, it opens a new edit dialog with the previous sentence (at most) visible. It does not seem to allow you to edit many formatting options, and I can't see any way to use it to insert an image file into a document. QuickOffice lets you edit inline, but otherwise seems to have the same limitations.
Is there a "complete" word processing program for the G-Tab that will let me do some formatting and insert pictures, as well as produce a .DOC or .DOCX compatible file?
Is there some way to setup Google Docs like this, and have it be available if I don't have a connection (maybe through dropbox)?
TIA!
I'm using the QuickOffice HD from the Notion Ink Adam and it works great!
It's available via this thread:
http://forum.xda-developers.com/showthread.php?t=928832
Right now, the current version lets you connect to Google Docs and both edit AND create new documents (Word, Excel, PPT) as well as read PDFs
You could easily open a document up and re-save it internal to your gTablet for offline use -- or as you suggest use Dropbox to keep a local folder synced up for offline use...
Google only recently added support for the XML office files to GDocs -- so creation of new documents in those formats isn't natively supported in this version (but may be available in a newer version of QuickOffice HD I suppose)
Long Pressing in a Word document brings up a dialog with the following options:
- Add Image from Gallery
- Add Image from Camera
- Select Text
- Input Method
You can also change Fonts (inc. set Bold, Underline, Italic, etc), Alignment, Colour...
I think that just about meets your requirements (?) -- give it a try...
+1 for quickoffice tablet addition from notion ink. Works great for me!
OK, have given it a try. To begin with, I feel a little odd using it since I can't find the HD version in the market, so have to wonder if it won't up and die on me at some point.
In any event, I was able to insert and resize a picture, but couldn't find any way to select just the picture so I could try to center it. Selection handles seem a bit difficult to operate. Also could not find any way to edit my headers or footers, or to apply my document styles for chapter hearings.
Tool may support all this, but the online help isn't the greatest either. Half tempted to register and see if there have been any updates.
FWIW
The HD version is great. Use it for my college classes and I love it. Have the USB case and this and ur good to go. Being integrated with google docs and dropbox is a nice feature too
Sent from my Evo 4G using Tapatalk Pro
I just side loaded the Notion Ink Quick Office app, but I can't for the life of me figure out how to create a document. Am I supposed to create a Google Docs account or something? Or should I just be able to create a document on my G tab?
goog64 said:
I just side loaded the Notion Ink Quick Office app, but I can't for the life of me figure out how to create a document. Am I supposed to create a Google Docs account or something? Or should I just be able to create a document on my G tab?
Click to expand...
Click to collapse
I think you click the app (e.g., word), then select SDCARD, then press the small + at the bottom, which will popup file or folder choice.
Jim
Got it, thanks. Very cool!
Wow i must say the Quickoffice HD is way better than my DocstoGo full at this moment. Wasted my money on Docstogo...
I like the ported canvas app as well.
This seems to be much better than doctogo.
It asked about registering it do I need to?
Nope it's optional.
Sent from my Evo 4G using Tapatalk Pro
I want to make a URI scheme favorite so that whenever you go to a YT video, you tap on the favourite and choose which app to open it with.
So far I've done this:
Code:
javascript:location.href="vnd.youtube:"
How do I code in Javascript so that it automatically copies the YouTube video ID and pastes it at the back of "vnd:youtube"?
I'm a noob at java sorry
Thanks
104082594999
I can't post links as I'm a new user, but google for "open with metrotube", it's already possible!
oh, and JavaScript isn't = Java.
Hi
I am making an android book app with java using one web view and my pages in html files.
I created an assets folder , under src- main and store my pages in there
Now all I'm missing is a navigation method.
As I am new to this, I am trying to find how to slide from one html page to another instead of clicking buttons. please if you know how , set an example because like I said I am new to this.
here is a link to the app I made if you want to have a look(its very small for testing purposes, with 3 pages).
https://github.com/Philip2021-Gr/book-app-sliding-between-html-files
So far no one gave me any reliable answer that refers to a rookie like me in coding nor I find a video tutorial that saws how to do that with html pages that are stored in your assets folder.
Thank you in advance
Philip