Video doesn't play natively on 8.2 with this version at least with older X libs etc, only audio files and videos via SDL play. On 9.1-beta with up to date ports video works just fine tho - other success (or failure) reports welcome! :) Update: I only got success reports so far, also for 8.x, so it looks like it was something in dependent ports (X-related libs?) that fixed native video. nox@FreeBSD.org Index: Makefile =================================================================== RCS file: /home/pcvs/ports/multimedia/vlc/Makefile,v retrieving revision 1.295 diff -u -p -r1.295 Makefile --- Makefile 23 Jul 2012 19:27:25 -0000 1.295 +++ Makefile 31 Jul 2012 18:09:37 -0000 @@ -6,13 +6,13 @@ # PORTNAME= vlc -DISTVERSION= 1.1.13 -PORTREVISION= 12 +DISTVERSION= 2.0.3 PORTEPOCH= 3 CATEGORIES= multimedia audio ipv6 net www -MASTER_SITES= http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION}/ \ +MASTER_SITES= http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/p/-pre/}/ \ http://ftp.snt.utwente.nl/pub/software/videolan/${PORTNAME}/${DISTVERSION}/ \ ftp://ftp.crans.org/pub/videolan/${PORTNAME}/${DISTVERSION}/ +DISTNAME= ${PORTNAME}-${DISTVERSION:S/p/-pre/} MAINTAINER= jsa@FreeBSD.org COMMENT= Qt4 based multimedia player and streaming server @@ -27,14 +27,14 @@ LIB_DEPENDS= avcodec:${PORTSDIR}/multime OPTIONS_DEFINE= A52 AALIB ASS AVAHI CACA DBUS DIRAC DOCS DTS DVB DVDREAD \ DVDNAV FAAD FLAC FLUID FRIBIDI GGI GLX GNOMEVFS GNUTLS GOOM \ HTTPD JACK LIVEMEDIA LUA MAD MATROSKA MODPLUG MPEG2 MTP \ - MUSEPACK NCURSES NLS NOTIFY OPTIMIZED_CFLAGS OGG OPENGL PLUGIN \ + MUSEPACK NCURSES NLS NOTIFY OPTIMIZED_CFLAGS OGG OPENGL \ PNG PORTAUDIO PROJM PULSEAUDIO QT4 REALAUDIO REMOTEOSD RUNROOT \ SAMBA SCHROED SDL SHOUTCAST SKINS STREAM SPEEX SQLITE SVG \ SVGALIB TAGLIB THEORA TREMOR TWOLAME UPNP V4L VAAPI VCD \ VORBIS X11 X264 XCB XOSD XVIDEO ZVBI SERVER_ONLY DEBUG \ UNSAFE_PLUGINS OPTIONS_DEFAULT=A52 AVAHI DBUS DTS DVB DVDREAD DVDNAV FAAD FLAC GLX GNUTLS \ - HTTPD LIVEMEDIA LUA MAD MATROSKA MPEG2 OGG PNG QT4 REALAUDIO \ + HTTPD LUA MAD MATROSKA MPEG2 OGG PNG QT4 REALAUDIO \ REMOTEOSD SDL SKINS STREAM SPEEX TAGLIB THEORA TWOLAME V4L \ VCD VORBIS X11 X264 XCB XVIDEO A52_DESC= A52 DVD audio decoder @@ -62,7 +62,6 @@ MTP_DESC= support for the Music Transpor NCURSES_DESC= ncurses (console) interface OGG_DESC= Ogg audio decoder support OPENGL_DESC= OpenGL acceleration support -PLUGIN_DESC= VLC Mozilla Plugin PNG_DESC= PNG graphics format support PROJM_DESC= ProjectM visualizations QT4_DESC= Qt4 Interface @@ -90,7 +89,7 @@ ZVBI_DESC=VBI decoding support SERVER_ONLY_DESC= Only build server parts UNSAFE_PLUGINS_DESC= Install unsafe, unsupported plugins -USE_BZIP2= yes +USE_XZ= yes USE_GMAKE= yes USE_ICONV= yes USE_PERL5_BUILD=yes @@ -129,7 +128,6 @@ CONFIGURE_ARGS+= --enable-vlc \ --disable-update-check MAN1= vlc.1 \ - vlc-config.1 \ vlc-wrapper.1 .include @@ -477,17 +475,6 @@ CONFIGURE_ARGS+=--enable-opengl CONFIGURE_ARGS+=--disable-opengl .endif -.if ${PORT_OPTIONS:MPLUGIN} -USE_GECKO= libxul -USE_WEBPLUGINS= gecko* -WEBPLUGINS_FILES=libvlcplugin.so -.include "${PORTSDIR}/www/firefox/Makefile.webplugins" -CONFIGURE_ARGS+=--enable-mozilla \ - --with-mozilla-pkg=${LOCALBASE}/libdata/pkgconfig/mozilla-plugin.pc -.else -CONFIGURE_ARGS+=--disable-mozilla -.endif - .if ${PORT_OPTIONS:MPNG} LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png CONFIGURE_ARGS+=--enable-png @@ -513,7 +500,7 @@ CONFIGURE_ARGS+=--disable-projectm LIB_DEPENDS+= pulse:${PORTSDIR}/audio/pulseaudio CONFIGURE_ARGS+=--enable-pulse .else -CONFIGURE_ARGS+=--disable-pulse +CONFIGURE_ARGS+=--enable-pulse=no .endif # WITHOUT_QT4 @@ -724,7 +711,7 @@ post-patch: -e '\|LIBS|s|-lrt||' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf|${WITH_VLC_DEFAULT_FONT}|' \ - ${WRKSRC}/modules/misc/freetype.c + ${WRKSRC}/modules/text_renderer/freetype.c @${REINPLACE_CMD} -e 's|/dev/cdrom|${WITH_CDROM_DEVICE}|g' \ -e 's|/dev/dvd|${WITH_DVD_DEVICE}|g' \ ${WRKSRC}/include/vlc_config.h @@ -797,7 +784,7 @@ pre-install: cd ${FAKEDIR}/share/locale && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|share/locale/|' >> ${PLIST} .endif -.for locale in ach cgg ckb co ff fur kk km lg my oc ps tet tl zu +.for locale in ach cgg ckb co ff fur kk km lg my oc ps tet tl zu kmr ${ECHO_CMD} "@dirrmtry share/locale/${locale}/LC_MESSAGES" >> ${PLIST} ${ECHO_CMD} "@dirrmtry share/locale/${locale}" >> ${PLIST} .endfor @@ -818,7 +805,6 @@ do-install: cd ${FAKEDIR}/share && ${FIND} . | \ ${CPIO} -vpdm -L -R ${SHAREOWN} ${PREFIX}/share ${INSTALL_MAN} ${WRKSRC}/doc/vlc.1 ${MANPREFIX}/man/man1/ - ${INSTALL_MAN} ${WRKSRC}/doc/vlc-config.1 ${MANPREFIX}/man/man1/ if [ ! -d ${PREFIX}/share/applications ]; then \ ${MKDIR} ${PREFIX}/share/applications ; \ fi Index: distinfo =================================================================== RCS file: /home/pcvs/ports/multimedia/vlc/distinfo,v retrieving revision 1.50 diff -u -p -r1.50 distinfo --- distinfo 5 Jan 2012 03:18:02 -0000 1.50 +++ distinfo 30 Jul 2012 15:45:00 -0000 @@ -1,2 +1,2 @@ -SHA256 (vlc-1.1.13.tar.bz2) = 03edec44d463b9f5e7db56fd844c6d4ac79966638e1ac32dedcfb5847a9323c1 -SIZE (vlc-1.1.13.tar.bz2) = 26226587 +SHA256 (vlc-2.0.3.tar.xz) = fba9805f7415aebf5b88614de83802dc59d3282ff339128da41addf7e375d2d2 +SIZE (vlc-2.0.3.tar.xz) = 18268208 Index: files/extra-patch-modules__services_discovery__upnp_intel.cpp =================================================================== RCS file: /home/pcvs/ports/multimedia/vlc/files/extra-patch-modules__services_discovery__upnp_intel.cpp,v retrieving revision 1.1 diff -u -p -r1.1 extra-patch-modules__services_discovery__upnp_intel.cpp --- files/extra-patch-modules__services_discovery__upnp_intel.cpp 8 Nov 2010 22:26:25 -0000 1.1 +++ files/extra-patch-modules__services_discovery__upnp_intel.cpp 29 Dec 2011 02:29:04 -0000 @@ -1,10 +0,0 @@ ---- ./modules/services_discovery/upnp_intel.cpp.orig 2010-11-08 01:05:00.000000000 -0500 -+++ ./modules/services_discovery/upnp_intel.cpp 2010-11-08 01:06:43.000000000 -0500 -@@ -36,6 +36,7 @@ - - #include "upnp_intel.hpp" - -+#include - #include - #include - Index: files/patch-modules__Makefile.am =================================================================== RCS file: /home/pcvs/ports/multimedia/vlc/files/patch-modules__Makefile.am,v retrieving revision 1.1 diff -u -p -r1.1 patch-modules__Makefile.am --- files/patch-modules__Makefile.am 11 Jul 2010 02:06:56 -0000 1.1 +++ files/patch-modules__Makefile.am 29 Dec 2011 02:30:30 -0000 @@ -1,30 +0,0 @@ ---- ./modules/Makefile.am.orig 2010-06-24 05:07:31.000000000 -0400 -+++ ./modules/Makefile.am 2010-06-24 05:09:12.000000000 -0400 -@@ -62,16 +62,16 @@ - .PHONY: stamp-cache - - stamp-cache: -- $(AM_V_GEN)if test "$(build)" = "$(host)"; then \ -- ../bin/vlc-cache-gen$(EXEEXT) . ; \ -- else \ -- echo "Cross-compilation: cache generation skipped!" ; \ -- fi -- $(AM_V_at)touch stamp-cache -+# $(AM_V_GEN)if test "$(build)" = "$(host)"; then \ -+# ../bin/vlc-cache-gen$(EXEEXT) . ; \ -+# else \ -+# echo "Cross-compilation: cache generation skipped!" ; \ -+# fi -+# $(AM_V_at)touch stamp-cache - - install-exec-hook: -- if test -z "$(DESTDIR)"; then \ -- ../bin/vlc-cache-gen$(EXEEXT) "$(vlclibdir)/plugins" ; \ -- else \ -- echo "Staged installation: cache generation skipped!" ; \ -- fi -+# if test -z "$(DESTDIR)"; then \ -+# ../bin/vlc-cache-gen$(EXEEXT) "$(vlclibdir)/plugins" ; \ -+# else \ -+# echo "Staged installation: cache generation skipped!" ; \ -+# fi Index: files/patch-modules__Makefile.in =================================================================== RCS file: /home/pcvs/ports/multimedia/vlc/files/patch-modules__Makefile.in,v retrieving revision 1.1 diff -u -p -r1.1 patch-modules__Makefile.in --- files/patch-modules__Makefile.in 11 Jul 2010 02:06:56 -0000 1.1 +++ files/patch-modules__Makefile.in 29 Dec 2011 02:31:21 -0000 @@ -1,33 +0,0 @@ ---- ./modules/Makefile.in.orig 2010-06-24 05:07:46.000000000 -0400 -+++ ./modules/Makefile.in 2010-06-24 05:09:54.000000000 -0400 -@@ -1008,19 +1008,19 @@ - .PHONY: stamp-cache - - stamp-cache: -- $(AM_V_GEN)if test "$(build)" = "$(host)"; then \ -- ../bin/vlc-cache-gen$(EXEEXT) . ; \ -- else \ -- echo "Cross-compilation: cache generation skipped!" ; \ -- fi -- $(AM_V_at)touch stamp-cache -+# $(AM_V_GEN)if test "$(build)" = "$(host)"; then \ -+# ../bin/vlc-cache-gen$(EXEEXT) . ; \ -+# else \ -+# echo "Cross-compilation: cache generation skipped!" ; \ -+# fi -+# $(AM_V_at)touch stamp-cache - - install-exec-hook: -- if test -z "$(DESTDIR)"; then \ -- ../bin/vlc-cache-gen$(EXEEXT) "$(vlclibdir)/plugins" ; \ -- else \ -- echo "Staged installation: cache generation skipped!" ; \ -- fi -+# if test -z "$(DESTDIR)"; then \ -+# ../bin/vlc-cache-gen$(EXEEXT) "$(vlclibdir)/plugins" ; \ -+# else \ -+# echo "Staged installation: cache generation skipped!" ; \ -+# fi - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. Index: files/patch-modules__access__v4l.c =================================================================== RCS file: /home/pcvs/ports/multimedia/vlc/files/patch-modules__access__v4l.c,v retrieving revision 1.1 diff -u -p -r1.1 patch-modules__access__v4l.c --- files/patch-modules__access__v4l.c 11 Jul 2010 02:06:56 -0000 1.1 +++ files/patch-modules__access__v4l.c 29 Dec 2011 02:32:08 -0000 @@ -1,75 +0,0 @@ ---- modules/access/v4l.c.orig Mon Jun 12 09:41:08 2006 -+++ modules/access/v4l.c Mon Jun 12 10:19:59 2006 -@@ -555,7 +555,7 @@ - int i_noframe = -1; - ioctl( p_sys->fd_video, MJPIOC_QBUF_CAPT, &i_noframe ); - } -- -+#if 0 - if( p_sys->p_video_mmap && p_sys->p_video_mmap != MAP_FAILED ) - { - if( p_sys->b_mjpeg ) -@@ -564,7 +564,7 @@ - else - munmap( p_sys->p_video_mmap, p_sys->vid_mbuf.size ); - } -- -+#endif - free( p_sys ); - } - -@@ -1267,6 +1267,15 @@ - } - else - { -+ struct video_window vid_win = { 0 }; -+ vid_win.width = p_sys->i_width; -+ vid_win.height = p_sys->i_height; -+ -+ if( ioctl( i_fd, VIDIOCSWIN, &vid_win ) < 0 ) -+ { -+ msg_Err( p_demux, "cannot set win (%s)", strerror( errno ) ); -+ goto vdev_failed; -+ } - /* Fill in picture_t fields */ - vout_InitPicture( VLC_OBJECT(p_demux), &p_sys->pic, p_sys->i_fourcc, - p_sys->i_width, p_sys->i_height, p_sys->i_width * -@@ -1287,7 +1296,7 @@ - p_sys->i_video_frame_size ); - msg_Dbg( p_demux, "v4l device uses chroma: %4.4s", - (char*)&p_sys->i_fourcc ); -- -+#if 0 - /* Allocate mmap buffer */ - if( ioctl( i_fd, VIDIOCGMBUF, &p_sys->vid_mbuf ) < 0 ) - { -@@ -1316,6 +1325,7 @@ - msg_Err( p_demux, "chroma selection failed" ); - goto vdev_failed; - } -+#endif - } - return i_fd; - -@@ -1577,18 +1587,15 @@ - if( p_sys->i_video_pts + i_dur > mdate() ) return 0; - } - -- if( p_sys->b_mjpeg ) p_frame = GrabMJPEG( p_demux ); -- else p_frame = GrabCapture( p_demux ); -- -- if( !p_frame ) return 0; -- - if( !( p_block = block_New( p_demux, p_sys->i_video_frame_size ) ) ) - { - msg_Warn( p_demux, "cannot get block" ); - return 0; - } - -- memcpy( p_block->p_buffer, p_frame, p_sys->i_video_frame_size ); -+ if(read(p_sys->i_fd, p_block->p_buffer, p_sys->i_video_frame_size) <= 0) -+ return 0; -+ - p_sys->i_video_pts = p_block->i_pts = p_block->i_dts = mdate(); - - return p_block; Index: files/patch-modules-access-dtv-linux.c @@ -0,0 +1,31 @@ +--- modules/access/dtv/linux.c.orig ++++ modules/access/dtv/linux.c +@@ -173,7 +173,14 @@ static int dvb_open_adapter (uint8_t ada + char dir[20]; + + snprintf (dir, sizeof (dir), "/dev/dvb/adapter%"PRIu8, adapter); ++#ifdef O_CLOEXEC + return open (dir, O_SEARCH|O_DIRECTORY|O_CLOEXEC); ++#else ++ int fd = open (dir, O_SEARCH|O_DIRECTORY); ++ if (fd != -1) ++ fcntl(fd, F_SETFD, FD_CLOEXEC); ++ return fd; ++#endif + } + + /** Opens the DVB device node of the specified type */ +@@ -183,7 +190,13 @@ static int dvb_open_node (dvb_device_t * + char path[strlen (type) + 4]; + + snprintf (path, sizeof (path), "%s%u", type, d->device); ++#ifdef O_CLOEXEC + fd = openat (d->dir, path, flags|O_CLOEXEC); ++#else ++ fd = openat (d->dir, path, flags); ++ if (fd != -1) ++ fcntl(fd, F_SETFD, FD_CLOEXEC); ++#endif + if (fd != -1) + fcntl (fd, F_SETFL, fcntl (fd, F_GETFL) | O_NONBLOCK); + return fd; Index: files/patch-modules-gui-qt4-qt4.hpp @@ -0,0 +1,11 @@ +--- modules/gui/qt4/qt4.hpp.orig ++++ modules/gui/qt4/qt4.hpp +@@ -34,7 +34,7 @@ + #include /* playlist_t */ + + #define QT_NO_CAST_TO_ASCII +-#include ++#include + + #if ( QT_VERSION < 0x040600 ) + # error Update your Qt version to at least 4.6.0 Index: files/patch-modules-gui-qt4-util-pictureflow.cpp @@ -0,0 +1,27 @@ +--- modules/gui/qt4/util/pictureflow.cpp.orig ++++ modules/gui/qt4/util/pictureflow.cpp +@@ -28,15 +28,15 @@ + #include "pictureflow.hpp" + #include "components/playlist/ml_model.hpp" + +-#include +-#include +-#include +-#include +-#include +-#include +-#include +-#include +-#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include + #include "../components/playlist/playlist_model.hpp" /* getArtPixmap etc */ + #include "../components/playlist/sorting.h" /* Columns List */ + #include "input_manager.hpp" Index: files/patch-modules-gui-qt4-util-pictureflow.hpp @@ -0,0 +1,11 @@ +--- modules/gui/qt4/util/pictureflow.hpp.orig ++++ modules/gui/qt4/util/pictureflow.hpp +@@ -28,7 +28,7 @@ + #ifndef PICTUREFLOW_H + #define PICTUREFLOW_H + +-#include ++#include + #include "../components/playlist/playlist_model.hpp" /* getArtPixmap etc */ + + class PictureFlowPrivate;