PDA

View Full Version : I've managed to fix the volume boosting bug in the latest version of nPlayer!




Menneisyys2
Apr 10, 2013, 06:22 PM
The absolutely stunning, great etc. media player I've very frequently recommended (latest article on v1.7 (http://forums.macrumors.com/showthread.php?t=1543946)), nPlayer ($2.99; AppStore link (https://itunes.apple.com/us/app/nplayer/id539397400?mt=8); Universal app), has just been updated to version 1.10.

https://dl.dropbox.com/u/81986513/042013/nplayerfix/110appstore.jpeg

The AppStore update list

However, the new version, surely by mistake, has removed the volume boosting setting in Settings. Volume boosting is of enormous importance if you watch videos in noisy environments – this is why I've been recommending the excellent player “It's Playing” for people that want their iDevices to be louder. And nPlayer's volume boosting implementation is flawless: it works just great even with hardware acceleration and even with iOS-native container files with iOS-native audio tracks. For example, my standardized M4V file with AAC audio (therefore, both iOS-native) HERE (https://dl.dropbox.com/u/81986513/112012/1122fixed-ac3-aac-mkvmp4-testfiles/m4v-with-aac-only-startsWithKeyframe.m4v)! The majority of players otherwise being able to apply volume boosting can't do this; the most known example of them being GoodPlayer.

This is how the global Settings looked in the previous two versions (1.8/1.9):
https://dl.dropbox.com/u/81986513/042013/nplayerfix/18boostiph.jpeg
(iPhone 5)
https://dl.dropbox.com/u/81986513/042013/nplayerfix/18boostipadt.jpeg (https://dl.dropbox.com/u/81986513/042013/nplayerfix/18boostipad.jpeg)
(iPad 4; click for larger image)

And this is how it looks in 1.10:
https://dl.dropbox.com/u/81986513/042013/nplayerfix/110settings.jpeg
(iPhone 5)

As you can see, the “Boost” menu is gone and is replaced by “Dolby Mobile”.

I'm still working on a full review of the app. (Let me tell you it'll be a really positive one. I REALLY love the latest versions of this player. Even very rarely supported features like full SSA subtitle support are here and work flawlessly.) Nevertheless, given that many users may be affected by this bug, I've found it necessary to publish an article on fixing it as quickly as possible.

Basically, if you aren't jailbroken, the solution will be pretty awkward. However, if you can keep the volume boost always enabled and aren't annoyed by the consequences (vastly decreased dynamic range), you can safely do it. If you did jailbreak your iDevice, you, of course, will have a much easier time.

If your iDevice isn't jailbroken

Then, your only way is using a desktop iOS file transfer tool like iExplorer and copy the file Apps/nPlayer/Library/Preferences/com.newin.nplayer.plist to your desktop:

https://dl.dropbox.com/u/81986513/042013/nplayerfix/iexplorert.jpeg (https://dl.dropbox.com/u/81986513/042013/nplayerfix/iexplorer.jpeg)
(click for larger image)

then, edit the plist file in a plist editor. On a Mac, Xcode's default editor will work just fine; on a PC, you'll want to use plist Editor for Windows (http://www.softpedia.com/get/Programming/File-Editors/plist-Editor-for-Windows.shtml). You'll need to change Settings>AudioBoost from “1” to, say, “4” if you want 400% boost. Then, transfer the plist file back to your iDevice, making sure you first delete the file before the transfer and don't try to overwrite it.

https://dl.dropbox.com/u/81986513/042013/nplayerfix/plisted.jpg (https://dl.dropbox.com/u/81986513/042013/nplayerfix/plisted.png)

(Editing the file in Xcode's plist editor on a Mac; click for larger image)

If your iDevice is jailbroken

Then, as usual, your life will be much easier – actually, particularly if you bookmark the home directory of the app, you can easily and quickly change volume boosting any time, without any desktop computer.

All you'll need is getting the absolutely excellent iFile, navigate to /Library/Preferences in the home of nPlayer, tap com.newin.nplayer.plist and select “Property List Viewer” from the list. Then, just tap “Settings” and, then, AudioBoost. Then, you can already modify its value:

https://dl.dropbox.com/u/81986513/042013/nplayerfix/edit110plist.jpeg



A quick audio boosting tip

If you try to play back an iOS-native media file with an AAC audio track, make absolutely sure you switch to Hardware decoding from the default QuickTime. Otherwise, there won't be audio boosting. Feel free to test this with the video (https://dl.dropbox.com/u/81986513/112012/1122fixed-ac3-aac-mkvmp4-testfiles/m4v-with-aac-only-startsWithKeyframe.m4v) I've linked to above: there'll only be volume boosting if you do change the decoding mode. Let me present you with a mini-tutorial on this:

1, tap the Settings icon while playing back the video:

https://dl.dropbox.com/u/81986513/042013/nplayerfix/qt_to-Hw1t.jpeg (https://dl.dropbox.com/u/81986513/042013/nplayerfix/qt_to-Hw1.jpeg)

2, go to Video > Decoder:

https://dl.dropbox.com/u/81986513/042013/nplayerfix/qt_to-Hw2t.jpeg (https://dl.dropbox.com/u/81986513/042013/nplayerfix/qt_to-Hw2.jpeg)

3, select “Hardware” instead of the default “QuickTime”:

https://dl.dropbox.com/u/81986513/042013/nplayerfix/qt_to-Hw3t.jpeg (https://dl.dropbox.com/u/81986513/042013/nplayerfix/qt_to-Hw3.jpeg)

(click for larger image for all the three screenshots)

What about the future?

I've already contacted the devs on the matter. Hopefully they also fix it soon. In the meantime, feel free to use my fix.

EDIT (11/Apr/2013 8:30 GMT): nPlayer has been removed from the AppStore. This means the devs have received my mail and will release a fixed version soon. In the meantime, my fix continues to work on existing 1.10 installs.



kdhoe
Apr 11, 2013, 01:24 AM
It seems that nPlayer is removed from the App Store. Can anyone confirm that?

Menneisyys2
Apr 11, 2013, 02:15 AM
It seems that nPlayer is removed from the App Store. Can anyone confirm that?

Yup; most probably because of this bug.

tarangzin
May 10, 2013, 12:35 AM
Does this app work on ATV3 Airplay? I have a NAS, want to stream to TV using Ipad over ATV3.

Menneisyys2
May 10, 2013, 04:12 AM
Does this app work on ATV3 Airplay? I have a NAS, want to stream to TV using Ipad over ATV3.

It does - it has native TV output support.