Remove All Ads from XDA

 View Poll Results: Poll closed on OP request!

Poll closed on OP request!
0 Vote(s)
Poll closed on OP request!
0 Vote(s)

[APP][REF]Video encoding GUI

444 posts
Thanks Meter: 228
By projection, Senior Member on 3rd January 2009, 11:19 PM
Post Reply Email Thread
Since there have been massive problems playing back video on the newer HTC devices, I thought I'd step in...
Below is a GUI, to ease the pain of getting nicely watchable videos on the Touch HD, Xperia, Diamond and Touch Pro.
Any device with MSM720x chipset should work, just make sure to select the correct video resolution.
I would like to give a lot of thanks to tnyynt for helping me test and find the best parameters.

Current version: 1.21

1. Download
2. Unpack the RAR to a directory of your choosing (on your computer).
3. Run Encoder.exe
4. Select the videos you would like to encode and the output folder, hit "Start!". If you like you can tweak the options, but the pre-set options will produce good video for the four devices mentioned above.
5. Once finished encoding, transfer the encoded video to your device and use Album (or WMP) to view them.

Do not use Coreplayer and complain about performance! Coreplayer can not utilize hardware acceleration yet and is slow!

If your source videos are SD (DVD, PAL etc), use the default 600 kbit/s or 500kbit/s.
If your source videos are HD (1080p/720p), use 750kbit/s.

Remember, there is absolutely no point to use higher bitrate, because the quality won't really increase and you will use more battery life with higher bitrate! Also, if you are using less than WVGA resolution, you can apply less bitrate. The approximate formula is (YourWidth*YourHeight)/(800*480)*bitrate. So as example for QVGA you would use 4x less bitrate.

Source code:
Run: svn co svn://
Anonymous access is read-only. If you wish to contribute, PM me for commit rights.
License for the code is GPLv2 for now.

If you like this tool and it works for you, please donate!
It took a lot of effort to find the optimal video settings and to code the GUI. It would also motivate me further to add some features such as hardsubbing and continue development of the tool.

Enjoy, and I await your feedback.
The Following 2 Users Say Thank You to projection For This Useful Post: [ View ] Gift projection Ad-Free
3rd January 2009, 11:20 PM |#2  
projection's Avatar
OP Senior Member
Thanks Meter: 228
Donate to Me
* Do not try to encode interlaced video (for example directly from a PAL/NTSC DVD or 1080i broadcasts), use an appropriate program to get that to progressive. There are many ways to deinterlace, and it would be out of the scope of my tool to cover them all. You are not even supposed to have such content on your computer, because you are most likely using a LCD display and all LCD displays are progressive. v1.13 remedies this a little bit, but it will not give you good results in all cases.

If you have any problems (can not encode, no output file etc):
Run Encoder.exe -debug. With that switch, it will generate a log.txt file in the same folder as it is located. Please zip and upload that log.txt file here, so I can see where the problem is.
If you don't post the log, there is most likely nothing I can do to help you, neither will I be able to fix the program, so please post logs!
Also, I am on #xda-devs @ - feel free to PM me if you like, although I am not sure when I can answer.

Current features planned:
- Drag and Drop
- DVD support
- Select language/encoding for subtitles
- Shutdown computer
- Better settings for subtitles/audio streams

If you have more ideas, please let me know.

