Audio resampler quality in new Android builds? (with test files) - Android Software Development

I've only recently realized that new versions of Android upsamples all the audio it plays to some high sample rate like 176.4 or 192kHz. Now, how good this sounds obviously depends on how good the resampler algorithm chosen is
Will those of you with Android 5 or above test out the following two audio files for me?
https://www.dropbox.com/s/abnqmqvlj94r5lx/44.1kHz 0.8 sweep linear.flac?dl=0
https://www.dropbox.com/s/wvgmomwrcc6yosh/48kHz 0.8 sweep linear.flac?dl=0
These are simply tone sweeps from 0 to 22 and 24kHz respectively, encoded at 44.1 and 48kHz sample rates respectively.
To test these files I would recommend using Poweramp with Direct Volume Control (in Audio->Advanced Tweaks) turned off. This way we're deferring everything to the Android audio system.
They shouldn't sound any different (apart from the 48kHz version having a few more seconds of inaudible ultrasonics at the end) on a proper system.
What you might hear instead is one of the files having warbling over/undertones going up and down, especially toward the end when the actual tone being played goes up into inaudible supersonic territory.
If you do get this kind of result, can you note down for me:
-Phone model
-Android version
-copy of build.prop file, if available--particularly the number that the key af.resampler.quality is set to, if present
-if you run Viper4Android, you can also go to its Driver Status and directly note the output sample rate being used when playing each file.
Let's push the smartphone developers to make resampling artifacts a matter of the past :cyclops:

Sony Z3TC stock kernel/rom, V4A displays system sample rate locked at 48khz, when playing 44.1khz sine sweep introduces audible warbling resampler artifacts in the 44.1khz sampled file. curiously poweramp alpha with sox resampler option doesn't seem to help at all.

Anyone else? There were reports of setting af.resampler.quality values (should be 4 for highest quality) breaking audio system in Android 5 and above. Am curious.
I think build.prop editor can be installed and run to read the value of af.resampler.quality (if exists) without root. At least that's what I found when I revoked root permissions for build.prop editor on my phone.

Hi @Joe0Bloggs
I'm using player pro as music player. The resampling settings I can find is attached below. Why device resampled is mentioned as variable quality ? Should I stick with SW resampler or change it to device resampler ?
PS: both files are playing the same

ashifashraf5 said:
Hi @Joe0Bloggs
I'm using player pro as music player. The resampling settings I can find is attached below. Why device resampled is mentioned as variable quality ? Should I stick with SW resampler or change it to device resampler ?
PS: both files are playing the same
Click to expand...
Click to collapse
Because device resampling means handing over control of resampling to the device, in which case quality and power consumption are dependent on device and system settings.
If you want to test how the device itself is handling resampling, you should try the device resampling option while playing those two files.

Joe0Bloggs said:
Because device resampling means handing over control of resampling to the device, in which case quality and power consumption are dependent on device and system settings.
If you want to test how the device itself is handling resampling, you should try the device resampling option while playing those two files.
Click to expand...
Click to collapse
Tested as you said and both files are playing the same with device resampler. (Long pause at end)
I'm using Zuk Z1 running official CM13 snapshot

Related

VidsOpt v0.2.4 - Fast MP4 Muxer/Converter

