Related
As has been pointed out in all of my articles dedicated to the excellent, lightweight browser Opera Mini, in addition to the lack of italic characters, probably the biggest problem with it has always been the lack of support for copying text from a Web page.
Now, this is fixed. While the way I've enabled copying is certainly inferior to the excellent copy capabilities of Teashark (see THIS), it's certainly working and, at last, enables anyone to copy anything out of any Web page, regardless of the platform you use. Yeah, it IS revolutionary.
How it works? Pretty easy: I've created a Web application that you need to pass the address (the URL) of the page you'd like to copy contents from. After entering (copying) the address, it presents you the contents of the page in a text area, which is already copy-enabled; that is, you can copy anything from them to your device's clipboard.
As mobile devices, in general, are only able to handle small(er) chunks of text in a text area, the dialog you're presented uses 2000-char-long chunks of text. You can easily switch between the block you're reading by just clicking the appropriate block link (0, 1, 2 etc.) There's also a way to force the application to display the entire page at once; note that, with pages over 10-15 kilochars, this may result in Opera Mini's slowing to crawl. That is, use it if you're absolutely sure your particular model / operating system lets for putting larger texts in an editable text area.
Now, let's see how this all works in practice.
1. add the Web page http://menneisyys.s156.eatj.com to your favorites in Opera Mini (the easiest way of doing this is reading this article in Opera Mini and clicking the link)
2. when you're on a(nother) page you'd like to copy something from, copy the address of the page you'd like to copy text from to the clipboard of your device. This needs to be done in the following way:
a. on Windows Mobile Pocket PC's (but not touchscreen-less Smartphones, where you need an additional app for copying):
a-1: press #1 (if your phone has a hardware dialpad) or go to Menu (left softkey) / Enter Address
a-2: If you haven’t disabled the new auto-completion address input field (the Auto-complete address input checkbox in Settings), press Down and go to Insert symbol… by pressing Up; and select it; you’ll be taken to the address input field of your Java environment. (You’re taken straight here if you disable the new, Opera Mini-specific address input field.)
a-3: select Menu (right softkey) / Current Address
a-4: As you can see, the address of the current page is displayed. Just copy it: highlight it entirely (under Jbed, to do this, click Shift, Ctrl and, finally, the left arrow on the on-screen keyboard) and press Ctrl-C on the virtual keyboard.
b. on Blackberry phones:
b-1: press #1 (if your phone has a hardware dialpad) or go to Menu / Enter Address
b-2: If you haven’t disabled the new auto-completion address input field (the Auto-complete address input checkbox in Settings), roll the trackball down, and, then, up, until you get to Insert symbol…. Now, you'll be taken to the address input field of your Java environment. (You’re taken straight here if you disable the new, Opera Mini-specific address input field.)
b-3: press the Shift button and roll the trackball down until the entire (current) address is selected
b-4: press Menu and select the (default) Copy.
b-5: to exit this dialog, press Back twice.
3. now that you've copied the address of the current page, switch to the previously (in bullet 1) stored page. When it loads, copy the URL of the previous page (the one you'd like to copy text from) to the "Enter the URL to convert" textfield. To do this, start editing the field and,
- on Blackberries, press the hardware Menu button and go down to Paste.
- on Windows Mobile devices, bring up the virtual keyboard and click Ctl, and, then, V
- on Symbian devices, long-press the Pen button until "Paste" is shown over the right softkey. Not releasing the Pen button, press the right softkey.
After some conversion, a new page is displayed, with a huge text area displaying the textual contents of the Web page. If the contents of the page is longer than 2000 characters, only the first 2000 is displayed (not to overburden the phone) and you can select the later ones by clicking 1, 2, ... n at the top of the page. You can also make the system display the entire content entirely, without cutting it in chunks, by clicking the "Click here to see the entire page!" link. Again, use this feature with caution - again, your phone may slow to a crawl, if the midlet manager's text area component is able to edit so huge blocks of text at all).
Finally, if you absolutely don't see anything and/or you'd like to see the entire markup of the page, click "Click this to switch to tag-enabled mode if you don't see anything".
After you've stepped into editing the text area displaying the (given chunk of) text, just look for the expression / URL etc. to copy to the clipboard. Once you've found it, highlight it and copy to the clipboard. This operation is supported on all the major smartphone operating systems and done in the same way as copying the address of the current page to the clipboard.
Hosting
Currently, the converter is hosted on a free JSP server that needs to be manually restarted every six hour (to force people to purchase a real Web package). That is, when you do check it out, it might not work at all. I will surely move it to another page / service provider if I don't find anyone else to voluntarily host it, depending on the price / conditions. (Currently, I don't really need a JSP/PHP-capable Webpage and, consequently, I've only subscribed to a static one for my database/picture/file back-end at http://www.winmobiletech.com/ ; this is why I can't currently host it myself.)
If you have the bandwidth and you'd like to help Opera Mini users, feel free to host the files yourself. If you have a JSP engine (Tomcat et al.), you'll find the web application (WAR) file HERE. If you only have a PHP or ASP engine, and don't want to struggle with porting the Java app into PHP or ASP, let me know and I convert it instead.
Source
The source of my converter is really-really small. The two, related files HERE and HERE, should you want to know how it works. The first is the main "landing" page you need to paste the URL to paste text from (it's a static HTML page as there is no need for any dynamic content in it); the second is the actual JSP page doing the work.
I've updated my eatj.com account: subscribed to a one-month plan (for $10). Now, the service should start working in 12 hours. There will be no pauses from now on. Feel free to use the service - and don't forget to provide me feedback on what you would welcome.
Also free to provide me with commonly visited pages (CNN etc.) that you think I could provide a more sophisticated engine - for example, only displaying article text and not displaying other stuff.
All in all, feel free to (publicly! NOT IN PRIVATE MESSAGES, they will all be ignored!) ask me to provide new functionality and/or site-based custom processing.
UPDATE:
In the meantime, based on public feedback (see selurus' and yitzy's requests on Wednesday, 3. June 2009, 18:13:35 and 23:30:15, respectively, at http://my.opera.com/community/forums/topic.dml?id=277592&t=1244154046 ), I've added the following two front-end pages:
http://menneisyys.s156.eatj.com/i2.html : if you paste the source page URL to this page, you'll be presented by all blocks in order. This way, you'll see (based on the text already visible in the beginning of each textarea) right away in which block you need to look. selurus reported it caused no slowdown on his handset; your mileage, on other handset models / operating systems may vary. That is, if you don't need this kind of breakup and/or it causes too much slowdown and you're sure you can find a given part of the text faster using the traditional links, use the first version instead. (Feedback is welcome!)
http://menneisyys.s156.eatj.com/i3.html : this displays UTF-8 pages properly (most oriental languages like Chinese / Japanese; Hebrew etc.). I've tested it with http://www.haaretz.co.il/hasite/spages/1090414.html (Hebrew) and http://fi.wikipedia.org/wiki/Romanit (Finnish; check out the letter "ž" in word gudžarati after "urdu, hindi, sanskrit ja"). NOTE: it's for UTF-8 source pages ONLY. Do not try to decode e.g. East-European languages using 8859-X with it. I plan to release a version compatible with these traditional, 8-bit encodings as well when I have the time so that charset setting becomes automatic.
As you can see, these front-ends 1. offer an alternative view (displaying the content of the entire page in multiple text areas, keeping in mind the text area editing limits) and 2. allow for copying from UTF-8-encoded pages.
------------------------------------------
Also in the Opera Mini Community forum, there's a nice tip posted by Yeswap: use "bookmarklets" to speed up invoking the converter. To do this, do the following:
1. from Opera Mini, go to http://o.yeswap.com/
2. click Tools or scroll down to Tools
3. click Copy Page Text
4. (seemingly) the same page reloads; NOW bookmark it as a standard bookmark (Menu / Tools / Add Bookmark or #7 if you have hardware buttons). However, don't save the bookmark yet - just open it for editing!
5. remove "http://o.yeswap.com/?" from the URL so that it becomes javascript:location.href='http://menneisyys.s156.eatj.com/om.jsp?q='+encodeURIComponent(location.href)+'&blocknr=0'
6. now, you can already save the edited bookmark.
7. you can quickly invoke the new bookmark: when you're on a Web page you'd like to copy to the contents to an editable text area (so that you can, later, copy text from), just go to your bookmarks (Menu / Bookmarks or, if you have hardware keys, #2) and click the just-added "Copy Page Text" entry. You'll be immediately taken to the target page - that is, no manual URL pasting is necessary any more! As you can see, this has really made all this very simple.
Note that you can safely change "om.jsp" to either "om2.jsp" or "om3.jsp" in the URL you bookmark (so that it becomes javascript:location.href='http://menneisyys.s156.eatj.com/om2.jsp?q='+encodeURIComponent(location.href)+'&blocknr=0' and javascript:location.href='http://menneisyys.s156.eatj.com/om3.jsp?q='+encodeURIComponent(location.href)+'&blocknr=0', respectively), should you want to have a direct link to the two new, alternative pages (display all the pages and use UTF-8) I've just added.
Also note that, strictly, you don't have to go to http://o.yeswap.com/ to add the bookmarklets. You can do the same by adding a new bookmark with the above contents (e.g., javascript:location.href='http://menneisyys.s156.eatj.com/om2.jsp?q='+encodeURIComponent(location.href)+'&blocknr=0' ). Also, you can name your bookmark anything - not strictly Copy Page Text.
I've implemented PDF support.
After a lengthy and careful evaluation of the current Java libraries used for PDF parsing, I've decided to choose Adobe's own one.
To use it,
1. navigate to http://menneisyys.s156.eatj.com/pdf.html and paste the URL to the PDF there.
2. if someone else has some seconds ago checked translated the document, you'll be presented its textual contents, in the usual multiple text areas (see http://menneisyys.s156.eatj.com/i2.html ) right away.
3. if it's the first time in the last few seconds that the document has been converted, you'll be dispatched to Adobe's page. After some 10-20-30 seconds of waiting, the conversion is finished and you'll be shown the textual version of the page.
4. NOW, just press Back until you get back to http://menneisyys.s156.eatj.com/pdf.html . Press the Submit button again. Now that it was just some seconds ago that you made Adobe convert your document, you'll be presented it, already in the text areas.
It's a bit convoluted but "hiding" the Adobe interface and make it even easier would have taken me too much time / effort.
Hope you'll like it
Thank you for all you useful information!
update: http://forum.xda-developers.com/showthread.php?p=6602656#post6602656
here is translation of quickpad a little big text editor from the same smart chinese guy as
quickmenu.
translation is not 'as should be' but it's working besides some miscropping (in file list dialog)
if someone here have MS tools to create mui, please drop me a text. i am 'on the road' and can't download full microsoft kit.
i only translated and changed some dialogs on it,
author of quickpad is:
Nanling
www.alensw.com
comments about software on author's webpage. chinese only.
i'll welcome comments about translation.
====
ZIP file was broken, now reUploaded.
edit: file deleted, update: http://forum.xda-developers.com/showthread.php?p=6602656#post6602656
Attached file is broken(((. Please, re-attach it
sorry, no idea what hapened.
zip is repacked & reuploaded
It is from "Nanling" who also did the Quickmenu It looks great. Let see how it works.As you guessed. The link works.
Great! Finally a text editor which is able to edit REG files.
Are there any other text editors capable of Unicode?
pathologo said:
Great! Finally a text editor which is able to edit REG files.
Are there any other text editors capable of Unicode?
Click to expand...
Click to collapse
sure,
1. PHM notepad still works good, it's 2003 and discontinued, not even web home page works but you'll find it by "PHM notepad" can't open large txt, when opening new file, it will reuse the same instance of already running, closing actually open file, no 'find' option
2. orneta notepad
http://www.orneta.com/products/notepad/
looks workable, but not free ($10)
I only don't like it because it don't have a toolbar, it's frustrating to go to 2 level menu to hit 'find next' or cut, paste. just so useless
NOW WITH MUI.
update: http://forum.xda-developers.com/showthread.php?p=6602656#post6602656
I have a shortcut that brings up my ebooks directory in the traditional fexplore list view. What I want to know is if there is any command line argument I can use to make it show up in a more finger (and eye) friendly Icon View, like that which occurs if you do start -> Programs.
I found another post asking this question, but no answers. Thanks for your time.
a friendly and hopeful bump
Sure,
take a look into my thread;
http://forum.xda-developers.com/showthread.php?t=623195
There are links to other pages with lots of nice applications/utilities.
There are new utilities (yet not made by me though).
Within it is the basics of making your own shortcuts.
Within it is the basis of adding your own icon.
or *.icl icon library..
Now and then I'm still updating (editing) it. I'm looking into two *.icl files, where I need to find out if I can share 'm here (that is within the above link).
IMO this is a nice start fortunz
Senax
I do appreciate the info (which I've bookmarked for other uses), but I didn't notice any Icon View parameters for fexplore in the post. I'm not really interested in altering what icon the .lnk has, I'm just looking to avoid the default List View fexplore uses.
My googling on the issue has also been a complete failure. I've been assuming that Start -> Programs (sans manila, I don't know if it uses the same setup) on vanilla 6.1 uses fexplore in an Icon View, but I suppose it could be using a different program entirely to browse the start folder.
Another approach
Use Opera instead
Goto the url: file://localhost/ Browse for your preferred directory, bookmark it, make a link (*.lnk) for this bookmark and put this link on your application launcher. You could also copy and paste it into another browser (with better/other view capabilities).
Just a thought,
Senax
Senax said:
Use Opera instead
Goto the url: file://localhost/ Browse for your preferred directory, bookmark it, make a link (*.lnk) for this bookmark and put this link on your application launcher. You could also copy and paste it into another browser (with better/other view capabilities).
Just a thought,
Senax
Click to expand...
Click to collapse
It's an interesting approach. Not quite up my alley having tested it out now, but I do appreciate the thought.
Since fexplore parameters seem to not be known, perhaps I should be looking for another file manager to use for these particular purposes.
fexplore free alternative
Hello again,
IMO I found it! I have it under the hood for ages, maybe that's why I did not think of it in the first place ; start using the free ware Total Commander file manager. Set it in it's Menu to Show - Large Icons
Done!
Senax
What you need is File Explorer Extensions
http://forum.xda-developers.com/showthread.php?t=421723
You can switch between big icon and detailed view, but not using command line.
And
http://www.vijay555.com/?Releases:VJSmallIcons
Can get command line parameters, but only for program menu (WM 6.1 and below)
Senax said:
Hello again,
IMO I found it! I have it under the hood for ages, maybe that's why I did not think of it in the first place ; start using the free ware Total Commander file manager. Set it in it's Menu to Show - Large Icons
Done!
Senax
Click to expand...
Click to collapse
Does it always default to showing large icons thereafter (Every time you open the program again after it's been shut down completely), or do you have to change it each time?
If not, I see at least one element in the ini file that might make the setting keep. Thanks. I'll give that a spin.
First off, I've been browsing here for some time, but I've just registered so I'm sorry if I'm breaking any etiquette or conventions on posting.
I ran across goofwear's tool to extract videos and photos from Samsung Motion Photos and thought it was useful. But I really wanted something that I'd be able to throw a whole album of motion photos at, rather than doing one at a time with this or the share app. I looked at the .bat file they used and implemented the same technique in C, so it could quickly process many photos. It's written with some direct Win32 API calls, so it's pretty much Windows only though making a cross platform command line version without the open dialog would be trivial. It is a simple program though, so it should work fine on Linux or Mac through Wine.
Here's the exe.
See the main page of that Github repository for more complete instructions and full source.
How to use:
1. Copy your Motion Photos off your Samsung phone, to your PC. Just copy them out of the DCIM folder.
2. Run the program. An "open" dialog appears. Apart from that there's no GUI on this program.
3. Browse to your photos and select them. Hold ctrl to select more than one, or shift to select a range. Or, ctrl+A to select all in a folder.
4. Click Open.
5. Wait. Depending how many you selected, it might take a little bit. When it's done, a message box will appear.
6. You should see *_photo.jpg and *_video.mp4 files next to the originals in the source directory. Note that this program does not modify the original files. It doesn't even open them with write permissions enabled.
Alternately, drag one or more photos from Windows Explorer onto the exe's icon instead of using the open dialog.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Version History:
1.0: Initial release
1.1: Added optional compile-time option to delete the original file after extracting
2.0: Refactored a bit, added a proper build system, and multilanguage support; moved to a 'real' Github repo
2.1: It now preserves timestamps when making the extracted files, and now supports a -r flag to rename the original file instead of appending _photo and _video to the extracted ones.
Andylain has written a Chinese language explanation of the usage of this program, and kindly translated the UI to Chinese (Traditional). To use it in Chinese, either have your Windows set to Chinese language, or rename the exe to put _zh at the end of the name. To use it in English on a Chinese Windows, put _en at the end of the name.
If for some reason you want the old version exe, the old "delete-original" exe, or the old source code, you can still have them.
Can you help to make a version that delete the source after successfully exact?
@Andylain Here's one that deletes the original file after splitting it into photo and video.
Oops -- turns out it was smaller because I forgot to include the icon last time. I've updated the link now and it points at a new build that has an icon.
This is super helpful, Thank you! Oh, there is no beautiful icon in this version.
BTW, I am a Chinese blogger live in Taiwan, I blogged this tool and made a Chinese user guide in my blog "andylain‧blogspot‧com/2017/07/SamsungMotionPictureExtractor.html" .
(Sorry, I am a new user and not allowed to post link.)
If you think that's not a great idea, please tell me and I'll delete my post.
@Andylain Thanks for linking me to your post, and thanks for writing a Chinese explanation for how to use it. I'm happy for people to use my program if they find it useful.
Would a proper Chinese language version of the program be helpful, or are most people there able to read enough English to understand the few error and status messages the program has?
@Andylain Please update your link to the "delete original" version to this one. I forgot to include the icon when building it yesterday.
Chupi383 said:
@Andylain Thanks for linking me to your post, and thanks for writing a Chinese explanation for how to use it. I'm happy for people to use my program if they find it useful.
Would a proper Chinese language version of the program be helpful, or are most people there able to read enough English to understand the few error and status messages the program has?
Click to expand...
Click to collapse
I think it's not hard to understand the status messages
However, a proper Chinese language version of the program would be much more helpful for girls and elderly since Samsung sell a lot of pink S8/S7 for this target.
I really love this app (super helpful for me) and I am happy to translate it , but I don't know how to code BTW. :silly: (just a blogger/photographer)
---------- Post added at 12:55 PM ---------- Previous post was at 12:47 PM ----------
Chupi383 said:
@Andylain Please update your link to the "delete original" version to this one. I forgot to include the icon when building it yesterday.
Click to expand...
Click to collapse
Thank you for the update. I update the link to my blog and facebook fanpage
@Andylain I've extracted all the user-facing strings from my code. The text in [square brackets] are comments giving some context for the message that follows, and don't appear anywhere in the program.
Code:
=====
[this message is shown in a dialog box if you click cancel on the open photos dialog]
You can use this program 3 different ways:
GUI USE: Just run it. You'll get an file-open dialog where you can open .jpg files. Use ctrl or shift or drag to select more than one.
DRAG & DROP USE: Drag one or more motion photos onto the icon for this exe.
COMMAND LINE USE: Run this program with one or more motion photo file names as arguments. Remember to use "quotes" if there are spaces in the names.
Any way you run it, the original files will not be modified. The extracted photo and video will be stored in *_photo.jpg and *_video.mp4 where * is the name of the original file, minus the .jpg extension.
Coded by Chupi383. All credit for the method goes to goofwear at the XDA forums. I've just ported their .bat file to plain C and Win32.
=====
[this is the title of the program]
Samsung Motion Photo Batch Extractor
=====
[this is displayed in the open dialog, under the box where you can type a filename, in a drop-down list]
Motion Photos (*.jpg)
All Files (*.*)
=====
[this is the title bar of the open dialog]
Open some Samsung Motion Photos
=====
[this message is shown if the user selected a file with a really really long name]
Skipping too-long path: <filename goes here>
=====
[title bar for error dialogs]
Error
=====
[error if the user selects over the maximum number of files (currently 10000)]
You've selected too many files. I can only do up to 10000 at a time.
=====
[error if the user selects so many files the Windows "open" dialog box gives up]
You've selected too many files. Try selecting fewer files and process them in bunches.
=====
[appended to names of extracted files - not sure if these should be translated]
_photo
_video
=====
[error if enough memory couldn't be allocated, possibly because the computer is out of RAM]
Can't allocate RAM to read <number> bytes from <filename>
=====
[error if a file can't be read for some reason, perhaps a damaged disk]
Skipping due to read error:
<filename>
=====
[error if an output file can't be written, generally because of full disk, read only disk, file exists and is read only, or permissions on the folder]
Can't write to <filename>
=====
[message on completion]
Finished extracting Motion Photos
Photos extracted: <number>
Videos extracted: <number>
=====
[added to the end of the previous success message if some files didn't contain a photo and a video]
<number> files were skipped because they weren't Motion Photos
=====
[title bar of completion message if at least 1 file was processed successfully]
Success
=====
[title bar of completion message if nothing was done successfully]
Failure
=====
["description" shown in right-click->properties dialog for the exe file]
Extract Samsung Motion Photos to jpg and mp4
=====
["product name" shown in properties dialog for the exe file]
Motion Photo Batch Extractor Utility
If you translate these for me, I'll put them back into my program to make either a Chinese or multi-language version.
Here is the translation of Chinese, sorry for the delay of this reply.
BTW, maybe a dialog for user to choose whether delete original files would be a great idea?
Code:
=====
[this message is shown in a dialog box if you click cancel on the open photos dialog]
有三種方式可以使用本軟體:
一:點開軟體後選擇你要轉存的照片,你可以使用Ctrl或是Shift來多選檔案。
二:把你要的照片拖移到本軟體的icon上也能轉存!
三:你也能使用Command Line來處理喔! (記得用”quotes”取代空格)
請放心:無論你怎麼做,原始檔案都不會被修改。轉存成功的檔案將會存在原始檔案位置,並新增為 *_photo.jpg 和 *_video.mp4。
GUI軟體由Chupi383撰寫,軟體內核由XDA forums的goofwear撰寫,Andylain翻譯正體中文,詳細中文使用教學請上「安迪連碎碎念」。
=====
[this is the title of the program]
三星動態相片批次轉存工具
=====
[this is displayed in the open dialog, under the box where you can type a filename, in a drop-down list]
動態相片 (*.jpg)
所有檔案 (*.*)
=====
[this is the title bar of the open dialog]
開啟一些動態相片
=====
[this message is shown if the user selected a file with a really really long name]
已忽略太長的路徑:<filename goes here>
=====
[title bar for error dialogs]
發生錯誤
=====
[error if the user selects over the maximum number of files (currently 10000)]
你一次選太多檔案了。我一次只能處理一萬個檔案。
=====
[error if the user selects so many files the Windows "open" dialog box gives up]
你一次選太多檔案了。嘗試選少一點檔案吧!
=====
[appended to names of extracted files - not sure if these should be translated ]
_photo
_video
=====
[error if enough memory couldn't be allocated, possibly because the computer is out of RAM]
記憶體定位錯誤,無法讀取 <number> bytes 上的 <filename> 檔案,有可能電腦的RAM不足。
=====
[error if a file can't be read for some reason, perhaps a damaged disk]
由於讀取錯誤,已跳過處理:
<filename>
=====
[error if an output file can't be written, generally because of full disk, read only disk, file exists and is read only, or permissions on the folder]
無法寫入 <filename> 可能目的地已滿或是為唯讀。
=====
[message on completion]
動態相片轉存結果:
有 <number> 張照片輸出成功!
有 <number> 個影片輸出成功!
=====
[added to the end of the previous success message if some files didn't contain a photo and a video]
<number> 個檔案被跳過了,因為它們不是三星動態相片。
=====
[title bar of completion message if at least 1 file was processed successfully]
轉存成功
=====
[title bar of completion message if nothing was done successfully]
轉存失敗
=====
["description" shown in right-click->properties dialog for the exe file]
批次把三星動態相片轉存成JPG照片和MP4影片!
=====
["product name" shown in properties dialog for the exe file]
動態相片轉存工具
[/CODE]
I'm sorry I'm being slow on this. My work has been especially busy lately. This thread isn't forgotten -- I'll make the translated app once I'm over this hump in workload.
Chupi383 said:
I'm sorry I'm being slow on this. My work has been especially busy lately. This thread isn't forgotten -- I'll make the translated app once I'm over this hump in workload.
Click to expand...
Click to collapse
That is very nice of you to do this!
Take your time and I am willing to help!
@Andylain Thank you for the translation! I've finally got a working bilingual exe -- see the original post. Sorry it took a while.
The "delete original" feature is now built into the main exe. You use the /d command line option to activate it. To make a drag-and-drop icon that will delete the original, right-drag it and create shortcut. Then right click the shortcut, go to properties, shortcut tab, and add a space and /d to the end of the target, after the closing quote.
BTW, if you could, please link people to "https://github.com/joemck/ExtractMotionPhotos/releases/latest" to get the exe -- that's a special link that will always go to the latest version I've posted there.
Coming up, I'd like to add an option to add/remove Explorer context menu integration.
This is absolutely amazing. Thank you so much!!
Chupi383 said:
First off, I've been browsing here for some time, but I've just registered so I'm sorry if I'm breaking any etiquette or conventions on posting.
I ran across goofwear's tool to extract videos and photos from Samsung Motion Photos and thought it was useful. But I really wanted something that I'd be able to throw a whole album of motion photos at, rather than doing one at a time with this or the share app. I looked at the .bat file they used and implemented the same technique in C, so it could quickly process many photos. It's written with some direct Win32 API calls, so it's pretty much Windows only though making a cross platform command line version without the open dialog would be trivial. It is a simple program though, so it should work fine on Linux or Mac through Wine.
Here's the exe.
See the main page of that Github repository for more complete instructions and full source.
How to use:
1. Copy your Motion Photos off your Samsung phone, to your PC. Just copy them out of the DCIM folder.
2. Run the program. An "open" dialog appears. Apart from that there's no GUI on this program.
3. Browse to your photos and select them. Hold ctrl to select more than one, or shift to select a range. Or, ctrl+A to select all in a folder.
4. Click Open.
5. Wait. Depending how many you selected, it might take a little bit. When it's done, a message box will appear.
6. You should see *_photo.jpg and *_video.mp4 files next to the originals in the source directory. Note that this program does not modify the original files. It doesn't even open them with write permissions enabled.
Alternately, drag one or more photos from Windows Explorer onto the exe's icon instead of using the open dialog.
Screenshots:
Version History:
1.0: Initial release
1.1: Added optional compile-time option to delete the original file after extracting
2.0: Refactored a bit, added a proper build system, and multilanguage support; moved to a 'real' Github repo
Andylain has written a Chinese language explanation of the usage of this program, and kindly translated the UI to Chinese (Traditional). To use it in Chinese, either have your Windows set to Chinese language, or rename the exe to put _zh at the end of the name. To use it in English on a Chinese Windows, put _en at the end of the name.
If for some reason you want the old version exe, the old "delete-original" exe, or the old source code, you can still have them.
Click to expand...
Click to collapse
Thanks
Just wanted to add my thanks for this fantastic tool.
I can't quite believe there's no official Samsung Motion Photo viewer (The Windows app doesn't appear to play Motion Photos). And there's practically no 3rd party support around for what you would think would be in high demand.
So I registered on XDA to show my appreciation. Thanks again.
Chupi383 said:
It's written with some direct Win32 API calls, so it's pretty much Windows only though making a cross platform command line version without the open dialog would be trivial. It is a simple program though, so it should work fine on Linux or Mac through Wine.
Click to expand...
Click to collapse
I also wanted to say thanks! That program is a wish-come-true! I wanted to create some script to batch-process JPG's and extract videos but that .exe is even better.
I have just one suggestion. Would you be able to modify program to set video's
Windows date modified
and maybe even date taken (EXIF) attributes
values to correct date, not current date when the extraction takes place?
It would help a lot, because Gallery apps or cloud services like Google Photos shows videos sorted / grouped by the date attribute which is different thandate of photo (when you extract old photos from last couple of months you will have a mess).
For now only way is to use some bulk date changer software to fix that - changing dates based on filename pattern, but it would be a nice feature for your exe. Do you think it's doable?
And yes. I created my XDA account just to say thank you for your great program!
Thanks a lot for this tool, Chupi383!
I'd like to "vote" for konieckropka's suggestion as well. Having the corrent timestamps on the extracted images and videos would be important for a correct file management.
The tool basically needs to read the original "modified timestamp" and set it to the created files (same for "created timestamp").
Could this please be added?
Fair point. I'll add it in a bit when I have the time.
Sorry for the delay, guys. I've added timestamp preservation and a -r flag to rename the original instead of adding _photo and _video. You can use -dr to delete the original and don't append _photo or _video to the extracted files.
This is super helpful, Thank you!
Chupi383 said:
Sorry for the delay, guys. I've added timestamp preservation and a -r flag to rename the original instead of adding _photo and _video. You can use -dr to delete the original and don't append _photo or _video to the extracted files.
Click to expand...
Click to collapse
Works perfectly now! THANKS A LOT!!
XVacuum Firmware
Flashing firmwares and sound packages from your smartphone (Android and iOS)
Roborock v1/v2(S50/51/55), T6, S6, 1S, T7, Q7 are supported.
The first and second generations have common language packs. The third (T6, S6, 1S) has its own packs.
Android:
(only pkg is supported, neither 7z, nor zip, nor rar but only pkg in the unarchived view; as for sound packages, be aware that wav-files in an archive isn't a pkg-package). These packages should be opened only from the internal storage (/sdcard). It will better if you place packages into root folder. Also avoid any special characters in file names, as the robot isn't able to download such files.
iOS:
Firmwares and sound packages must be placed in Documents folder of the application by iTunes (Shared Files section), iTools, iFunbox or other similar applications. (only pkg is supported, neither 7z, nor zip, nor rar but only pkg in the unarchived view; as for sound packages, be aware that wav-files in an archive isn't a pkg-package). Also avoid any special characters in file names, as the robot isn't able to download such files.
At the moment, there are two ways (see below):
Without Wi-Fi reset of the robot (you need to get the token by any available ways).
With Wi-Fi reset (the application will get the token by itself)
The instruction without Wi-Fi reset (you need to get the token by any available ways):
Launch the application.
Click the menu and then Settings.
Fill the IP and token of the robot.
Click the "Save" button.
The application will ask you to restart the application for applying the settings, kill the application:
Android: double click to "Back" button or click "Exit" from the menu.
iOS: double click to "Home" button and swipe up the application to kill it.
Launch my program again. The program is written for "blondies": there is almost no way to make mistakes. It consists of two buttons (firmware and sound), and that's all. An "About" menu is also available should you want to know more about me and contribute to the project.
The buttons will be inactive until the program has established connection with the robot and received a status.
As soon as the status have arrived, the buttons become active and you can start flashing the robot.
Choose a firmware or sound package.
Notice the log under the buttons and rejoice at the quick and easy flashing.
If you got an error:
"timeout: Could not connect to the vacuum, handshake is timeout", it means that you filled the invalid IP of the robot.
"timeout: Call to the vacuum timed out" after 50 tries to get the status, it means that you filled the invalid token.
"timeout: Call to the vacuum timed out" after 50 tries of flashing a firmware, it means that your cleaner doesn't support local updates (it was blocked 4004 and higher for the first generation, 1910 and higher for the second generation, the third generation was blocked always). The first and second generation can be reseted to the factory firmware if it is below 4004 for the first generation, below 1910 for the second generation. https://support.roborock.com/hc/en-us/articles/360035372632-How-to-reset-Roborock-to-factory-default
The instruction with Wi-Fi reset (the application will get the token by itself):
You need to reset the Wi-Fi settings of the robot to use this program (you will need to add the robot to MiHome again after all processing is complete).
For the first version: press the "Home" and "Power" buttons simultaneously within 3 seconds.
For the second version: press the "Spot Clean" and "Home" buttons within 3 seconds.
Your robot should say that Wi-Fi is reset and a new access point should appear in your smartphone. Connect to it.
Disable your mobile internet because some phones ignore Wi-Fi unless it provides an internet connection.
Launch my program. The program is written for "blondies": there is almost no way to make mistakes. It consists of two buttons (firmware and sound), and that's all. An "About" menu is also available should you want to know more about me and contribute to the project.
The buttons will be inactive until the program has established connection with the robot and received a token and status.
As soon as the token and status have arrived, the buttons become active and you can start flashing the robot.
Choose a firmware or sound package.
Notice the log under the buttons and rejoice at the quick and easy flashing.
After all processing is complete, you will need to add the robot to the MiHome.
Attention!
Due to the built-in file manager, Play Protect considers the application potentially dangerous and doesn't allow most users to install it. To install the application anyway:
1. Open "Play Market".
2. Tap on "Play Protect" in the menu.
3. Disable the "Check security risks" option during the installation of the application.
Android:
Download the application: View attachment XVacuum Firmware 4.1.0 - Andoid 4.4+.zip (unpack it before using)
Developer: .//Hack
Minimal version of Android: 4.4
iOS:
Download the application: View attachment XVacuum Firmware 4.1.0 - iOS 9.0-15.2.zip (unpack it before using)
Developer: .//Hack
Minimal version of iOS: 9.0
If you don't have JailBreak use Cydia Impactor.
If you have wav-files and want to make a pkg file, just use my program wav2pkg (Windows) - below.
Do you want to thank the developer financially?
Details
Tinkoff card: 5536 9137 9197 1969
Sberbank card: 2202 2007 1004 4098
Kykyryza card: 2 9603257 90117
Ozon card: 2 2302318 050546
PayPal: [email protected] (EUR, USD, RUR)
Yandex.Money (YooMoney): 41001365201505
WebMoney:
- WME: E266145873860
- WMZ: Z130755667036
- WMR: R830172982278
History
04.01.2022 (4.1.0)
The application works better with the third generation (1S, T6, S6, T7, S5 Max and etc.)
Updated the bank accounts.
iOS8 is out of date now to support the maximum version range (9.0-15.2).
Small fixes.
18.01.2020 (4.0.0)
The application tries to reconnect in any way possible in a case when the connection is lost.
If regional lock is activated the application tries to disable it few times. On failure, it displays an error to the log.
Fixed working after waking up from sleeping on iOS. Previously, you need to restart the application.
Requests to a vacuum work faster now.
Many small fixes
21.09.2019 (3.3.0)
The path to the selected file is displayed in the log
08.09.2019 (3.2.0)
The information about the vacuum is got in the background mode
Small fixes
25.08.2019 (3.1.2)
Added information about a vacuum to the log (Model, Firmware and IP)
Disabling the regional lock to have able to flash a firmware without the regional lock
Small fixes
24.07.2019 (3.0.1)
Small bug fixes
Added information about support for Roborock v3 (T6, S6, 1S)
09.06.2019 (3.0.0)
You can flash the robot without Wi-Fi reset (the IP and token must be filled in the setting from the menu, after saving, the setting you need to restart the application).
Logs are extended. It will show more information in case of unexpected errors.
Now, the bank details can be copied by the click on the neded line.
In case of success flashing, a window with information about me will be shown.
31.03.2019 (2.2.0)
Fixed the log block collapse.
Small fixes: mainly for iOS.
25.03.2019 (2.1.1)
Small fixes and iOS version.
14.01.2019 (2.1.0)
The code is significantly refactored and compressed.
14.01.2019 (2.0.0)
Now the application has a built-in file manager. You can select only pkg (many people tried to flash everything except pkg, not understanding what they did wrong). The "Back" button closes the file manager but does not move up one level. I'll add it in next versions.
Added new bank details to the "About" window.
13.01.2019 (1.0.2)
Now the socket closes together with the application. You won't get the error EADDRINUSE (Address already in use) when you restart the application.
12.01.2019 (1.0.1)
The window "About" can be closed with the "Back" button.
The menu can be closed with the "Back" button.
The application is now compressed at less than 1MB.
Added the current version to the "About" window.
Minimal version of Android is 4.4 (most likely the log block will be collapsed on Android 4-5, so you can see one line only).
9.01.2019 (1.0.0)
The first released version.
Known issues
java.net.BindException: bind failed: EADDRINUSE (Address already in use): or similar errors with "Address already in use" can occur if other programs use the 8080 and 8081 ports. If you cannot identify such a program, just close all programs and restart XVacuum Firmware.
If your phone has gone to the sleep, most likely the phone will stop accepting connections. The robot will return an error, since it won't be able to download the firmware;
The "Back" button closes the file manager but does not move up one level.
[Android]A file can be chosen from the internal storage (/sdcard) only
wav2pkgThe program converts wav-files to pkg-package and backward (Windows)
Unpack the program to the root of any disk (advanced users: the path must not contain any spaces or non-Latin symbols). For example: C:\wav2pkg
The instruction to make pkg-package:
Place all folders with wav-files to the "voicepacks" folder. The folders must contain only Latin symbols, digits and/or underscores. You can place any number of folders. The program converts them into separate pkg files. The path must be, for example, C:\wav2pkg\voicepacks\english\*.wav
Launch wav2pkg.bat from the wav2pkg folder
The program will start displaying information about the progress of the conversion.
Produced packages will be placed into the "voicepacks" folder and carry the names of the folders that they were converted from.
You don't need to remove pkg-files before the next launch of the program.
The instruction to extract wav-files from pkg-package:
Place all pkg-files to the "pkgs" folder. The packages must contain only Latin symbols, digits and/or underscores. You can place any number of packages. The program extracts them into separate folders. The path must be, for example, C:\wav2pkg\pkgs\english.pkg
Launch wav2pkg.bat from the wav2pkg folder
The program will start displaying information about the progress of the conversion.
Produced wav-files will be placed into folders which carry the names of the packages that they were extracted from and they will be placed into the "pkgs" folder.
You don't need to remove folders before the next launch of the program.
Download: View attachment wav2pkg.zip
Russian community of flashing of this vacuum robot
Does no one need this? Or maybe did I place the thread in the wrong forum's section? Because the thread in the russian community is very hot. The application was downloaded more than 4000 500 000 times.
Could you please explain for what I need this? I have this s50 robot, but I don't know the exact purpose of this topic. I have eu version and english voices. There is some modifications or funny voices?
.//Hack said:
Does no one need this? Or maybe did I place the thread in the wrong forum's section? Because the thread in the russian community is very hot. The application was downloaded more than 4000 times.
Click to expand...
Click to collapse
Thank you now have ssh access. Looking for some language packs now : )
Work perfectly on Gen1 !
I flashed this french sound pack
(thank Pierre in comment: link)
Thanks buddy!!! Finally found a thread in English that covers firmware flashing.
I have the Gen 2 (s50) international version and want to flash to China version in order to connect to China server.
Where do I find the latest China version firmware for s50?
Sent from my iPhone using Tapatalk
Does anyone have all the instruction lines for sound pack? I am making a pkg for dutch. I have the instruction lines for error 1-19. But I still need to have english instructions for some commands. I hope someone can help me. Otherwise how can i extraxt a pkg, so I can see what wav files are inside the pkg?
Thank you.
Dutch voice pack/Nederlandse stem
I made a dutch voice pack/Nederlandse stem voor Mi Robot Vacuum/Roborock.
https://drive.google.com/open?id=1Ttd8F0Xa2n5jrpgOMdJEkc6VzB2axFMC
I used the list with the sound instructions from here: https://4pda.ru/forum/index.php?showtopic=881982&st=3980#entry83141327
Thank you for this great apk to transfer the pkg to the vacuum cleaner.
I updated the application. I have added support of iOS
S6 FW
Any lockout for flashing s6 FW to T6 machine? Plz
mikaelivalbo said:
Any lockout for flashing s6 FW to T6 machine? Plz
Click to expand...
Click to collapse
Sorry, 1S, t6 / s6 have different encryption keys. At the moment, nobody knows them.
Thanks for the app, but I'm waiting for it to be compatible with vacuum 1s. I try this but can't send voices (the token captures ok).
I read in last post I read that isn't posible
When somebody get access to the filesystem of the vacuum and find the encryption keys We'll can make voice and firmware packs for the vacuum. Now we can flash original packs only.
.//Hack said:
When somebody get access to the filesystem of the vacuum and find the encryption keys We'll can make voice and firmware packs for the vacuum. Now we can flash original packs only.
Click to expand...
Click to collapse
Thank you! we will wait.
@.//Hack
Please link to XVacuum Firmware 3.0.0.apk
Ubimo said:
@.//Hack
Please link to XVacuum Firmware 3.0.0.apk
Click to expand...
Click to collapse
Sure, I'm going to update. Maybe today or tomorrow.
Ubimo said:
@.//Hack
Please link to XVacuum Firmware 3.0.0.apk
Click to expand...
Click to collapse
Done!
The application is updated (3.0.1)
Enjoy!