Thank you to everyone who donated. No matter the amount. You are the ones who make this community work.
- A crate of my favorite beer delivered in person by Tauno
- €40 by 2unique (THANK YOU!)
- €25 by Adrian
- €25 by Bernard
- €25 by michel
- €23 by Ivo
- €20 by Marc
- €15 by Tomas
- €15 by Christer
- €15 by Daniel
- €15 by garry
- €10 by Khoa
- €10 by Rosen
- €10 by Angelusz
- €10 by Amit
- €10 by Reidar
- €10 by Jørgen
- €10 by Steffen
- €10 by Richard
- €10 by Cédric
- €10 by Hemant
- €10 by Christopher
- €10 by garth
- €10 by Ivan
- €10 by Alan
- €8 by Enrico
- €6 by Nick
- €6 by Peter
- €5 by Björn
- €5 by Johan
- €5 by jm
- €5 by Kenyon
- €5 by Centaurus (
- €5 by Antonio
- €5 by Joel
- €5 by Andrew
- €5 by Josh
- €5 by Stefan
- €5 by David
- €4 by Vasily (xda-dev/
- €4 by Jeroen
- €3 by Afshan
- €2 by Rishi
- €2 by Juan
- €2 by julian
3rd January 2009, 11:21 PM |#3  
projection's Avatar
OP Senior Member
Thanks Meter: 228
Donate to Me

v 1.21
-removed IVTC, was causing problems
-fixed some issues with aspectless videos
-fixed subtitles

v 1.20
-added subtitle support
-added audio stream selection
-added .flv to default list of file extensions
-added video file analysis tool
-added help button explaining the "misc. options" section
-added support for cropping the video to fit target aspect ratio (width)
-autocrop video height to resolution aspect (Album does this anyway, so it is a waste of bitrate not to)
-autoexpand video height to resolution aspect when displaying subtitles (letterboxes the movie, to use lower black bar for a part of the subtitles)
-fixed encoding failing sometimes with odd resolutions
-fixed encoding files without audio
-fixed encoding WMV9/VC-1 files

v 1.19
- Fixed encoding failures with non-standard video resolution
- Improved multi-core performance

v 1.18
- Fixed video artifacting on scene changes
- Added new mencoder binary and license

v 1.17
- Rare crash fixed, might help with A/V sync and some videos being blurry also.

v 1.16
- Worked around a mp4box bug with certain path names (reported on forum)
- Fixed an encoding bug that caused issues on playback.
- Added the results of FPS detection to log file

v 1.15
- Increased Encoding speed by ~20%

v 1.14
- Added audio normalization
- Reworked the bitrate section of the GUI
- Last pathnames used for output and input files are now remembered
- Reduced logfile size by removing the progress messages
- Made logfiles more readable by using separators
- Fixed progressbar being stuck during the first 10% of conversion

v 1.13
- Added reverse telecine (pullup). Should help with some interlaced videos.
- Added output size selection: WVGA, VGA and Custom. The program should now work on Diamond/Raphael with VGA.
- Added support for network paths. For example \\computer\disk_d\video.avi
- Some more fixes for A/V sync

v 1.12
- FPS detection, should help with some A/V sync issues
- Slightly smoother playback

v 1.11
- Autodetect and honor aspect ratios when scaling
- Downmix audio (AC3) to 2 channels
- Resample audio to 44100hz

v 1.10 BETA
- Use mencoder as backend. All decoders are built-in, filesize of download is larger, but does not rely on installed codecs.
- Adjusted video encoding settings to hopefully get rid of de-sync and scrolling problems. Quality suffered a tiny bit though.
- Removed quality option - only the middle one was really useful
- Added option to pause and resume encoding
- Added some more checks to user input
- Increased logging
- Fixed debug message

v 1.04
- Fixed problem with seeking (hopefully)
- Fixed displaying debug message when debug is already enabled
- Some more cosmetic and compatibility changes

v 1.03
- Fixed "encoding" bug, that most people were experiencing.

v 1.02
- Fixed VOB/MPG and some other formats
- Fixed bug, where selecting the output directory before any input files would result in an error.

v 1.01
- Added logging option
- Added filename checks to program startup
- Human readable message for audio encoding failure

v 1.0
- Initial Release
3rd January 2009, 11:22 PM |#4  
tnyynt's Avatar
Retired Senior Moderator
Thanks Meter: 5
Donate to Me
It's alive!
Nice job on that!

Folks, some of you (stock ROM users mainly) will still need the SD TuneUp to improve SD Card speeds.

Go play!

Later edit:
I've invited Sony Ericsson Xperia users to join this one since the two devices are so much the same! Please feed us back as per your results on this and state your device, Touch HD or Xperia! Good luck! Go play!
3rd January 2009, 11:34 PM |#5  
Senior Member
Thanks Meter: 1
iv installed sd tune up , am i correct in thinking that i just install this the once no matter how sd cards i use ?
3rd January 2009, 11:42 PM |#6  
rovex's Avatar
Senior Member
Thanks Meter: 222
Cant get it to work, it says unable to encode. Make sure you have all required codecs installed. I have installed CCP codec pack and followed the instructions. Running Vista 64bit.
3rd January 2009, 11:44 PM |#7  
Senior Member
Thanks Meter: 0
Same problem here on winXP. I deleted my codecs all in one because of this...
3rd January 2009, 11:47 PM |#8  
Senior Member
Thanks Meter: 1
My first attempt was unsuccessful due to a possible error with the codecs.
The link for the codecs you recommend wasn't working, but I found the codec pack at

AFter installing the pack I still get the unable to encode message. Now, I didn't uninstall all my codecs simply because I don't know how to! The codecs on my laptop must be all over the place and I don't know how to find them.

What should I do next? Thanks.
3rd January 2009, 11:52 PM |#9  
projection's Avatar
OP Senior Member
Thanks Meter: 228
Donate to Me
Ah... I forgot something...

Avisynth, will update first post.
Get it here:
Install it, then try again.

Should work afterwards.
4th January 2009, 12:00 AM |#10  
Junior Member
Thanks Meter: 0
install the cccp codec pack install the Avisynth and still have the same error
4th January 2009, 12:04 AM |#11  
rovex's Avatar
Senior Member
Thanks Meter: 222
Same here!
Post Reply Subscribe to Thread

blackstone, encoder, gui, touch hd, video, x1i, xperia

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes