Better compressing VLC DMGs

macOS specific usage questions
zacwest
New Cone
New Cone
Posts: 6
Joined: 24 Dec 2008 02:26

Better compressing VLC DMGs

Postby zacwest » 30 May 2009 21:30

Hi,

Currently the VLC .dmg files are compressed using zlib (UDIF) compression. If you were to switch to using bzip2 compression (UDBZ) you'd save about 20% of your download size.

For example, vlc-0.9.9a-intel.dmg in UDIF is 20374916 bytes. vlc-0.9.9a-intel-udbz.dmg in UDBZ is 17025367 bytes. That's about 82% of the total size. This is about the same percent for the 1.0.0rc2 release.

`hdiutil convert <file-in> -format UDBZ -o <file-out>` (instead of the UDIF you're probably currently using) would achieve this, in whatever step the .dmg is created in. The downside is that this errors in 10.3 and previous (instead of letting them find an unsupported .app, as UDBZ was added in 10.4), but these days I don't imagine it's a problem much.

On a side note: you might want to consider using Sparkle for updates; automatic install is a great way to force users to keep up to date. Personally, I find myself always turning off VLC's update check because by and large it's useless: downloading is great, but installing is key.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Better compressing VLC DMGs

Postby Jean-Baptiste Kempf » 31 May 2009 00:21

Patches are welcome.
And since OSX version of VLC is dying because of absence of developers, developers' help is welcome.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

fkuehne
Developer
Developer
Posts: 7295
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Better compressing VLC DMGs

Postby fkuehne » 01 Jun 2009 23:14

Hello there,

I've just applied your suggested dmg format change to VLC's forthcoming 1.0 release. Thanks a lot for the hint!

On Sparkle: well, that's a great framework written by a really cool and nice guy. However, our security-über-boss at VideoLAN requires us to use VLC's core to implement the update functionality, which is why we can't use Sparkle on the Mac directly. Still, there is a ticket in our (currently crashed *coughcough*) bug tracker on a partial Sparkle implementation, meaning that I (or another nice OS X dev coming along) will port its auto-installation & restart mechanism to VLC. This is quite easy to accomplish in combination with the existing code and would greatly enhance the usability of our update feature. If you want to get started on this, feel free to ping me in case of any questions.

Best regards
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

zacwest
New Cone
New Cone
Posts: 6
Joined: 24 Dec 2008 02:26

Re: Better compressing VLC DMGs

Postby zacwest » 02 Jun 2009 02:38

Hello there,

I've just applied your suggested dmg format change to VLC's forthcoming 1.0 release. Thanks a lot for the hint!
Excellent. Should be a nice reduction. :)
On Sparkle: well, that's a great framework written by a really cool and nice guy. However, our security-über-boss at VideoLAN requires us to use VLC's core to implement the update functionality, which is why we can't use Sparkle on the Mac directly.
Is there a reason for this? Sparkle 1.5 features DSA signature checking (in fact, that or HTTPS for all connections, is required). From a security standpoint, it's pretty excellent, and woefully omnipresent and *totally* useful. It's pretty easy to set up the appcast—you'd just have to update a few values per release. You can even set minimum OS settings (for example, Adium has 10.3.9-minimum, 10.4-minimum, and 10.5-minimum all in 1 file!) for update checks.

Is there a reason other than making yet-another-thing-to-update-for-a-release?
Still, there is a ticket in our (currently crashed *coughcough*) bug tracker on a partial Sparkle implementation, meaning that I (or another nice OS X dev coming along) will port its auto-installation & restart mechanism to VLC. This is quite easy to accomplish in combination with the existing code and would greatly enhance the usability of our update feature. If you want to get started on this, feel free to ping me in case of any questions.

Best regards
Seems like too much work for not a lot of benefit. :) If I weren't busy otherwise, I'd give it a shot; but probably something else in VLC, not so much this.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Better compressing VLC DMGs

Postby The DJ » 02 Jun 2009 14:12

Is there a reason other than making yet-another-thing-to-update-for-a-release?
Yes, ours is cross-platform.
Seems like too much work for not a lot of benefit. :) If I weren't busy otherwise, I'd give it a shot; but probably something else in VLC, not so much this.
Yes, it's one of those problems. Everybody has good ideas, no one has the time to implement them.
Don't use PMs for support questions.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 20 guests