{
"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"
}
VidsOpt_0.2.4.rar (16.3MB) http://mediafire.com/?depxt4zyvpwel
2MP4 - Windows script to convert/remux videos to MP4. Subtitles are supported in both hard and soft formats.
Goals
. Fast - Re-encode only when needed. Selectable encoding speed.
. Flexible - Process multiple folders as well as single videos.
. Set-n-forget - Batch and nested folder processing.
. Simple - Drag-drop operation. One plain-English menu.
Supported video formats: MKV MP4 M4V MOV WMV AVI MPEG1 MPEG2 FLV RM RMVB OGM
Install
. AVISynth (http://sourceforge.net/projects/avisynth2)
. FFDShow (http://videohelp.com/tools/ffdshow), enable AC3/DTS/AAC support in Audio Decoder Config
. Haali Splitter (http://haali.su/mkv)
Use
1. Unpack. Create shortcut to 2MP4.CMD on desktop (don't drag it to the desktop).
2. Drag-drop one or more video files and/or folders onto shortcut.
3. Change settings from pop-up menu as needed. Enter 'S' to start.
Script Options
. Recode H.264 video
AUTO: H.264 video up to 720p high profile and 1080p baseline profile are not recoded. YES: Always recode H.264. NO: Never recode H.264. Note: Non-H.264 videos are always recoded.
. Video quality (19-25, lower number=higher quality/bitrate, default=21)
The default 21 should be the considered as max for Tegra 2 tablets at 720p. There may be stutter in some 720p high action scenes. Suggested setting for Tegra 2 is 22 for 720p high-action movies. SD-sized movies have more leeway and can use 21 or better.
. Video type (LIVE/cartoon/mixed)
The encoder has different tunings for live-action videos and cel-shaded animations (animes). For cel-shaded content, use the Cartoon setting. For any other content, including 3D animations (which most current animated movies are), use Live. If you are converting a batch of live-action & cartoons, use Mixed.
. H.264 profile (HIGH/main/baseline)
High has best compression efficiency but higher playback requirement. Baseline has low playback requirement, but size will be 10-20% larger than High. Use Baseline as last resort for smooth playback. Main is between High and Baseline with respect to size and playback smoothness.
. Encode speed (VERYFAST..veryslow)
Suggested use is MEDIUM for best compromise between speed and quality, VERYFAST for mobile viewing, and VERYSLOW if you have lots of time. There are also intervening settings to taste. Details: VeryFast is twice as fast as Medium, but quality can be slightly worse depending on content. VerySlow has the same quality as Medium at about 10-20% smaller size, but takes 5 times longer. Do not use VerySlow for mobile devices, as higher compression settings may affect playback smoothness.
. Maximize audio volume
Maximizes audio volume without clipping. Enable this if audio is too quiet.
. Burn-in subtitle (Advanced Option)
By default, script extracts any embedded subtitles to external standalone files. If this option is enabled, the script will take the first eligible subtitle and burn it into the video. Subs can be of SRT, ASS, SSA, or VobSub (bitmap) format. Video recoding is mandatory. Subtitle is selected in this order: external, PrefLang embed, AltLang embed, or no-tag embed. If there are multiple eligible subtitles and you want one different from that selected, remux using MKVToolnix (see Notes below) and remove all except the desired subtitle.
. Autocropping (Advanced Option)
Crop black bars if exist. This uses a less efficient method, so enable only when needed.
. Variable framerate encoding (Advanced Option)
The script encodes in constant framerate (CFR) by default. Some videos (animes/hybrid/rmvb) use variable framerate (VFR). If a VFR video is recoded, enable this option, else audio will be out-of-sync (OOS). There's no foolproof way to determine if a video is VFR in advance, so if video is recoded and sound is OOS, enable this setting and try again. Note: This setting only matters when video is recoded. If video is only remuxed, correct framerate is always retained.
Notes
. Audio and subtitle tracks are selected by their language ID. Default is English for both preferred and alternate language. To change, edit 'PrefLang=eng' & 'AltLang=eng' settings in script. Find your language country code here (http://loc.gov/standards/iso639-2/php/code_list.php). ISO 639-2 3-letter code is used. Where there are 2 codes available, use the "B" (bibliographic) code.
. Text (SRT/ASS/SSA) subtitles are selected in this priority: external sub file, embedded sub in preferred language, embedded sub in alt language, embedded sub w/o language tag. Once a sub is found, then lower priority subs are ignored. Note: Any attachment in a MKV (font embeds, cover art, chapters) are also extracted for future use.
. Audio track selection: If a subtitle is available, the first audio track is selected. If no subtitle, then a PrefLang audio track is selected if available, else an AltLang audio is selected. If no Pref/AltLang audio and no sub are available, the first audio track is simply selected. [Note: If audio track has no language tag, the 1st track is selected.] The intent here is that subs are preferable to dubs.
. To manually select a different audio track: Remux to MKV (see below); uncheck undesired audio tracks to make new copy with only the desired audio track. Drop the newly-muxed copy onto the script.
. The number of items that can be batch selected at one time is limited. If processing 20+ files, put them into a folder and drop the folder. Multiple folders can be dropped.
. Video encoder used is 32-bit x264cli, which runs on both 32- and 64-bit systems. To get 10-15% more encoding speed on 64-bit systems, get the 64-bit x264.exe from http://x264.nl and copy over the existing executable.
. The script relies on the host system to provide format splitter and audio codec support.
- [XP and Vista only] To convert MOV/M4V, install QT Lite (http://free-codecs.com/download/QT_Lite.htm).
- To convert FLV, install FLV splitter (http://videohelp.com/tools/FLV_Splitter), and enable FLV decode in FFDShow video decoding options.
- To convert RM/RMVB, install Real Alternative (http://afterdawn.com/software/audio_video/media_players/real_alternative.cfm).
. Remuxing to MKV: Many file formats can be quickly converted to MKV container before being fed to the script, which can solve many problems. To remux to MKV: Run MMG.EXE in \MKVTOOLNIX folder, drag-drop video onto app, click 'Start Muxing'.
Changelog
0.2.4
. Add autocropping
. Bug fixes & refinements
FAQ
Q #1: How long does it take to convert to MP4?
For a simple remux, seconds. For audio-only recoding, about 15X (1min processing per 15min run-time). For both audio & video recoding, between 1-5X, depending on host PC and input/output resolutions.
Q #2: The script ran for a bit and disappeared.
It crashed. A common reason is that the filename has special characters: exclamation point (!), ampersand (&), or carot (^), among others. Temporarily rename using simple alphanumeric characters. Note: Script is designed to handle Unicode (UTF-8) characters.
Q #3: It still doesn't work!
The majority of problem videos stem from the weird muxers used to create them. A possible solution is to remux the video to MKV (even if they're already in MKV) if possible. Run MMG.EXE in \MKVTOOLNIX folder, drag-drop video onto app, click 'Start Muxing'. The MKVToolnix app can remux many common formats to MKV.
Q #4: Still no joy!
Drop the video on the script and select the 'View Specs' option, then Start. This will dump the video specs into a text file. Post the specs dump, along with whatever error msgs you encountered (or if the console crashes and simply disappears). As a last resort, post a sample clip of the video.
Q #5: What are the best settings for the [insert device name]? My converted videos don't play smoothly!
The on-demand CPU governor for Android may not be optimal for playback. You can manually set CPU speed for movie playback per this discussion thread, http://forum.xda-developers.com/showthread.php?t=1111156
By default, the script does not recode H.264 720p high profile or 1080p baseline profile. If your device can't play a video smoothly after trying the above, then you need to recode it (see TIPS section below).
Q #6: My videos convert, but the sound is out-of-sync (OOS), or playback is too fast/slow.
Some animes, digicams, and hybrid contents use variable framerate (VFR). The script encodes in constant framerate (CFR) by default. If audio is OOS, enable VFR encoding in Advanced Options. VFR encoding is automatically enabled for RM/RMVB videos.
There may be other OOS instances. VFR aside, many videos are simply badly created, and require specific workarounds that lie outside the scope of the script.
Q #7: My video has 10 subtitle tracks. Why doesn't the script extract them all?
Only subtitles in the designated preferred or alternate language are extracted. Only text subtitles (SRT/ASS/SSA) are extracted.
The script can process up to 8 sub tracks. If the desired sub tracks lie outside of this range, remux to MKV (cf. Q #3), and remove extraneous tracks beforehand.
Q #8: The sub doesn't show up in playback!
Check your media player to see if it can make use of external subs; some do. Don't forget to rename the sub track to be the same as the video.
Q #9: The ASS/SSA sub doesn't display properly (or not at all).
Some Android players support external ASS/SSA subs. But if the sub requires an embedded font and there isn't a system font substitute, characters will display as blocks. The script extracts embedded fonts, but current players cannot make use of them. A workaround is to enable subtitle burn-in from Advanced Options.
Q #10: I'm confused with how the audio and subtitle tracks are chosen.
If a subtitle in the designated preferred/alternate language is available, the first audio track is selected, as it's preferable for foreign-language videos to be subbed than dubbed. If the first audio track is in a different language than the pref/alt settings, and no subs are available, then a dubbed track is selected if available. The script can process up to three audio tracks.
Q #11: I changed the default output path, but the output never shows up there!
Do not put quotes around the path. Also, if the path has special characters like exclamation point (!), ampersand (&), or carot (^), among others, the script will get confused. Stick to basic alphanumeric characters. This applies to filenames as well.
Q #12: Can I use this script to convert my DVD/Blu-ray?
The script does not process DVD (IFO/VOB) or Blu-ray (M2TS) files. You can try my DVD script here, http://forum.xda-developers.com/showthread.php?t=978529
Q #13: I'm running Win XP/Vista, how do I get WMP 11 to recognize my MP4 so I can stream to my device?
Win XP & Vista require a registry patch for WMP 11 to recognize MP4. Win7 supports MP4 format natively.
32-bit: http://hardcoreware.net/files/v8-WMP11-MP4-M4V-M4A.reg
64-bit: http://hardcoreware.net/files/v8-WMP11-MP4-M4V-M4A-x64.reg
TIPS:
. Tegra 2 on Android 3.1: If playback isn't smooth, set Recode=YES. Suggested settings are Quality 22, High profile, and VeryFast or Medium speed. To ensure smooth playback, you can try Quality 23, or Baseline profile, or a smaller resolution, or a combination thereof.
. If running 64-bit Windows, grab the 64-bit x264.exe executable at (http://x264.nl) and copy over the existing file (get the 8bit-depth exe, not the 10bit one). This'll net 10-15% faster speed.
. Don't use a video quality number lower than the default (lower number means higher bitrate), unless you are sure you can see the difference. Higher bitrate means higher playback requirement, which can result in playback stutter. 21 is a good default; you can also try 22 or 23.
. If there are many videos to convert, especially if video recoding is involved, put them all in a folder and drop the folder onto the script. Let the script run overnight.
TECH NOTES:
. For most operations, the script is self-contained, ie it uses ffmpeg and doesn't require the installed software packages. Two exceptions: a) RM/RMVB isn't supported by ffmpeg and uses DirectShow; b) audio tracks w/ 7+ channels can't be downmixed by ffmpeg, and also uses DirectShow.
Uploaded...
How to make it start?
i have already installed AVISynth and FFDShow .
But when i click on XYZ2MP4.CMD shortcut created on Desktop it shows black screen with written-" cannot locate AVISynth.If not already installed get at ******.
Else reinstall to default location"
What it means? What m i doing wrong?
The script checks for the location of the AVISynth uninstall.exe in C:\Program Files\AVISynth\ for 32-bit systems, or C:\Program Files (x86)\AVISynth\ for 64-bit systems. It reads the env variable to determine the location of the Program Files folder.
Navigate to this location and see if the Uninstall.exe file exists. If you run a non-English version of Windows, the pathnames may be different (although it should've been accounted for).
I had the same issue as techpal above.
I think there is a problem in where it searches for AVIsynth. The default installation folder is "AviSynth 2.5" in the program files folder. The XYZ2MP4.cmd file seems to search for "AVISynth" in the program files folder. I edited the cmd to look for "AVISynth 2.5" and it worked after that.
Here's the new line (line 102 in the original):
if defined ProgramFiles(x86) (set "AVSDir=%ProgramFiles(x86)%\AVISynth 2.5") else set "AVSDir=%ProgramFiles%\AVISynth 2.5"
Click to expand...
Click to collapse
Thanks for the correction. Script is updated.
Ya ewcrider is right.
Yea, I just changed the folder name to just "AviSynth".
I prefer GUI because I sure as hell dont have a deep knowledge of audio/video codecs/filters.
uh I have a problem after I made my video into a .mkv. The script gives me a error about the audio stream. I would upload a sample but I can't right now because of my extremely slow upload speed.
General
Unique ID : 227734697504464257626122901304819126136 (0xAB541B79FA49352584C7944A89550F78)
Complete name : C:\Users\Kippui\DOWNLO~1\Lie.To.Me.E03.110516.HDTV.X264.720p-HANrel.mkv
Format : Matroska
File size : 1.53 GiB
Duration : 1h 4mn
Overall bit rate : 3 411 Kbps
Encoded date : UTC 2011-05-30 19:33:18
Writing application : mkvmerge v4.8.0 ('I Got The...') built on May 24 2011 03:12:58
Writing library : libebml v1.2.0 + libmatroska v1.1.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 4mn
Bit rate : 3 000 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.109
Stream size : 1.32 GiB (87%)
Writing library : x264 core 50 svn-569
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=5 / brdo=0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / chroma_qp_offset=0 / slices=1 / nr=0 / decimate=1 / bframes=2 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=2 / wpredb=1 / bime=0 / keyint=250 / keyint_min=25 / scenecut=40 / rc=abr / bitrate=3000 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Muxing mode : Header stripping
Codec ID : A_AC3
Duration : 1h 4mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 24ms
Stream size : 176 MiB (11%)
Make sure AC3/DTS/ACC support is enabled in the FFDShow Audio Decoder Option. By default they may be turned off. The script relies on DirectShow filter support to convert any audio. Restart your system to make sure.
To find out if your system supports AC3/DTS, try the sample here on the Windows Media Player (not VLC or a player with built-in codecs).
http://www.kellyindustries.com/sounds.html
Try renaming your filename to Test.mkv, and see if the filename is a problem.
I replicated your problem. You can't just rename "AVISynth 2.5" to "AVISynth", because the program was installed to the first path, not the second. Change it back to "AVISynth 2.5", and grab the 0.1.1 updated script.
Still i cant start. When i click on .CMD file on desktop black screen comes for a fraction of second and then goes awayand then nothing happens.
You don't click on the CMD script. You need to drag-drop a movie file or folder onto it. Without input (or a valid input), the script simply closes.
Ok now i made it to start by dragging files. But it gives error about cant find Audio Stream.
e.mote said:
I replicated your problem. You can't just rename "AVISynth 2.5" to "AVISynth", because the program was installed to the first path, not the second. Change it back to "AVISynth 2.5", and grab the 0.1.1 updated script.
Click to expand...
Click to collapse
YES thank you! I love you for this because I can't get handbrake to work for some reason. Finally I have a way to quickly get my 720p files working on my xoom
I had to actually reinstall it to get the script to work because renaming it back didn't work for me.
Edit: Techpal reinstall AvySynth if you renamed it because that did it for me
Thanks for the positive report. What type/size of videos are you converting, and how long do they take to convert on your system? The script should report the time lapsed per file processed. I like to get feedback on the execution speed for various operations.
e.mote said:
Thanks for the positive report. What type/size of videos are you converting, and how long do they take to convert on your system? The script should report the time lapsed per file processed. I like to get feedback on the execution speed for various operations.
Click to expand...
Click to collapse
I X'd out of the window but my orginal file is the same one that is posted above
it took 5-6 minutes(guesstimate?), i converted the same file I posted earlier above using default settings. I'm converting the same file again trying to get slightly better video quality(19 instead of 21)
what settings do I need for the BEST quality for xoom 3.1? Should I keep it high and not main/baseline?
Test 1: 4:19 with everything default except for 19 instead of 21
Test 2: 6:11 ^^ just the next episode from the first file
Installed again but stlll shows error that cant find audio stream, could not parse WAV file.
The high/main/baseline is only if the video is recoded, which yours wasn't. On Recode=AUTO, it doesn't recode the video for 720p H.264, or 1080p baseline profile. Only the audio is recoded to stereo AAC (from your video's stereo AC3).
The best quality is when you don't have to recode the video. Only recode the video (Recode=YES) if it can't be played smoothly on the Xoom. Video recoding takes substantially longer.
Read the FAQ for further tips on recoding. Stick with High or Main. Use Baseline as a last resort. These don't affect quality. Baseline is more playable, but has larger file size.
e.mote said:
The high/main/baseline is only if the video is recoded, which yours wasn't. On Recode=AUTO, it doesn't recode the video for 720p H.264, or 1080p baseline profile. Only the audio is recoded to stereo AAC (from your video's stereo AC3).
The best quality is when you don't have to recode the video. Only recode the video (Recode=YES) if it can't be played smoothly on the Xoom. Video recoding takes substantially longer.
Read the FAQ for further tips on recoding. Stick with High or Main. Use Baseline as a last resort. These don't affect quality. Baseline is more playable, but has larger file size.
Click to expand...
Click to collapse
oh ok thanks
going to do more videos

Media_profile.xml modifications

I was looking at the media_profile.xml file from the Xoom forums (posted and edited by bracken21, Thanks for the work) and noticed that the file was different than the Asus TF one. Instead of trying that file on my TF I modified the TF profile.
I have experienced no problems so far with this modified file but try at your own risk, replacing the file with the original should resolve any issues you might experiences, but no promises. I highly recommend backing up your own media_profile.xml instead of using my backed up original.
A few questions for anyone that knows.
For the camera app what is 'high' quality? I assume it is the 720p profile do to the outcome I had. I ask because in the media profile there is no youtube video quality but is on the app. other video quality names aren't listed in the app either.
What do the video decoder and audio decoder caps do exactly? I turned them off only because they where turned off on the Xoom, and I wanted to see if it prevented video from playing or caused glitch's (I saw no issues in the video I played)
I set the camera to the rear and "high" for quality then recorded a video before the changes and one after then transferred them to my desktop. The details in properties shows both at 37 seconds long and a frame rate of 1280x720. the data rate for the 3gp was 7478kbps while the mp4 was 20350kbps. Total bitrate increased from 7574kbps to 20446kbps. Frame rate dropped from 28fps to 24fps. file size increased to 93MB from 33.7MB. I noticed a small improvement in quality at full screen on my monitor, it was a slow video so I couldn't tell if it had more or less tearing.
more info: You will need to reboot to see any chances. setting any setting the camera can't use will result in the camera app force closing. I tried setting the frame rate to 40 in one profile and the camera app crashed every time I tried to access the rear camera (that profile was already selected so was auto loading). placing the xml with the correct framerate back into the /system/etc folder and rebooting fixed the issue.
Since it is a busy day today for me I just did some quick modifications. If anyone else wants to make a modified file with better changes (specially someone who knows audio/video better) it would probably be appreciated by all.
Placing this file where it needs to go requires root and a file browser that can mount the system folder in read/write.
The XML file should be placed in /system/etc. the full path is /system/etc/media_profiles.xml
changed:
All 3gp encoding to mp4 encoding
Rear Camera 720p quality bitrate from 8,000,000 to 25,000,000
Front Camera high quality bitrate from 4,000,000 to 8,000,000
Changed both "imageencoding quality from 90/80/70/20,000,000 to 100/99/95/250,000,000
Turned off videodecodercap and audiodecodercap
Again thank you to bracken21 for doing the Xoom's profile, which provided a base to go off of.

Video playback (vegacomb)

I'm wanting to put a few videos on for my sons, I cannot get the audio codec right, so far I've tried ac3 and aac in mp4 container with avc video, the video plays back fine but never plays audio. Tried a couple of different players (dice player just force closes) but they part without audio too. Any one know what audio codec the default video player accepts?
I can stream from my pc using plex and it works fine but would rather play from local sd card
Sent from my LG-P920 using XDA App
Have you tried Mobo Player? Works fine for me and i play all types, mkv, avi, mp4
Plus they have lots of codec packages to add if havng any trouble,
Worth a try.
foxguard said:
Have you tried Mobo Player? Works fine for me and i play all types, mkv, avi, mp4
Plus they have lots of codec packages to add if havng any trouble,
Worth a try.
Click to expand...
Click to collapse
Thank you for the suggestion! I have been wondering the same.
I wish there was a simple way to side-load codecs onto Android so the default video player supports more
Sent from my VegaComb using Tapatalk
No probs.
Let me know how you get on.
Try this from modaco.
Afternoon all
As mentioned in a few threads, I've been tinkering with encoding settings in Handbrake in order to get the optimal settings for converting video. After spending a few hours with this last night and this morning - what a fun Friday night, huh? - I think I have nailed it. This profile will allow you to watch files using the native video player - you don't need anything like RockPlayer, or VPlayer. This means that they should be hardware accelerated. You can use something like RockPlayer, but framerates will suffer if you're using HD videos. I tested this using the 1080p MP4 version of Big Buck Bunny as the input file and it works very well - I'm going to give this a shot on some of my other videos today.
I have attached the profile in question.
EDIT: Rename the file to "Vega.plist" before importing (take off the .txt extension) - I've only just realised that modaco will not let me upload PLIST files...
Don't try to double click this, as it might try to open in Quicktime - no idea what it will do on a Mac! To import it open Handbrake, go to "Presets" and click "Import". The profile export feature is experimental, so I'll list the detailed settings that I used in case it does not work.
Firstly though, if you're not sure what you're doing in the "Picture" tab, have a read of this quick primer on Anamorphic video. If you want to scale down a 720p or 1080p video to match the Vega's resolution, set Anamorphic to loose, modulus to 16, and set the video width to 1024. For any videos that are not HD, or if you're not sure, just set this to "Strict": this will make sure that the video always displays in the correct aspect ratio, but you won't be able to scale the video down. Don't mess with the "Cropping" settings unless you know what you're doing.
I'd highly recommend scaling 720p or 1080p HD videos down to match the Vega's resolution - it drastically reduces the output size:
The original version of Big Buck Bunny (1920*1080): 885MB
Strict anamorphic - no scaling (1920*1080): 388MB
Scaled down to 1024*576 with loose anamorphic: 128MB
The Vega will play 720 or 1080 files, but you won't see that extra detail so there's no point in wasting the extra space on your SD card, IMO.
Detailed settings - in case the attachment fails. If anyone finds any optimisations for this, please let me know!
Output Settings:
Container: MP4 File
Large file size: Unchecked
Web optimised: Unchecked
iPod 5G support: Checked
Video Filters Tab:
Detelecine: Default
Decomb: Default
Deinterlace: Off
Denoise: Off
Deblock: Off
Grayscale Encoding: Off (Unchecked)
Video Tab:
Video Codec: H.264 (x264)
Framerate: Same as source
Quality: Constant Quality, set slider to RF:20
Audio Tab:
This is going to vary, depending on the audio tracks in the source video (for example, a DVD may have multiple languages and each of these will be a different audio track) - I have not yet tested multiple audio channels on the Vega, so I highly recommend only adding one audio track to your output file. The following drop-downs must be set:
Audio Codec: AAC (faac)
Mixdown: Stereo (no point having multi-channel audio if you can't play it on the Vega)
Samplerate: Auto
Bitrate: 160
Subtitles:
This will depend entirely on whether you want to include the subtitles from the source video. This can get a bit more complicated, so I'm not going to cover it here; if your source has subtitles as a separate track (i.e., soft subs not hard subs), you may need to take some extra steps - do some research on this over at afterdawn.com or doom9.org.
Chapters:
If your source video has chapters - like a DVD - you can replicate those chapters in the output video; if there are no chapter markers in the source, the checkbox is greyed out.
Advanced:
There's quite a lot in here, so bear with me...
Reference Frames: Default (3)
Maximum B-Frames: Default (3)
CABAC Entropy Encoding: Checked
8x8 Transform: Checked
Weighted P-Frames: Unchecked
Pyramidal B-Frames: Default (Normal)
No DCT-Decimate: Unchecked
Adaptive B-Frames: Optimal
Adaptive Direct Mode: Default (Spatial)
Motion Estimation Method: Default (Hexagon)
Subpixel ME & Mode Decision: Default (7)
Adaptive Quantisation Strength: slider set to middle
Psychovisual Rate Distortion: slider set to middle
Psychovisual Trellis: slider set fully to the left
Partition Type: Default
Trellis: Default
Deblocking: Both drop-downs set to Default (0)
For those that are interested in the more nerdy side, I started off by copying Handbrake's built in "High Profile" x264 settings. I found this page, which mentions that the Xoom only supports the baseline x264 profile, so I turned off the advanced x264 stuff. However I realised that even though the hardware is the same, the Xoom is not the Vega. So started re-enabling the advanced options one by one to see if any caused a problem. The only one I found that caused any issue was weighted P-Frames, which seemed to make videos judder slightly.
Attached File(s)
Vega.plist.txt (3.52K)
Number of downloads: 521
This post has been edited by blcollier: 26 March 2011 - 01:44 PM
Cheers but I shouldn't have to convert for my Optimus 3D as well as the Vega, one video should be able to work on both
kenfisher said:
Afternoon all
As mentioned in a few threads, I've been tinkering with encoding settings in Handbrake in order to get the optimal settings for converting video. After spending a few hours with this last night and this morning - what a fun Friday night, huh? - I think I have nailed it. This profile will allow you to watch files using the native video player - you don't need anything like RockPlayer, or VPlayer. This means that they should be hardware accelerated. You can use something like RockPlayer, but framerates will suffer if you're using HD videos. I tested this using the 1080p MP4 version of Big Buck Bunny as the input file and it works very well - I'm going to give this a shot on some of my other videos today.
I have attached the profile in question.
EDIT: Rename the file to "Vega.plist" before importing (take off the .txt extension) - I've only just realised that modaco will not let me upload PLIST files...
Don't try to double click this, as it might try to open in Quicktime - no idea what it will do on a Mac! To import it open Handbrake, go to "Presets" and click "Import". The profile export feature is experimental, so I'll list the detailed settings that I used in case it does not work.
Firstly though, if you're not sure what you're doing in the "Picture" tab, have a read of this quick primer on Anamorphic video. If you want to scale down a 720p or 1080p video to match the Vega's resolution, set Anamorphic to loose, modulus to 16, and set the video width to 1024. For any videos that are not HD, or if you're not sure, just set this to "Strict": this will make sure that the video always displays in the correct aspect ratio, but you won't be able to scale the video down. Don't mess with the "Cropping" settings unless you know what you're doing.
I'd highly recommend scaling 720p or 1080p HD videos down to match the Vega's resolution - it drastically reduces the output size:
The original version of Big Buck Bunny (1920*1080): 885MB
Strict anamorphic - no scaling (1920*1080): 388MB
Scaled down to 1024*576 with loose anamorphic: 128MB
The Vega will play 720 or 1080 files, but you won't see that extra detail so there's no point in wasting the extra space on your SD card, IMO.
Detailed settings - in case the attachment fails. If anyone finds any optimisations for this, please let me know!
Output Settings:
Container: MP4 File
Large file size: Unchecked
Web optimised: Unchecked
iPod 5G support: Checked
Video Filters Tab:
Detelecine: Default
Decomb: Default
Deinterlace: Off
Denoise: Off
Deblock: Off
Grayscale Encoding: Off (Unchecked)
Video Tab:
Video Codec: H.264 (x264)
Framerate: Same as source
Quality: Constant Quality, set slider to RF:20
Audio Tab:
This is going to vary, depending on the audio tracks in the source video (for example, a DVD may have multiple languages and each of these will be a different audio track) - I have not yet tested multiple audio channels on the Vega, so I highly recommend only adding one audio track to your output file. The following drop-downs must be set:
Audio Codec: AAC (faac)
Mixdown: Stereo (no point having multi-channel audio if you can't play it on the Vega)
Samplerate: Auto
Bitrate: 160
Subtitles:
This will depend entirely on whether you want to include the subtitles from the source video. This can get a bit more complicated, so I'm not going to cover it here; if your source has subtitles as a separate track (i.e., soft subs not hard subs), you may need to take some extra steps - do some research on this over at afterdawn.com or doom9.org.
Chapters:
If your source video has chapters - like a DVD - you can replicate those chapters in the output video; if there are no chapter markers in the source, the checkbox is greyed out.
Advanced:
There's quite a lot in here, so bear with me...
Reference Frames: Default (3)
Maximum B-Frames: Default (3)
CABAC Entropy Encoding: Checked
8x8 Transform: Checked
Weighted P-Frames: Unchecked
Pyramidal B-Frames: Default (Normal)
No DCT-Decimate: Unchecked
Adaptive B-Frames: Optimal
Adaptive Direct Mode: Default (Spatial)
Motion Estimation Method: Default (Hexagon)
Subpixel ME & Mode Decision: Default (7)
Adaptive Quantisation Strength: slider set to middle
Psychovisual Rate Distortion: slider set to middle
Psychovisual Trellis: slider set fully to the left
Partition Type: Default
Trellis: Default
Deblocking: Both drop-downs set to Default (0)
For those that are interested in the more nerdy side, I started off by copying Handbrake's built in "High Profile" x264 settings. I found this page, which mentions that the Xoom only supports the baseline x264 profile, so I turned off the advanced x264 stuff. However I realised that even though the hardware is the same, the Xoom is not the Vega. So started re-enabling the advanced options one by one to see if any caused a problem. The only one I found that caused any issue was weighted P-Frames, which seemed to make videos judder slightly.
Attached File(s)
Vega.plist.txt (3.52K)
Number of downloads: 521
This post has been edited by blcollier: 26 March 2011 - 01:44 PM
Click to expand...
Click to collapse

[GUIDE] U8800(all versions) Best Encoding Settings For Video Playback

Hello there guys!
Today I'm gonna share my encoding settings that I think are the best for movie/tv-show/anime watching on ideos x5(pro/non-pro) screen.
Note: Encoding is a very heavy task for a computer. Make sure that you computer has at least 2 CPU cores and 2 gb of RAM before proceeding.
For example I have an Intel Core 2 Quad Q9300 (4 cores at 2,5 GHz),4gb RAM and Win7 x64. Re-enconding 20 minutes of anime/movie takes about 5 to 7 minutes. Output file size is about 160-180 MB.
Anyway.Let's get started!
-----------------------------
1) Download a program called HandBrake. You can get it here:http://handbrake.fr/downloads.php
Note: If you have 64bit OS get the 64bit version of the program,as this will greatly speed up the encoding progress.
2) Install HandBrake(hope you know how to do it ).
3) Run HandBrake
Note: In Windows in case it shows up an error when trying to run it, try running it as admin.
4) Find a movie/tv-show/anime file to re-encode + proper sub suitable for your needs
5) Take a break here and get ready for the hard part
----------------------------------------------------------------------------
1) Click the Source icon located in top left corner in HandBrake interface. Press select video file (I won't do a source->folder example since it's pretty much the same.)
Select your video file. Usually the extension of your video file will be something like .avi .mp4 .m4v .mkv etc.
2) Now in Output Settings (Preset: Normal) make sure that Container: is set to MP4 File
Now click the browse button located a little bit above and right and give a name and location to your output file
The hard part really starts here...
3) In Picture Tab set Anamorphic: to None
See how Width and Height changed and you can now edit their values?
Now change Width: to 800 and Height: to 480 (that's x5(all versions) screen resolution)
Make sure Keep Aspect Ratio is UN-CHECKED
4) Switch to Video tab (leave Video Filters Tab as is)
Set Video Codec: to MPEG-4 (FFmpeg)
Framerate (FPS): Same as source (leave as is)
Constant/Variable Framerate don't make a difference to me but feel free messing around with these options if you want to.I just leave the default one(variable) selected
Now in Quality select Avg Bitrate (kbps):
Enter a value here from 850 to 950. The higher the value the better. I use 920 which I find very good. The only difference here is that in dark scenes higer values will give a better image,where lower values (i.e. 850) will make the image look a little "pixelated-like". Increase it even further (i.e. 1000-1150) if you are not satisfied with the result in your phone's screen.
5) Switch to Audio Tab
Remove any audio tracks you don't want by selecting them from the drop down menu and pressing remove in order to save up space
Now select the audio track you want to keep.
Change Audio Codec to AAC (ffmpeg) (2nd dropdown menu)
Change Mixdown to Stereo (3rd dropdown menu)
Leave the rest as is
6) Switch to Subtitles Tab
If you don't want any sub simply remove any sub track like you removed the audio track previously.
If your video file includes a sub stream(usually .mkv files have one) that you want to use for sure,select it from the track list and check forced only, burned in(This will hardcode the sub into the image.You won't be able to remove the sub after that.If you don't want that,then just remove the check from this checkbox) and finally check default.
If your video file has no sub track/stream but you have a working .srt or .sub file then continue reading.
7) Chapters Tab is useful for some people. I just just un-tick create chapter markers.
In advanced I dont' enter anything
8) Switch back to picture tab and revise your settings (also do this in video,audio and subtitles tab).
Correct any mistakes.
When you are ready press the Start Button located next to the Source Button you used to load your movie.
Encoding should start. Your pc may stop responding fast during re-encoding of your video file.That's normal. Just wait for it to finish.
After encoding finished test your re-encoded video in your computer to test if it is as you want it (in terms of video/audio quality and subs). Well you can't tell much about the video quality by viewing the video in your computer because image will be stretched to fit computer's screen resolution.
9) Now copy your re-encoded video file to your phone's sd card.Better make a folder called movie or something. Paste the movie there. Place any additional .srt subs you may have here.
Download MX Player from PlayStore. Install it.
Open MX Player and load your video. Make sure HW Decoder is in use. Load any sub stream you may have.
10) Turn your phone into landscape view and Enjoy!
-----------------------------------------------------------
Well,that's it!
I hope my settings will proove useful for some users who want to use their phone more like a media center device.
Don't forget to click thanks if this helped you and also comment That means a lot to me!
If you disagree with some part of the guide,have another opinion/solution then feel free to comment and make this guide even better.
Cheers!
Guide is well written but why re-encode?
The only reason in my opinion is the free space, since our phone can play standard definition (didn't try HD) videos with srt subtitles (software decoded). If it is a space problem go with a bigger SD card re-encoding will cost in time...
Also keep in mind that any re-encode from a lossy codec to a lossy codec will cause loss of quality (even when re-encoding at the same bitrate/specs)
priestx said:
Guide is well written but why re-encode?
The only reason in my opinion is the free space, since our phone can play standard definition (didn't try HD) videos with srt subtitles (software decoded). If it is a space problem go with a bigger SD card re-encoding will cost in time...
Also keep in mind that any re-encode from a lossy codec to a lossy codec will cause loss of quality (even when re-encoding at the same bitrate/specs)
Click to expand...
Click to collapse
By re-encoding to a lower resolution it may use less cpu power to decode it, and therefore less battery (could be wrong though, this may not be that noticeable).
But yes, our phone can even play HD videos (they seem to have a low framerate on my phone, but I think it is related to a slow sd card).
@priestx
Well to tell the truth I don't do it for the free space.
I watch a lot of anime but there all in .mkv format with softcoded subs at 720p resolution and a high bitrate (1200kbps avg).
Trust me you can't watch this even with hardware decoder.It's laggy. Of course software decoder served me quite well some times but that was for easier to handle videos(like standard avi files).
You are absolutely right saying that re-encoding costs in video quality and time,but I think it worths re-encoding in some special occasions you want to watch something somewhere else apart from your computer and u8800 specs fail to playback the video correctly. Also due to screen's size it's not very easy to spot quality drop ,but only in special scenes. The advantage of re-encoding to me is that I can use hw decoder no matter if I am in 2.3 or aurora and get proper video playback.If I don't re-encode usually I won't have a hw decoder option in 2.3 and in aurora playback will be laggy sometimes even with hw decoder.
@FlashTH
I also think it uses less power but I didn't do any tests to proove it.
I don't think that slow hd playback is due to your sd card(I have a class 8 and still a lot of 720p videos shutter/lag a little).
Anyway,thanks for your comments and opinions

Beats Ultimate Audio Engine – Asus Zenfone 4/5/6 JB/KK/L

Supported for ASUS Zenfone 4/4.5/5/6 – JellyBean / KitKat / Lollipop Firmwares
FEATURES
-Clear sound
– Beats™ Audio
– Also compatible with the headphones that don’t support audio render of 60kHz
– Where possible, arrange for the conversion of the songs (in background) below 256 kbps to 320kbps
– During playback of songs / sounds make a soft frequency scaling to reduce noise and highlight the track
– It offers more powerful and closed bass
– Efficient even with stock headphones
– Improves a lot the audio call
– Enhance the speakers for playing music without headphones in high quality
-320Kbps Conversion for Crystal clear Audio output
-Increases Sound Output in both Loudspeaker and Line-outs“ENABLE MUSIC MODE IN AUDIO WIZARD TO MAKE IT LOUDER and FULL FUNCTIONAL”
“You can Customize the Beats Audio with the Beats Widget”
Installation
Extract using the Password : mathan.in
Make Sure ADB is Ready
Find patch.exe inside that
Launch it and Follow the Instruction which are Provided in that
TO Revert back,Sideload the Firmware to Restore your Original System Files
Mod Edit: Link removed
This is stolen work of other developer without giving credit to Sathish Tony the developer & copied to his own blog thus claiming to be his own & making money by ad clicks.
Post reported to moderators
Stolen from
http://zenfone-five.blogspot.in/2015/05/beats-audio-engine-asus-zenfone-456.html
This has been reported twice, but since the site the original is on requires adblock be off, which I won't do, it's a shady site to begin with in my eyes.
I'm less interested about who's work this is and more worried about the pay per click download link that this is downloaded from. Pay per click links are not allowed on XDA.
So thread closed.
Regards,
Darth
Forum Moderator

Categories

Resources