SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all, I need a vlc package for slackware 14.0.
My system audio is based on OSSv4 (open sound system version 4).
I had installed an AlienBob precompiled package of vlc 2.1.4, but I notice some choppy sound and a bad fluency during playback.
I read about option "--enable-oss" to be used at compile time for 2.1.x vlc versions.
Now I would like to rebuild Alien's vlc package (2.1.4) with that option active. Or build a newer version of vlc...
Anyway my system is a bit outdated for building packages like VLC.
Can you give me any suggest?
How to build a new VLC version on an old Slackware-14.0?
Or instead, how to rebuild an alien bob old package? I can't find old source directory on his repo...
There is a VLC SlackBuild on SBo for 14.0. There are a lot of dependencies, but once you get all those, it should build fine. You will need to manually edit the SlackBuild to enable OSS.
During compile 2.0.3 version you linked, I obtained following error:
Code:
dtv/en50221.c: In function 'en50221_SetCAPMT':
dtv/en50221.c:2234:17: error: implicit declaration of function 'dvbpsi_DeletePMT' [-Werror=implicit-function-declaration]
dtv/en50221.c: At top level:
dtv/en50221.c:2288:12: warning: 'en50221_OpenMMI' defined but not used [-Wunused-function]
dtv/en50221.c:2328:12: warning: 'en50221_CloseMMI' defined but not used [-Wunused-function]
dtv/en50221.c:2356:15: warning: 'en50221_GetMMIObject' defined but not used [-Wunused-function]
dtv/en50221.c:2381:13: warning: 'en50221_SendMMIObject' defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[5]: *** [libdtv_plugin_la-en50221.lo] Errore 1
make[5]: Leaving directory `/tmp/SBo/vlc-2.0.3/modules/access'
make[4]: *** [all-recursive] Errore 1
make[4]: Leaving directory `/tmp/SBo/vlc-2.0.3/modules/access'
make[3]: *** [all] Errore 2
make[3]: Leaving directory `/tmp/SBo/vlc-2.0.3/modules/access'
make[2]: *** [all-recursive] Errore 1
make[2]: Leaving directory `/tmp/SBo/vlc-2.0.3/modules'
make[1]: *** [all-recursive] Errore 1
make[1]: Leaving directory `/tmp/SBo/vlc-2.0.3'
make: *** [all] Errore 2
A relatively new release of VLC will not compile on Slackware 14.0 where the compiler, glibc and lots of support libraries are just too old.
Is it possible for you to upgrade to a newer release of Slackware?
Some of above packages are newer version than slack-14.0 default, rebuilt from sources.
Thanks Alien, for all your work and also for your answer.
My system should be upgraded in next weeks: I'm waiting for new hardware improvements (double RAM and an SSD new drive), then I'll install a brand new slack system (14.2) on that.
But on my current old HDD I'll keep for a while my current system 14.0: I have to migrate some configs an so on..
Anyway, your vlc package (the last one released for 14.0, vlc-2.1.4-i486-1alien.txt) was installed and working ok, a part oss support not enabled at compile time. I found it at: http://www.slackware.com/~alien/slac...s/vlc/pkg/14.0
The problem: I could try to compile that old version with your slackbuild and "--enable-oss" activated, but I can't find your "build" directory for that old version. If you have some suggest it will be greatly appreciated.
Hi all, I need a vlc package for slackware 14.0.
...
Can you give me any suggest?
...
I had trouble with newer versions of vlc using my television tuner and Alien Bob was gracious enough to point me to an older version of vlc from August 2013.
A relatively new release of VLC will not compile on Slackware 14.0 where the compiler, glibc and lots of support libraries are just too old.
Is it possible for you to upgrade to a newer release of Slackware?
Really?
Guess I must be dreaming then ...
Code:
bash $ cat /etc/slackware-version
Slackware 14.0
bash $ uname -a
Linux dreaming 3.2.45-smp #1 SMP Fri May 31 16:44:39 CDT 2013 i686 Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz GenuineIntel GNU/Linux
bash $ gcc --version
gcc (GCC) 4.7.4
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bash $ vlc --version
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
VLC version 2.2.4 Weatherwax (2.2.3-37-g888b7e89)
Compiled by root on dreaming.at-home.net (Aug 21 2016 12:53:43)
Compiler: gcc version 4.7.4 (GCC)
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by the VideoLAN team; see the AUTHORS file.
bash $ vlc "Ice Cube - You Know How We Do It (Part 2)-ZJmz77rL6MI-01.mp4"
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
bash $ vlc "Funkadelic - Ain't That Funkin' Kinda Hard on You (Remix) ft. Kendrick Lamar, Ice Cube-NxKBVfPlGgE.webm"
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
bash $ diff ~/.slackbuilds/14.1/multimedia/vlc/vlc.SlackBuild vlc.SlackBuild
9c9
< # Copyright (c) 2014-2016 Christoph Willing, Brisbane, Australia
---
> # Copyright (c) 2014 Christoph Willing, Brisbane, Australia
31,32c31,32
< VERSION=${VERSION:-2.1.6}
< BUILD=${BUILD:-4}
---
> VERSION=${VERSION:-2.2.4}
> BUILD=${BUILD:-1}
37c37
< i?86) ARCH=i486 ;;
---
> i?86) ARCH=i586 ;;
48,49c48,49
< if [ "$ARCH" = "i486" ]; then
< SLKCFLAGS="-O2 -march=i486 -mtune=i686"
---
> if [ "$ARCH" = "i586" ]; then
> SLKCFLAGS="-O2 -march=i586 -mtune=i686"
61,71d60
< # In an ordinary virtual machine, since a different kernal is running,
< # a unique dbus id is needed.
< # However with LXC, the same kernel is used in each container,
< # so we insert an arbitrary value
< #
< grep "CONTAINER=yes" /etc/rc.d/rc.S >/dev/null 2>/dev/null
< if [ $? -eq 0 ]; then
< mkdir -p /var/lib/dbus/
< echo "4349d719fcf875a557a8c00400000014" > /var/lib/dbus/machine-id
< fi
<
81,87d69
< patch -p1 < $CWD/patch-vlc-opencv3.diff
<
< patch -p0 < $CWD/patch-freerdp.diff
< patch -p0 < $CWD/patch-freerdp_1_2.diff
< patch -p0 < $CWD/patch-projectM-fontpath.diff
<
< patch -p0 < $CWD/patch_libavcodec_version.diff
88a71
>
100a84,85
> NCURSES_CFLAGS="-I/usr/include/ncursesw" \
> NCURSES_LIBS="-lncursesw" \
108,110c93
< --build=$ARCH-slackware-linux \
< --enable-merge-ffmpeg \
< --with-kde-solid=no
---
> --build=$ARCH-slackware-linux
112c95
< make
---
> make -j 3
137c120
< /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
---
> /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
The vlc configure script is very robust in that you do not need all the dependencies listed. Just use the dependencies you need to play your media files.
I confirm: on my system vlc-2.2.2 package can be built, using SBo script as described above by Maverick.
However issue with oss audio output persists:
If I try to reproduce an audio/video file, video reproduction seems ok, but audio is choppy...
I usually use mplayer, not vlc, so I didn't notice this VLC/OSSv4 issue. Then few days ago I read about ip tv via kodlive and vlc. So I tried it but I experiment our sound issue. I've started to think my internet connection didn't support iptv. But then I tried to reproduce a local file and choppy sound persists...
So the problem is linked to VLC and OSSv4 audio. Likely ALSA or new PulseAudio don't suffer this "bug".
Now.. Some questions:
1- For version 2.2.2, is "--enable-oss" configure switch available? Or any other way to make VLC working under OSSv4 audio system?
I tried to add it in slackbuild but I obtain following error:
Code:
CCLD libvlc_srtp.la
CCLD librtp_plugin.la
CC audio_output/adummy.lo
CCLD libadummy_plugin.la
CC audio_output/libafile_plugin_la-file.lo
CCLD libafile_plugin.la
CC audio_output/amem.lo
CCLD libamem_plugin.la
CC audio_output/oss.lo
audio_output/oss.c: In function ‘Start’:
audio_output/oss.c:122:22: error: ‘AFMT_S32_NE’ undeclared (first use in this function)
audio_output/oss.c:122:22: note: each undeclared identifier is reported only once for each function it appears in
audio_output/oss.c: In function ‘Pause’:
audio_output/oss.c:291:24: error: ‘SNDCTL_DSP_SILENCE’ undeclared (first use in this function)
audio_output/oss.c:291:45: error: ‘SNDCTL_DSP_SKIP’ undeclared (first use in this function)
audio_output/oss.c: In function ‘DevicesEnum’:
audio_output/oss.c:326:5: error: unknown type name ‘oss_sysinfo’
audio_output/oss.c:329:20: error: ‘SNDCTL_SYSINFO’ undeclared (first use in this function)
audio_output/oss.c:335:5: error: request for member ‘product’ in something not a structure or union
audio_output/oss.c:335:5: error: request for member ‘version’ in something not a structure or union
audio_output/oss.c:335:5: error: request for member ‘versionnum’ in something not a structure or union
audio_output/oss.c:335:5: error: request for member ‘license’ in something not a structure or union
audio_output/oss.c:338:27: error: request for member ‘numaudios’ in something not a structure or union
audio_output/oss.c:340:9: error: unknown type name ‘oss_audioinfo’
audio_output/oss.c:340:9: error: field name not in record or union initializer
audio_output/oss.c:340:9: error: (near initialization for ‘ai’)
audio_output/oss.c:342:24: error: ‘SNDCTL_AUDIOINFO’ undeclared (first use in this function)
audio_output/oss.c:348:15: error: request for member ‘caps’ in something not a structure or union
audio_output/oss.c:348:24: error: ‘PCM_CAP_HIDDEN’ undeclared (first use in this function)
audio_output/oss.c:348:39: error: ‘PCM_CAP_MODEM’ undeclared (first use in this function)
audio_output/oss.c:350:17: error: request for member ‘caps’ in something not a structure or union
audio_output/oss.c:350:25: error: ‘PCM_CAP_OUTPUT’ undeclared (first use in this function)
audio_output/oss.c:352:16: error: request for member ‘enabled’ in something not a structure or union
audio_output/oss.c:355:37: error: request for member ‘devnode’ in something not a structure or union
audio_output/oss.c:355:49: error: request for member ‘name’ in something not a structure or union
make[4]: *** [audio_output/oss.lo] Errore 1
make[4]: Leaving directory `/tmp/SBo/vlc-2.2.2/modules'
make[3]: *** [all-recursive] Errore 1
make[3]: Leaving directory `/tmp/SBo/vlc-2.2.2/modules'
make[2]: *** [all] Errore 2
make[2]: Leaving directory `/tmp/SBo/vlc-2.2.2/modules'
make[1]: *** [all-recursive] Errore 1
make[1]: Leaving directory `/tmp/SBo/vlc-2.2.2'
make: *** [all] Errore 2
2. Second question, is there a way to access to kodilive playlist by using MPlayer instead of VLC?
1- For version 2.2.2, is "--enable-oss" configure switch available? Or any other way to make VLC working under OSSv4 audio system?
I can't answer this question (stuck at work on a Windows computer), but I can give you information to answer it yourself.
Extract the source and then, once in that directory, run ./configure --help. That should provide you all the options the configure script supports. If you want, you can throw a pipe at the end and grep the output for oss.
- I try to build it (the last vlc version using Maverik suggested slackbuild from SBo) without oss suport enabled: the package is created and working but OSS audio choppy persists.
- I then try to rebuild it with enable-oss support. And obtained the same error relate to oss, I reported above the error code.
- Finally I tried to install Alien VlC 2.0.8 which is compiled with oss support enabled. This is working with local files, but if I try to add the same network stream I tried with other vlc versions... then vlc-2.0.8 crash too often.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.