[oi-dev] libjpeg-turbo and VLC

Aurélien Larcher aurelien.larcher at gmail.com
Fri Dec 11 16:40:40 UTC 2015


Hi,
maybe are you missing the hipster-encumbered repository ?

http://pkg.openindiana.org/hipster-encumbered/en/index.shtml

Some libs are still missing (like live55) but they are only optional.

The only showstopper is that VLC uses libjpeg-turbo's jpeg_mem_src so I
prepared several libjpeg components to provide IJG's and the Turbo
implementations in separate subdirectory.

If you have the time, you can contribute the missing optional libraries
listed here:

http://wiki.openindiana.org/oi/Multimedia

After adding libjpeg-turbo with 6b compliance, VLC 2.2.1 compile out of the
box provided that you add some flags:

CFLAGS=" -DLUA_COMPAT_ALL=1 -DGL_GLEXT_PROTOTYPES -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 "

The first is to enable backward compatibility mode with Lua 5.1, but I
think our 5.2 needs recompile with the backward compatibility flag.
The second is to address a compilation error.
The last bits are to make sure that the macros is declared in a consistent
way but I am not sure that is the case as some warnings still show up.

If you have more time than I have, I can push my VLC branch so that you can
finish up the component and test with the optional libraries.
But before we can add VLC to oi-userland/encumbered, I need to push the
libjpeg components in any case.
Best regards

Aurélien

On Fri, Dec 11, 2015 at 1:27 AM, <bentahyr at chez.com> wrote:

> Hi Aurélien,
>
> This is great news.
> I tried myself and my results are way less optimistic than yours.
> How did you compiled the libraries necessary for VLC ?
> After installing all I could from repo, I'm still left to compile the
> following :
> a52 bluray caca chromaprint dca dvbpsi dvdcss dvdnav dvdread faad2 \
> ffmpeg fluid gme goom gsm jpeg kate \
> lame libmpeg2 live555 mad matroska modplug mpcdec nettle \
> postproc shout sidplay2 taglib twolame upnp vncserver vpx x264 x265 zvbi
>
> I know I can live without the blueray support even if it would be nice to
> have but DVD/x264 seem to me quite important.
>
> Did you compile those ? Did you got them from SFE ?
>
> Best regards.
> Ben
>
> ----- Mail original -----
> De: "Aurélien Larcher" <aurelien.larcher at gmail.com>
> À: "OpenIndiana Developer mailing list" <oi-dev at openindiana.org>
> Envoyé: Jeudi 3 Décembre 2015 08:56:18
> Objet: [oi-dev] libjpeg-turbo and VLC
>
>
>
>
>
>
>
>
>
>
>
> Hello,
> this afternoon I compiled VLC 2.2.1 quick and dirty (no patching involved
> \o/) for use on my (work-)workstation. This was made easier thanks to:
>
> - update of gnu-gettext 0.19.6 by Alexander [1]
> - support of strerror_l to illumos [2]
>
> The only issue was that our libjpeg6b is quite old and not compatible with
> VLC, installing libjpeg-turbo (which is libjpeg8 compliant) solved the
> problem.
>
> Is it realistic to consider modifiying the libjpeg component and use
> libjpeg-turbo with v8 compatility as drop-in replacement ? The performance
> difference is quite impressive.
>
>
> VLC 2.2.1 just works fine, the only issue related to loading the Lua
> plugin is not OI specific and to be fixed upstream.
> Best regards
>
> Aurelien
>
>
>
>
>
>
> [1] https://github.com/OpenIndiana/oi-userland/pull/1544
> [2]
> https://github.com/illumos/illumos-gate/commit/b599bd937c305a895426e8c412ca920ce7824850
>
>
>
>
>
>
> --
>
>
>
>
> ---
> Praise the Caffeine embeddings
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> http://openindiana.org/mailman/listinfo/oi-dev
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> http://openindiana.org/mailman/listinfo/oi-dev




-- 
---
Praise the Caffeine embeddings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20151211/07417ee1/attachment-0005.html>


More information about the oi-dev mailing list