Google Allows Search Queries To Interact With Apps

Android 5.0 Lollipop brings lots of new features that are quite useful for end users and … more

Lenovo Officially Owns Motorola, Following ~$3 Billion Deal

Google is now officially no longer the owner American phone manufacturer … more

Microsoft Band Fitness Tracker Announced, Available

The wearable market has been around for a few years, with Pebble and Samsung smartwatches … more

Forums Added for the Oppo R5, Oppo N3, and Xiaomi Redmi Note

Just yesterday, Oppo unveiled a pair of rather unique smartphones, the Oppo … more
View Poll Results: Poll closed on OP request!
Poll closed on OP request! 0 0%
Poll closed on OP request! 0 0%
Multiple Choice Poll. Voters: 544. You may not vote on this poll

Post Reply

[APP][REF]Video encoding GUI

OP projection

3rd January 2009, 11:19 PM   |  #1  
projection's Avatar
OP Senior Member
Flag Tartu
Thanks Meter: 224
 
441 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Introduction:
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


Instructions:
1. Download http://gm.mainframe.no/stuff/Encoder.rar
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://sirius.aai.ee/xda/Encoder/trunk
Anonymous access is read-only. If you wish to contribute, PM me for commit rights.
License for the code is GPLv2 for now.

Support:
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.
Last edited by projection; 15th October 2009 at 10:35 PM.
The Following User Says Thank You to projection For This Useful Post: [ View ]
3rd January 2009, 11:20 PM   |  #2  
projection's Avatar
OP Senior Member
Flag Tartu
Thanks Meter: 224
 
441 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Notes:
* 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 @ irc.freenode.net - feel free to PM me if you like, although I am not sure when I can answer.

Future:
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.

Donations:
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 (4pda.ru)
- €5 by Antonio
- €5 by Joel
- €5 by Andrew
- €5 by Josh
- €5 by Stefan
- €5 by David
- €4 by Vasily (xda-dev/4pda.ru)
- €4 by Jeroen
- €3 by Afshan
- €2 by Rishi
- €2 by Juan
- €2 by julian
Last edited by projection; 25th March 2009 at 03:55 PM.
3rd January 2009, 11:21 PM   |  #3  
projection's Avatar
OP Senior Member
Flag Tartu
Thanks Meter: 224
 
441 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Changelog:

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 4pda.ru 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
Last edited by projection; 23rd January 2009 at 09:23 AM.
3rd January 2009, 11:22 PM   |  #4  
tnyynt's Avatar
Retired Senior Moderator
Thanks Meter: 5
 
2,270 posts
Join Date:Joined: Jun 2007
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!
Last edited by tnyynt; 4th January 2009 at 09:35 PM.
3rd January 2009, 11:34 PM   |  #5  
Senior Member
Thanks Meter: 1
 
125 posts
Join Date:Joined: Dec 2008
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
 
1,129 posts
Join Date:Joined: Nov 2008
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
 
101 posts
Join Date:Joined: Dec 2008
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
 
119 posts
Join Date:Joined: Sep 2008
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 http://www.soft82.com/get/download/w...ty-codec-pack/

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
Flag Tartu
Thanks Meter: 224
 
441 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Ah... I forgot something...

Avisynth, will update first post.
Get it here: http://downloads.sourceforge.net/avi...9&big_mirror=0
Install it, then try again.

Should work afterwards.
4th January 2009, 12:00 AM   |  #10  
Junior Member
Thanks Meter: 0
 
26 posts
Join Date:Joined: Dec 2005
Unhappy
install the cccp codec pack install the Avisynth and still have the same error

Post Reply Subscribe to Thread

Tags
blackstone, encoder, gui, touch hd, video, x1i, xperia
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes