Two weeks ago I made a little application to convert any input video to MP4 compatible with our HD Touch HD.
At the beginning it was only for spanish people. It has been grown and now it's a big aplication and I want to share it with english spoken people.
Version 2.9f:
- Now you can choose audio track in VOB files and Dual audio AVI files.
- Two new resolutions added: IPad and IPhone 4G
- A few bugs solved in SmPlayer previews
Version 2.9e:
- Now supports drag&drop. You can drop files from Explorer.
Version 2.9d:
- Four new resolutions added: 1080i: 1920x1080 | 720p: 1280x720 | Satio: 640x360 | ZuneHd: 480x272
Version 2.9c:
- Added a new video size 376x240 (IPod Nano 5G)
- Added a new profile: IPod_Nano
- Added Russian language
Version 2.9b:
- A new codec added "XVID avi". With this, you can now convert to avi files (not only mp4 files)
- Now video quality 'very high' is two times Normal Quality (before 1.5 times). It makes max quality is now 1600 kbps (before 999 kbps)
- Support for MOD video files (JVC cams)
- Added a new video size 768x576 (JVC cams)
- Added two new profiles: HD2 (for HTC HD2) and JVC (for JVC cams)
Version 2.9:
- Now uses SmPlayer (a graphic interface of MPlayer) as Standard Player to Play and preview videos.
- Modifies registry for assign Mp4ForHd as optional player for all supported video file extensions (added to 'open with' option in explorer).
Version 2.8c:
- Now supports 3gp files
- A new output video size, for standard mobiles: 176x144
- A new profile for that output resolution: Samsung
Version 2.8b:
- Now you can play any video with this program. In explorer, you must click right button of the mouse, and choose 'open with - Choose program.. - Mp4ForHD.exe'. Any video plays with MPlayer, no codecs required.
- Swedish language added
Version 2.8:
- Now in PSP conversions, if you choose X264 2pass, it really makes in two passes.
- Removed in options 'ProgressBar Method', because now it's unnecesary.
Version 2.7d:
- You can split a MP4 video file into another without reencoding. To use it, open a MP4 file and choose start and end positions. Then the 'Join Mp4' button changes to 'Split Mp4'.
Version 2.7c:
- Support for Turkish characters in subtitles (charsets cp1254 and ISO-8859-9)
Version 2.7b:
- Support for Traditional Chinese subtitles (CP950)
Version 2.7:
- Added priority support for encoding process (Idle, Normal, High and RealTime)
- Includes some example profiles (HD, HD TV Series, Diamond, IPhone, Omnia, QVGA and PSP)
- Added support for Chinesse subtitles
- Deutsch language actualiced
Version 2.6c:
- Now shows correctly the final resolution and the final video bitrate in the pending video queue. It didn't work since 2.6 version.
- A few new charsets for subtitles added.
Version 2.6b:
- 3 news charset for subtitles (cp1250,cp1251 and latin2). Cp1250 solves problem with letters š,č,ć,ž,đ.
- Solved bug that window was always on top.
Version 2.6:
- You can change drive vhere temp dir is. As default it uses unit where program is installed.
- A few remaining messages in Spanish have been changed.
- Some lng files have been renamed to avoid problem with installer in Vista (Español->Spanish, Català->Catala, Français->French)
Version 2.5c:
- Two new sizes in srt subtitles (6.5 and 7)
- Another minor bugs.
Version 2.5b:
- In Buttons without text (select,save,load,etc), is showed a Hint. Other esthetic changes.
- Danish language added
Version 2.5:
- You can select an external subtitle (srt), also in dvd, vobs and mkvs.
- Profile settings (max.resolution, codec, etc) in a new form, not in Options form.
- Autosave current pendent video queue when program exit. Autoload the next time that program is executed.
- You can save or load pendent video queue.
- If you cancel a conversion, video returns to pendent queue.
Version 2.4b:
- "Loss Quality when an importart change of frame" bug solved in X264 2 pass.
- Now subtitles in mkv videos runs correctly.
- In the edit form, the program shows the calculated videofile size in MB.
- Now in the edit form, you can change codec and max.resolution.
Version 2.4:
- Now you can encode video with ffmpeg.exe as well as mencoder.exe. It makes compatible videos with PDA and PSP. Some videos that didn't convert with mencoder, now can be encoded with ffmpeg. Ffmpeg doesn't support srt subtitles, dvd support, neither delay audio.
- You can select number of processors/threads. It's useful in Lavc, Lavc+, and ffmpeg (not auto-thread support). It can increase conversion speed in multi-core computers.
- Subtitle languages are now independent of audio languages. It's useful in Dvd and mkv, with different audio languages and subtitle languages.
Version 2.3c:
- Support for cyrillic srt subtitles
- Added Galego language
Version 2.3b:
- Now you can select the charset of the srt subtitles (ISO-8859-1 occidental, ISO-8859-2 Central Europe, and ISO-8859-7 Greek). It has been solved problem with ¿?¡! characters, with greek alphabet, and perhaps with central europe languages.
- You can select size of srt subtitles.
Version 2.3:
- A new codec named Lavc+, with more quality than Lavc, but a 30% more conversion time.
- Now in options form you can set output resolution ratio (not only Full or Crop to Device)
- You can make your own video settings profiles. Examples: HD Quality, HD TV Series, PSP, Diamond crop to Device, Diamond 16/9, etc.
- Now you can multiselect files in pending videos queue. After that, you can delete, move, or apply a profile to all the selected videos.
- A new button added, to deselect all files in pending videos queue.
- In the pending videos queue, now shows codec, bitrate, and output resolution.
- The buttons in main form, are enabled or disabled according to actual situation.
- A new button added in the Edit Page, to enable or disable video preview.
- Dutch language added.
Version 2.2b:
- Now you can select Audio Bitrate (160 kbps,128 kbps,96 kbps,64 kbps and 32 kbps)
- If Output File exists, it isn't replaced. Now the program gives it a secuential number (For example Video01.mp4)
- If conversion process is aborted, then Output File is deleted.
- French Language added.
Version 2.2:
- The program has been renamed to Mp4ForHD (Mp4 for Hand-held Devices). It's because at the beginning, it was thought for Htc HD, but now supports a lot of devices.
- 3 differents coding ways: X264 2 pass (as version 2.1), X264 1 pass (only 1 pass. Sligthly less quality, but less time to encode), and LAVC (a codec that i tested for PSP, but surprisely is supported by the Htc HD. It's ultrafast, only spends 1/4 time of X264 2 pass, although loses quality. It's ideal for TV series)
- Full support for the PSP (X264 and LAVC codecs). It creates a jpg with a miniature of an instant of the film.
- I think I have solved the problem with 'REAL' method of ProgressBar calc.
- Final resolution (when changing aspect and crop) is better calculated.
Version 2.1b:
- Now, you can select three different ProgressBar methods: Calculated (as versions 1.8..2.0), Real-Slower (15% slow conversion), and Real-Problematic (as version 2.1 that to some people doesn't run)
- Solved '000000001.jpg not found' error.
- Option 'trellis' of MEncoder has been deleted
Version 2.1:
- You can choose output crop ratio (1.33,1.44,1.55,...,2.66) as well as Full and Crop to Device (this two already present in 2.0 version)
- Added new output resolutions (Iphone,PSP,720x432,640x384,560x336 and 480x288)
- Two new bitrates profiles: Very high (normal*1.5) and Very low (normal*0.5)
- Now progress bar is exactly calculated (checks constantly MEncoder's output log).
- Since 2.0b version, cropdetect (black flags detect) is working in all computers.
- You can see all the commands send to MEncoder and MP4Box in a log box.
- Now if no DVD audio language detected, the program try to force the language assigned in options.
- DVD subtitles are now more readable, but with the same size (MEncoder can't make it larger)
- Deutch Language added.
Version 2.0:
- You can select three diferent bitrate qualities: high (normal*1.25), normal and low (normal*0.75)
- You can select 4 maximum output resolutions: 800x480, 640x480, 400x240 and 320x240
- Fixed the bug 'Division by zero'.
- Increased time to know cropdetect (perhaps it runs well to somebody, who befores not)
- A better adjust of step 1 expected time
- Italian language added
Version 1.9:
- Can ignore up and down black flags, usseful for DVDs and VOBs, and another video files.
- In DVDs and VOBs, asumes 16:9 aspect ratio
- M4V file support
- You can input an audio-delay when video and audio are slightly asynchronized
- Video is automatic scaled when width is greather than 800 (before only when video heigth was greather than 480)
Version 1.8:
- Support for avi, mp4, wmv, mkv, mpg, m2v, mov, vob, flv. Dvd directly rip included.
- Adjust bitrate to resolution output video (from 250 to 800)
- Lets crop to our HD ratio aspect (5/3), and change the input video aspect ratio
- You can add, change order, or delete videos of the video pending queue in any time.
- Supports srt subtítles (if a srt file with same name is present)
- If heigth is greater than 480, it scales video
- Shows complete information of the video to convert (resolution, framerate, duration, etc)
- If input video includes multilanguage (Dvd, vob, mkv), you can select audio language, and subtitles language.
- You can select for each video the start and end position, and preview the video.
- You can join Mp4 of same resolution (if a video is splited in two videos, you can convert each one, and after join them)
- You can select if computer hibernate/suspends or shoot down after converting process.
- If application is minimized you see actual progress.
- Multilanguage interface support (actually English, Spanish and Catalan)
If you want to traslate interface to your language, copy the english.lng file to the name desired, and then edit with notepad, changing each input for the traslated one. Please send me this file if you want it will be present in the next version.
The link to the 2.9 version setup file is here:
http://www.easy-share.com/1907885133/Mp4ForHD_v2.9_Setup.exe
http://www.megaupload.com/?d=RKYOXYRC
Here is the update to 2.9f version. Copy the five files included in the zip, to the folder where Mp4ForHd is installed.
http://forum.xda-developers.com/attachment.php?attachmentid=346797&d=1277072093
I hope you enjoy it.
Regards.
thx seems to be a great work
i gonna give a shot
Akhara said:
thx seems to be a great work
i gonna give a shot
Click to expand...
Click to collapse
Try it. In the spanish forums all the people use it instead 'HTC Touch HD Video Encoder'.
It's absolutly freeware, no donations admited.
can i use it for htc diamond??
does it support vga rez??
intel286 said:
can i use it for htc diamond??
does it support vga rez??
Click to expand...
Click to collapse
Yes, HTC Album of Touch Flo 3D makes the job. If you convert a video in a maxim of 800x480 you can view it perfectly in Diamond, at full screen, or with black bands.
yeah i need it withou black flags(bands), how can i get this??
Seems to work really well. The output is slightly worse than the output from Projections encoder, but its smoother. Its ideal for TV rips or non HD sources. Trying with an HD source file now.
Thanks for sharing this great utility
rovex said:
Seems to work really well. The output is slightly worse than the output from Projections encoder, but its smoother. Its ideal for TV rips or non HD sources. Trying with an HD source file now.
Click to expand...
Click to collapse
What about your HD source try?
Damn it is slow! How long does it take to convert a 700mb movie?
jouh said:
Damn it is slow! How long does it take to convert a 700mb movie?
Click to expand...
Click to collapse
About 1 hour. It depends of your computer.
probably no multicore support?
does anybody know how to convert film without black "flags" on bootom and top?
hey, Jandre, could you please upload it to rapishare or megaupload? thanks. can not download on mediafire.
is it me....or do i not see any output files in the output folder....
Rapidshare mirror: http://rapidshare.com/files/192980069/Mp4HtcHD_v1_1_.8_Setup.exe
My first time listing a mirror, hope I did that right!
JohnQ said:
hey, Jandre, could you please upload it to rapishare or megaupload? thanks. can not download on mediafire.
Click to expand...
Click to collapse
Here you are:
http://www.megaupload.com/?d=V65LYV4Q
As Mp4HtcHD user i highly recommend it, posted before in spanish forums and works like a charm.
Rgds,
Can you please at .m4v to your file filter.
Thats the extention for apple's DRM-free video from the itunes store, and your app converts it fine after the file is added (with some difficulty).
Surur
This is great, it converts my files without any problems. Best encoder I've seen so far. This deserves a sticky!
Use internal media player to play or use 3rd party player to play best?
I was just wondering if anyone one is making a custom media player for windows phone 7. It would be nice to ba able to play avi and other video format like yxflash does for iphone and android.
becknise said:
I was just wondering if anyone one is making a custom media player for windows phone 7. It would be nice to ba able to play avi and other video format like yxflash does for iphone and android.
Click to expand...
Click to collapse
There's a few reasons this won't happen without an MS update:
1. No way of getting files onto the device
2. WP7 by default only supports this list of codecs, which afaik Zune copies directly onto the phone without encoding for playback anyway.
3. No native code, so pretty much no existing codec libraries can be used
Unless, of course the devs here can work out an unrestricted way of running native code!
It's not, actually, 100% true.
1. You can get files to the app's isolated storage file. Of course you need some additional desktop/web solution for that. Also, you can play streaming video in different formats: rtp, fragmented mp4, LiveStreaming etc.
2. Fortunately WP7 supports H.264 for video. For most cases it's enough (you just need a proper container parser).
3. Yes, it's a minus but the custom MediaStreamSource, 1 GHz CPU, lot of RAM and possibility to port java code to C# give you a good chances ;-)
P.S. 4 example, I can play a lot of containers including avi/mp4/mkv. But I can't share/publish code - it's not my own property...
sensboston said:
It's not, actually, 100% true.
1. You can get files to the app's isolated storage file. Of course you need some additional desktop/web solution for that. Also, you can play streaming video in different formats: rtp, fragmented mp4, LiveStreaming etc.
2. Fortunately WP7 supports H.264 for video. For most cases it's enough (you just need a proper container parser).
3. Yes, it's a minus but the custom MediaStreamSource, 1 GHz CPU, lot of RAM and possibility to port java code to C# give you a good chances ;-)
P.S. 4 example, I can play a lot of containers including avi/mp4/mkv. But I can't share/publish code - it's not my own property...
Click to expand...
Click to collapse
Of course with workarounds, anything is possible!
This won't happen though, because nobody is going to be able to port enough decoders to a MediaStreamSource implementation to make it a viable playback solution like,e.g. VLC
Plus I sure wouldn't want half my media going through a webserver for obvious reasons
And I would say that while h264 is quite prominent now, XviD playback would be the main codec
Probably, home based video streaming solution (using Apache + third party SmoothStreaming implementation, http://smoothstreaming.code-shop.com/trac/wiki) will be good. Not too hard to implement but very hard to sell
Hi guys,
Since Tegra 3 chip has H264 hardware encoder and decoder, just curious how I can use them to do H.264 decoding and encoding in my Metro app or desktop app. Any documents or sample are welcomed. Thank you very much.
Assuming it's similar to WP7 (which I would hope so, but I haven't done any work with codecs in WinRT yet), just use the built-in encoder/decoder libraries and they will be run through the hardware acceleration. For example, if you attempt to record video from the camera, it should automatically encode using the hardware.
Yes. Hardware accelerator is already implemented in drivers. And not only for H264, audio decoding is also accelerated.
If you'll use MS official API and not try to decode data yourself - you'll automatically get accelerated.
Hi,
does anyone else has a problem with playing dolby vision movies? Normal hevc 10bit hdr files are playing fine (although very dark). But dolby vision files ether don't have the correct colors (the typical purple/green color issues)
https://imgur.com/8Y8oUhH
or, if dolby vision gets recognized, it gets cut off on the top and bottom. The resulting aspect ratio is something like 1:6, so it is really really bad
https://imgur.com/1jtUhTb
both screenshots from the same movie
I tried the different dolby profiles using the dolby muxer from thier github (dvhe.05,dvhe.07,dvhe.08...).
Also i tried of course different players (kodi, kodi hdr edition, mx player, mpv, build in) but they all just use the hardware decoding and therefore have the same problem.
Also the ONLY file that i found that worked correctly was a demo from netflix (http://download.opencontent.netflix.com/?prefix=TechblogAssets/Meridian/encodes/)
Container also doesn't matter (thinking that metainfo has been given to the hardware decoder for correct aspect ratio). I tried ts, m2ts, matroska, mp4...
The same happens to me, unfortunately. Tried Plex too and has the same crop/colors error.
i found a solution for a few movies (e.g. some movie about a guy that has a license to kill).
If you have a movie in DV in an mkv container and the pad does not recognize it (puple/green colours) look first with mediainfo for the codec id. If it says on Codec ID dvhe this will not work, if it says V_MPEGH/ISO/HEVC the following will work. (Both videos report the same HDR format "Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU")
demux the mkv to a hevc and audio/subtitle files (ffmpeg, tsmuxer,...)
mux it to an mp4 using the dolby muxer from github
mp4muxer --dv-profile 5.09 -i video.hevc -i audio.ac3 -o out.mp4
Add subtitles or whatever you want.
I have no clue why the aspect ratio is wrong on the dvhe files, i blame the HW decoding driver of the Pad.
Did you download the extensions?
1. Dolby Vision Extensions
2. HEVC Video Extensions
Available on windows store
Make sure to play DV files using windows video players, since DV is proprietary, most video players don't support it (even if you've got the extensions installed)
manu_jedi said:
Hi,
does anyone else has a problem with playing dolby vision movies? Normal hevc 10bit hdr files are playing fine (although very dark). But dolby vision files ether don't have the correct colors (the typical purple/green color issues)
https://imgur.com/8Y8oUhH
or, if dolby vision gets recognized, it gets cut off on the top and bottom. The resulting aspect ratio is something like 1:6, so it is really really bad
https://imgur.com/1jtUhTb
both screenshots from the same movie
I tried the different dolby profiles using the dolby muxer from thier github (dvhe.05,dvhe.07,dvhe.08...).
Also i tried of course different players (kodi, kodi hdr edition, mx player, mpv, build in) but they all just use the hardware decoding and therefore have the same problem.
Also the ONLY file that i found that worked correctly was a demo from netflix (http://download.opencontent.netflix.com/?prefix=TechblogAssets/Meridian/encodes/)
Container also doesn't matter (thinking that metainfo has been given to the hardware decoder for correct aspect ratio). I tried ts, m2ts, matroska, mp4...
Click to expand...
Click to collapse
Use aPlayer (available on Play Store). Works fine with DV files.
joy_2001 said:
Did you download the extensions?
1. Dolby Vision Extensions
2. HEVC Video Extensions
Available on windows store
Make sure to play DV files using windows video players, since DV is proprietary, most video players don't support it (even if you've got the extensions installed)
Click to expand...
Click to collapse
You are talking about a windows PC, this is the xiaomi pad 5 forum.
hackslash said:
Use aPlayer (available on Play Store). Works fine with DV files.
Click to expand...
Click to collapse
On my device aPlayer shows a black screen on DV only files (i didn't test it with files which contain as a fallback normal hdr, like 4K BD)
Tried just player?
Just (Video) Player – Apps on Google Play
Open source video player with no Bluetooth lag and support for various codecs
play.google.com
Rkm94 said:
Tried just player?
Just (Video) Player – Apps on Google Play
Open source video player with no Bluetooth lag and support for various codecs
play.google.com
Click to expand...
Click to collapse
Yes, same result.
manu_jedi said:
Yes, same result.
Click to expand...
Click to collapse
same result as in wrong colour or aspect ratio?
also specify the OS version you are on, because that's weird.
Rkm94 said:
same result as in wrong colour or aspect ratio?
also specify the OS version you are on, because that's weird.
Click to expand...
Click to collapse
Sorry i gave up on DV. This thread is now a year old and i am on a custom rom. So i don't really want to say that it does not work as i didn't try it for some time with miui (like half a year). But Just Player uses Exoplayer which is used by a lot of players (exceptions are mpv and vlc i think).
Currently on ArrowOS:
mpv (by far the best player in my opinion): wrong colors, the fix is afaik not yet merged in the android release https://github.com/mpv-player/mpv/issues/7326
although this does also not work on my pad
vo=gpu-next has no effect on DV format files with hwdec=mediacodec-copy · Issue #10287 · mpv-player/mpv
Important Information Reproduction steps I'm using a custom build mpv-android with the latest libplacebo (> 4.192.0) and ffmpeg (>5.0). The build is from the following locations: https://www.reddit...
github.com
vlc: wrong colors
just player (and any exoplayer): black screen on Arrow (but i think it had wrong colors on miui)
Thanks for your reply anyways
manu_jedi said:
Sorry i gave up on DV. This thread is now a year old and i am on a custom rom. So i don't really want to say that it does not work as i didn't try it for some time with miui (like half a year). But Just Player uses Exoplayer which is used by a lot of players (exceptions are mpv and vlc i think).
Currently on ArrowOS:
mpv (by far the best player in my opinion): wrong colors, the fix is afaik not yet merged in the android release https://github.com/mpv-player/mpv/issues/7326
although this does also not work on my pad
vo=gpu-next has no effect on DV format files with hwdec=mediacodec-copy · Issue #10287 · mpv-player/mpv
Important Information Reproduction steps I'm using a custom build mpv-android with the latest libplacebo (> 4.192.0) and ffmpeg (>5.0). The build is from the following locations: https://www.reddit...
github.com
vlc: wrong colors
just player (and any exoplayer): black screen on Arrow (but i think it had wrong colors on miui)
Thanks for your reply anyways
Click to expand...
Click to collapse
Well, this is embarrassing. I only looked at the month and replied since it was Nov. Thank you for all the additional info
manu_jedi said:
Sorry i gave up on DV. This thread is now a year old and i am on a custom rom. So i don't really want to say that it does not work as i didn't try it for some time with miui (like half a year). But Just Player uses Exoplayer which is used by a lot of players (exceptions are mpv and vlc i think).
Currently on ArrowOS:
mpv (by far the best player in my opinion): wrong colors, the fix is afaik not yet merged in the android release https://github.com/mpv-player/mpv/issues/7326
although this does also not work on my pad
vo=gpu-next has no effect on DV format files with hwdec=mediacodec-copy · Issue #10287 · mpv-player/mpv
Important Information Reproduction steps I'm using a custom build mpv-android with the latest libplacebo (> 4.192.0) and ffmpeg (>5.0). The build is from the following locations: https://www.reddit...
github.com
vlc: wrong colors
just player (and any exoplayer): black screen on Arrow (but i think it had wrong colors on miui)
Thanks for your reply anyways
Click to expand...
Click to collapse
is it worth to go for the ArrowOs ? The latest MIUI update worsen my tablet performance, it's so frustrating